Atmel ATSTK600 500 Starter Kit and Development System. ATSTK600 ATSTK600 Data Sheet
![Atmel](https://files.manualsbrain.com/attachments/0369829915bda09f9c2e00fb805a7753579683b5/common/fit/150/50/8d2bf08978ec3e5bc63f4343ac5e91ce8d0e40045619fa520d910d64af8f/brand_logo.png)
Product codes
ATSTK600
20
AVR079
8133A-AVR-04/08
5.14 CMD_SET_CONTROL_STACK
This command uploads the control stack to the STK. This is used for both PP and
HVSP.
HVSP.
Note: The Control stack must always be uploaded before performing any
programming commands in high voltage mode if the STK600 has been powered
down.
programming commands in high voltage mode if the STK600 has been powered
down.
To check if the controller has a valid control stack: Read
PARAM_CONTROLLER_INIT.
PARAM_CONTROLLER_INIT.
Se chapter 11.7: PARAM_CONTROLLER_INIT
Table 5-20. Command format.
Field Size
Values
Description
Command ID
1 byte
CMD_SET_CONTROL_STACK
Command id
Data
32byte
Control stack Data
Table 5-21. Answer format if command was executed.
Field Size
Values
Description
Answer ID
1 byte
CMD_SET_CONTROL_STA
CK
CK
Answer id
Status 1
byte
STATUS_CMD_OK
A
Result Value indicating the result of the
operation
6 High Voltage Serial Programming Commands
This chapter describes the High Voltage Serial Programming (HVSP) commands.
Note that the SetControlStack command is required for HVSP as for PP. Description
of the SetControlStack is found in chapter 5.14 CMD_SET_CONTROL_STACK
Note that the SetControlStack command is required for HVSP as for PP. Description
of the SetControlStack is found in chapter 5.14 CMD_SET_CONTROL_STACK
6.1 CMD_ENTER_PROGMODE_HVSP
This command will make the target device enter programming mode if it succeeds.
XML path: /AVRPART/ICE_SETTINGS/STK600/HvspEnterProgMode/
Table 6-1. Command format.
Field Size
Values
Description
Command ID
1 byte
CMD_ENTER_PROGMODE_H
VSP
VSP
Command id
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
EnterProgMode command execution
SynchCycles
1 byte
XML: synchCycles
Number of synchronization clock cycles
LatchCycles
1 byte
XML: latchCycles
Number of PulseXtal1_HVSP cycles
ToggleVtg
1 byte
XML: toggleVtg
Toggle Vtg when entering prog.mode (0=no,
1=yes). For parts with RSTDSBL functionality
1=yes). For parts with RSTDSBL functionality