English
Language : 

SH7059 Datasheet, PDF (791/1042 Pages) Renesas Technology Corp – 32-Bit RISC Microcomputer
24. ROM (SH7058S)
⎯ Number of characters (one byte): Number of characters in the device code and boot program's name
⎯ Device code (four bytes): Supporting product (ASCII code)
⎯ Product name (n bytes): Type name of the boot program (ASCII code)
⎯ SUM (one byte): Checksum
The checksum is calculated so that the total number of all values from the command byte to the SUM byte becomes
H'00.
(2) Device Selection
The boot program will set the supported device to the specified device code. The program will return the selected
device code in response to the inquiry after this setting has been made.
Command
H'10
Size
Device code SUM
⎯ Command: H'10 (one byte): Device selection
⎯ Size (one byte): Number of characters in the device code (fixed at 2)
⎯ Device code (four bytes): Device code returned in response to the supported device inquiry (ASCII code)
⎯ SUM (one byte): Checksum
Response H'06
⎯ Response: H'06, (one byte): Response to the device selection command
ACK will be returned when the device code matches.
Error response H'90 ERROR
⎯ Error response: H'90 (one byte): Error response to the device selection command
⎯ ERROR: (one byte): Error code
H'11: Checksum error
H'21: Device code mismatch error
(3) Clock Mode Inquiry
The boot program will return the supported clock modes in response to the clock mode inquiry.
Command H'21
⎯ Command: H'21 (one byte): Inquiry regarding clock mode
Response H'31 Size Number of modes Mode SUM
⎯ Response: H'31 (one byte): Response to the clock-mode inquiry
⎯ Size (one byte): Amount of data that represents the number of modes and modes
⎯ Number of modes (one byte): Number of supported clock modes
H'00 indicates no clock mode or the device allows the clock mode to be read.
⎯ Mode (one byte): Supported clock modes (i.e. H'01 means clock mode 1.)
⎯ SUM (one byte): Checksum
(4) Clock Mode Selection
The boot program will set the specified clock mode. The program will return the selected clock-mode information
after this setting has been made.
The clock-mode selection command should be sent after the device selection command.
Command H'11 Size Mode SUM
⎯ Command: H'11 (one byte): Selection of clock mode
⎯ Size (one byte): Number of characters that represents the mode (fixed at 1)
⎯ Mode (one byte): Clock mode returned in reply to the supported clock mode inquiry.
⎯ SUM (one byte): Checksum
Response H'06
⎯ Response: H'06 (one byte): Response to the clock-mode selection command
ACK will be returned when the clock mode matches.
Rev.3.00 Mar. 12, 2008 Page 701 of 948
REJ09B0177-0300