6
AVR069
8015B-AVR-02/06
Field Size Value Description
Command ID 1 byte
CMD_ENTER_PROG
MODE_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)
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: 1. 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 3-17
. Answer format
Field Size Value Description
Answer ID 1 byte
CMD_ENTER_PROG_M
ODE_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
3.2.2 CMD_LEAVE_PROGMODE_ISP
This command will make AVRISP mkII leave programming mode. The device will be
put into normal operating mode.
XML path: /AVRPART/ICE_SETTINGS/AVRISP mkII_2/IspLeaveProgMode/
Table 3-18
. Command format
Field Size Value Description
Command ID 1 byte CMD_LEAVE_PROGMODE_ISP Command id
preDelay 1 byte XML: preDelay Pre-delay (in ms)
postDelay 1 byte XML: postDelay Post-delay (in ms)
Table 3-19
. Answer format
Field Size Value Description