Added .5MHz recovery clock to the AVRISP programmer project when in ISP programming mode to correct mis-set fuses.
Fixed AVRISP project not extending the command delay after each successful page/word/byte program.
This commit is contained in:
parent
35a0fe9384
commit
ab195ab1da
6 changed files with 45 additions and 14 deletions
|
@ -77,7 +77,10 @@ bool XMEGANVM_WaitWhileNVMBusBusy(void)
|
|||
/* Send the LDCS command to read the PDI STATUS register to see the NVM bus is active */
|
||||
XPROGTarget_SendByte(PDI_CMD_LDCS | PDI_STATUS_REG);
|
||||
if (XPROGTarget_ReceiveByte() & PDI_STATUS_NVM)
|
||||
return true;
|
||||
{
|
||||
TimeoutMSRemaining = COMMAND_TIMEOUT_MS;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
|
@ -99,7 +102,10 @@ bool XMEGANVM_WaitWhileNVMControllerBusy(void)
|
|||
|
||||
/* Check to see if the BUSY flag is still set */
|
||||
if (!(XPROGTarget_ReceiveByte() & (1 << 7)))
|
||||
return true;
|
||||
{
|
||||
TimeoutMSRemaining = COMMAND_TIMEOUT_MS;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue