Техническая Спецификация для Atmel ATSTK600 500 Starter Kit and Development System. ATSTK600 ATSTK600
![Atmel](https://files.manualsbrain.com/attachments/0369829915bda09f9c2e00fb805a7753579683b5/common/fit/150/50/8d2bf08978ec3e5bc63f4343ac5e91ce8d0e40045619fa520d910d64af8f/brand_logo.png)
Модели
ATSTK600
16
AVR079
8133A-AVR-04/08
Field Size
Values
Description
Answer ID
1 byte
CMD_CHIP_ERASE_PP
Answer id
Status
1 byte
See table below
A Result Value indicating the result of the
operation
operation
Table 5-8. Valid Result Values for the answer to this command.
Value Description
STATUS_CMD_OK Operation
succeeded
STATUS_RDY_BSY_TOUT
No response from target device within specified
timeframe
timeframe
5.4 CMD_PROGRAM_FLASH_PP
This command will program data into 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 ProgramFlash
command is used to program one page in the target device.
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 ProgramFlash
command is used to program one page in the target device.
XML PATH: /AVRPART/ICE_SETTINGS/STK600/PpProgramFlash/
Table 5-9. Command format.
Field Size
Values
Description
Command ID
1 byte
CMD_PROGRAM_FLASH_PP
Command id
Nmb bytes (MSB
1 byte
Total number of bytes to program (MSB)
Nmb bytes (LSB)
1 byte
Total number of bytes to program (LSB)
Mode
(1)
1
byte
XML: mode, *see description
below
below
Mode byte, *see description below
pollTimeout
1 byte
XML: pollTimeout
pollTimeout (in ms)
Data
1 byte
Data 1
Data 1
byte
...
Data
1 byte
Data N
Notes:
1. See details in list below.
Mode byte description
• Bit 0: This bit indicates whether to use byte ‘0’ or page ‘1’ programming.
• Bit 1-3 are the pagesize bits, pagesize are given in bytes not words, see table
• Bit 1-3 are the pagesize bits, pagesize are given in bytes not words, see table
below.
• Bit 4-5 are not in use.
• Bit 6 must be set to ‘1’ when it is the very last page to be programmed, otherwise
• Bit 6 must be set to ‘1’ when it is the very last page to be programmed, otherwise
‘0’.
• Bit 7 indicates if a page write should be issued (Transfer data to flash). Normally it
should always be set ‘1’. However, if the page size of the target device is too large
to be covered by one Program Flash command (because the amount of available
SRAM in STK600 is limited) this can be used to let 2 or more commands fill the
page buffer of the target device. The transfer data to flash flag should then only be
set on the last command.
to be covered by one Program Flash command (because the amount of available
SRAM in STK600 is limited) this can be used to let 2 or more commands fill the
page buffer of the target device. The transfer data to flash flag should then only be
set on the last command.