Datasheet

8
AVR079
8133A-AVR-04/08
4.1 CMD_ENTER_PROGMODE_ISP
This command will make the target device enter programming mode.
XML path: /AVRPART/ICE_SETTINGS/STK600/IspEnterProgMode/
Table 4-1. 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)
1 byte XML: pollValue Poll value:
0x53 for AVR
®
pollIndex 1 byte XML: pollIndex Start address, received byte:
0 = no polling, 3 = AVR
cmd1
(2)
1 byte Command Byte # 1 to be transmitted
cmd2
(2)
1 byte Command Byte # 2 to be transmitted
cmd3
(2)
1 byte Command Byte # 3 to be transmitted
cmd4
(2)
1 byte Command Byte # 4 to be transmitted
Notes: 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)
2. cmd1, cmd2, cmd3 and cmd4 are the instruction bytes found in the SPI Serial Programming Instruction Set found in
the device datasheet.
Table 4-2. Answer format.
Field Size Values Description
Answer ID 1 byte CMD_SET_PARAMETER Answer id
Status 1 byte
STATUS_CMD_TOUT,
STATUS_CMD_OK or
STATUS_CMD_FAILED
A status value indicating the result of the
operation
4.2 CMD_LEAVE_PROGMODE_ISP
This command will make STK600 leave programming mode. The device will be put
into normal operating mode.
XML path: /AVRPART/ICE_SETTINGS/STK600_2/IspLeaveProgMode/