Raised the guard bits in the AVRISP-MKII clone project when in PDI and TPI to 32, to prevent communication errors on low quality connections to a target.

This commit is contained in:
Dean Camera 2012-03-05 20:25:46 +00:00
parent 5c3623a7c5
commit 6ee79029d5
3 changed files with 5 additions and 5 deletions

View file

@ -128,9 +128,9 @@ bool TINYNVM_EnableTPI(void)
/* Enable TPI programming mode with the attached target */
XPROGTarget_EnableTargetTPI();
/* Lower direction change guard time to 0 USART bits */
/* Lower direction change guard time to 32 USART bits */
XPROGTarget_SendByte(TPI_CMD_SSTCS | TPI_CTRL_REG);
XPROGTarget_SendByte(0x07);
XPROGTarget_SendByte(0x02);
/* Enable access to the XPROG NVM bus by sending the documented NVM access key to the device */
XPROGTarget_SendByte(TPI_CMD_SKEY);