Atmel ATSTK600 500 Starter Kit and Development System. ATSTK600 ATSTK600 Data Sheet

Product codes
ATSTK600
Page of 61
 
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. 
Note: The Control stack must always be uploaded before performing any 
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. 
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 
Answer id 
Status 1 
byte 
STATUS_CMD_OK 
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 
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 
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 
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