Atmel ATSTK600 500 Starter Kit and Development System. ATSTK600 ATSTK600 Ficha De Dados

Códigos do produto
ATSTK600
Página de 61
 
AVR079
 
 
23
8133A-AVR-04/08 
page buffer of the target device. The transfer data to flash flag should then only be 
set on the last command. 
 
Table 6-8. Mode byte description. 
Pagesize \ bit 
256 
0 0 0 
0 0 1 
0 1 0 
0 1 1 
16 
1 0 0 
32 
1 0 1 
64 
1 1 0 
128 
1 1 1 
 
NOTE: that only Bit 0-3 are set in the XML file, cause Bit 6-7 are not static and must 
be controlled by the PC Frontend. 
Table 6-9. Answer format. 
Field Size 
Values 
Description 
Answer ID 
1 byte 
CMD_CHIP_ERASE_HVSP 
Answer id 
Status 
1 byte 
STATUS_CMD_OK or 
STATUS_RDY_BSY_TOUT 
Result Value indicating the result of the 
operation.  
 
6.5 CMD_READ_FLASH_HVSP 
This command will read data from the FLASH memory of the target device if it 
succeeds. For devices with the FLASH organized in pages, the data address and size 
used with this command must confirm to that of the device. I.e. one ReadFlash 
command is used to read one page in the target device. 
XML path: /AVRPART/ICE_SETTINGS/STK600/HvspReadFlash/ 
Table 6-10. Command format. 
Field Size 
Values 
Description 
Command ID 
1 byte 
CMD_READ_FLASH_HVSP Command 
id 
NumBytes 
2 byte 
XML: blockSize 
Total number of bytes to read, MSB first 
 
Table 6-11. Answer format if the command is executed. 
Field Size 
Values 
Description 
Answer ID 
1 byte 
CMD_READ_FLASH_HVSP 
Answer id 
Status1 1 
byte 
STATUS_CMD_OK 
Temporary status, will always read OK 
Data Byte*N 
 
Data read from device. Will be padded with 0’s if 
errors occurred during read-out. 
Status2 
1 byte 
STATUS_CMD_OK  
Result Value indicating the result of the 
operation. Will always read OK