Fix inverted bit-banged USART logic in the AVRISP project for PDI programming. Add a delay to the clock toggling in the AVRISP project to ensure that the programming speed does not exceed 10MHz under any conditions to satisfy the limits in the datasheet for all target voltages. Fix incorrect pin being used as the DATA in in PDI programming mode.
This commit is contained in:
parent
e4cfd5208f
commit
9c8ed168e5
6 changed files with 10 additions and 9 deletions
|
@ -52,9 +52,9 @@ void PDITarget_SendByte(uint8_t Byte)
|
|||
for (uint8_t i = 0; i < 8; i++)
|
||||
{
|
||||
if (Byte & 0x01)
|
||||
PDIDATA_LINE_PORT |= PDIDATA_LINE_MASK;
|
||||
else
|
||||
PDIDATA_LINE_PORT &= ~PDIDATA_LINE_MASK;
|
||||
else
|
||||
PDIDATA_LINE_PORT |= PDIDATA_LINE_MASK;
|
||||
|
||||
Byte >>= 1;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue