Atmel ATSTK500 500 Starter kit and development system. ATSTK500 ATSTK500 Hoja De Datos

Los códigos de productos
ATSTK500
Descargar
Página de 37
 
12 
AVR068 
2591C-AVR-06/06 
5.2.5 CMD_READ_FLASH_ISP 
This command will read data from the FLASH memory of the target device if it 
succeeds. 
XML path: /AVRPART/ICE_SETTINGS/STK500_2/IspReadFlash/ 
Table 5-24. Command format 
Field  
Size 
Values 
Description 
Command ID 
1 byte 
CMD_READ_FLASH_ISP 
Command id 
NumBytes 
2 byte 
XML: blockSize 
Total number of bytes to read, MSB 
first 
cmd1 1 
byte 
 
Read Program Memory command 
byte #1. Low/High byte selection bit 
(3
rd
 bit) is handled in the FIRMWARE. 
 
Table 5-25. Answer format if the command is executed 
Field  
Size 
Values 
Description 
Answer ID 
1 byte 
CMD_READ_FLASH_ISP 
Answer id 
Status1 1 
byte 
STATUS_CMD_OK 
Indicates success. Will always 
read OK 
Data 
N bytes 
 
The data read from the device 
Status2 1 
byte 
STATUS_CMD_OK 
A status value indicating the 
result of the operation. Will 
always read OK 
 
Table 5-26. Answer format if the command was not executed 
Field  
Size 
Values 
Description 
Answer ID 
1 byte 
CMD_READ_FLASH_ISP 
Answer id 
Status 
1 byte 
STATUS_CMD_FAILED 
Indicates failure 
5.2.6 CMD_PROGRAM_EEPROM_ISP 
See the CMD_PROGRAM_FLASH_ISP command. 
5.2.7 CMD_READ_EEPROM_ISP 
See the CMD_READ_FLASH_ISP command.