Atmel ATSTK500 500 Starter kit and development system. ATSTK500 ATSTK500 데이터 시트

제품 코드
ATSTK500
다운로드
페이지 31
8
AVR061 
2525B–AVR–04/03
Check for Address 
Autoincrement
Check if the write/read  address is automatically  incremented while using  the
Cmnd_STK_PROG/READ_FLASH/EEPROM commands. Since STK500 always auto-
increments the address, this command will always be successful.
Command
Cmnd_STK_CHECK_AUTOINC, Sync_CRC_EOP
Command Value
0x53
Response
Resp_STK_INSYNC, Resp_STK_OK 
or
Resp_STK_NOSYNC (If no Sync_CRC_EOP received)
Load Address
Load 16-bit address down to starterkit. This command is used to set the address for the
next read or write operation to FLASH or EEPROM. Must always be used prior to
Cmnd_STK_PROG_PAGE or Cmnd_STK_READ_PAGE.
Command
Cmnd_STK_LOAD_ADDRESS, addr_low, addr_high, Sync_CRC_EOP
Command Value
0x55
Response
Resp_STK_INSYNC, Resp_STK_OK 
or
Resp_STK_NOSYNC (If no Sync_CRC_EOP received)
Program Flash Memory
Program one word in FLASH memory.
Command
Cmnd_STK_PROG_FLASH, flash_low, flash_high, Sync_CRC_EOP
Command Value
0x60
Response
Resp_STK_INSYNC, Resp_STK_OK 
or
Resp_STK_NOSYNC (If no Sync_CRC_EOP received)
Table 10.  Parameters
Parameter Name
Field Usage
Field Format
(No parameter)
Table 11.  Parameters
Parameter Name
Field Usage
Field Format
addr_low
LSB byte of address
1 byte
addr_high
MSB byte of address
1 byte
Table 12.  Parameters
Parameter Name
Field Usage
Field Format
flash_low
Low byte of word to program
1 byte
flash_high
High byte of word to program
1 byte