|
SH7211 Datasheet, PDF (976/1228 Pages) Renesas Technology Corp – 32-Bit RISC Microcomputer SuperHTM RISC engine Family | |||
|
◁ |
Section 21 Flash Memory
One-character command
or one-character response
n-character command
or n-character response
Error response
Command or response
Data
Size
Command or response
Error code
Error response
Checksum
256-byte
programming command
Response to
memory read command
Address
Command
Data size
Response
Data (n bytes)
Data
Checksum
Checksum
Figure 21.21 Formats in the Communications Protocol
⢠Command (1 byte): Inquiry, selection, programming, erasure, checking, etc.
⢠Response (1 byte): Response to an inquiry
⢠Size (one or two bytes): The length of data for transfer, excluding the command/response, size,
and checksum.
⢠Data (n bytes): Particular data for the command or response
⢠Checksum (1 byte): Set so that the total sum of byte values from the command code to the
checksum is H'00.
⢠Error response (1 byte): Error response to a command
⢠Error code (1 byte): Indicates the type of error.
⢠Address (4 bytes): Address for programming
⢠Data (n bytes): Data to be programmed. "n" is known from the response to the command used
to inquire about the programming size.
⢠Data size (4 bytes): Four-byte field included in the response to a memory reading command.
Rev. 2.00 May. 08, 2008 Page 952 of 1200
REJ09B0344-0200
|
▷ |