Datasheet
8
AVR068
2591C-AVR-06/06
Table 5-15. Command format
Field Size Values Description
Command ID 1 byte
CMD_ENTER_
PROGMODE_ISP
Command id
timeout 1 byte XML: timeout Command time-out (in ms)
stabDelay 1 byte XML: stabDelay Delay (in ms) used for pin stabilization
cmdexeDelay 1 byte XML: cmdexeDelay
Delay (in ms) in connection with the
EnterProgMode command execution
synchLoops 1 byte XML: synchLoops Number of synchronization loops
byteDelay 1 byte XML: byteDelay
Delay (in ms) between each byte in the
EnterProgMode command.
pollValue 1 byte XML: pollValue Poll value:
0x53 for AVR, 0x69 for AT89xx
pollIndex 1 byte XML: pollIndex Start address, received byte:
0 = no polling, 3 = AVR, 4 = AT89xx
cmd1 1 byte Command Byte # 1 to be transmitted
cmd2 1 byte Command Byte # 2 to be transmitted
cmd3 1 byte Command Byte # 3 to be transmitted
cmd4 1 byte Command Byte # 4 to be transmitted
Note: The pollValue parameter indicates after which of the transmitted bytes on the SPI
interface to store the return byte, as the SPI interface is implemented as a ring
buffer (one byte out, one byte in).
Table 5-16. Answer format
Field Size Values Description
Answer ID 1 byte
CMD_ENTER_
PROGMODE_ISP
Answer id
Status 1 byte
STATUS_CMD_TOUT,
STATUS_CMD_OK or
STATUS_CMD_FAILED
A status value indicating the result of
the operation