Atmel ATSTK500 500 Starter kit and development system. ATSTK500 ATSTK500 Hoja De Datos
Los códigos de productos
ATSTK500
11
AVR061
2525B–AVR–04/03
Program Page
Download a block of data to the starterkit and program it in FLASH or EEPROM of the
current device. The data block size should not be larger than 256 bytes.
current device. The data block size should not be larger than 256 bytes.
Command
Cmnd_STK_PROG_PAGE, bytes_high, bytes_low, memtype, data, Sync_CRC_EOP
Command Value
0x64
Response
Resp_STK_INSYNC, Resp_STK_OK
or
Resp_STK_NOSYNC (If no Sync_CRC_EOP received)
Read Flash Memory
Read one word from FLASH memory.
Command
Cmnd_STK_READ_FLASH, Sync_CRC_EOP
Command Value
0x70
Response
Resp_STK_INSYNC, flash_low, flash_high, Resp_STK_OK
or
Resp_STK_NOSYNC (If no Sync_CRC_EOP received)
Table 17. Parameters
Parameter Name
Field Usage
Field Format
bytes_high
High byte of data block size
1 byte
bytes_low
Low byte of data block size
1 byte
memtype
Memory type: “E” – EEPROM, “F” – FLASH
1 byte
data
Data to program into FLASH or EEPROM. If
programming to FLASH, the sequence of data is
lowbyte:highbyte.
programming to FLASH, the sequence of data is
lowbyte:highbyte.
((bytes_high << 8)
| bytes_low) bytes.
| bytes_low) bytes.
Table 18. Parameters
Parameter Name
Field Usage
Field Format
flash_low
Low byte
1 byte
flash_high
High byte
1 byte