Техническая Спецификация для Atmel ATSTK600 500 Starter Kit and Development System. ATSTK600 ATSTK600
Модели
ATSTK600
AVR079
33
8133A-AVR-04/08
9 XPROG protocol
The XPROG programming protocol is used with the ATxmega devices, and can use
both JTAG and PDI as the physical interface.
both JTAG and PDI as the physical interface.
All multi-byte values (e.g. address and length fields) are big endian.
9.1 CMD_XPROG_SETMODE
Before using any of the XPROG commands, the descried XPROG interface must be
selected. This can either be PDI or JTAG.
selected. This can either be PDI or JTAG.
Table 9-1. Command format.
Offset Field
Size
Values
0 Command
ID
(1)
1
byte
CMD_XPROG_SETMODE
1 Mode
(2)
1 byte
0 = PDI mode, 1 = JTAG mode
Notes:
1. The command identifier.
2. Set which of the physical interfaces to use: 0 = PDI, 1 = JTAG.
Table 9-2. Answer format.
Offset Field
Size
Values
0 Command
ID
(1)
1
byte
CMD_XPROG_SETMODE
1 Status
(2)
1
byte
Notes:
1. The command identifier.
2. One of the defined error codes. XPRG_ERR_OK indicates success.
9.2 CMD_XPROG
This is STK600’s wrapper command for all XPROG specific commands.
Table 9-3. Command format.
Offset Field
Size
Values
0 Command
ID
(1)
1
byte
CMD_XPROG
1 XPROG
Command
(2)
n bytes
Any XPROG command
Notes:
1. The command identifier.
2. This part of the STK600 command contains the XPROG command.
Table 9-4. Answer format.
Offset Field
Size
Values
0 Command
ID
(1)
1
byte
CMD_XPROG
1 XPROG
answer
(2)
n byte
Any XPROG command’s answer
Notes:
1. The command identifier.
2. The answer for the XPROG command is placed in this filed. The length of the field is depending on the XPROG
command.