Rev. 1.00, 09/03, page 558 of 704
128-byte programming is performed in one program processing. When more than 128-byte
programming is performed, programming destination address/program data parameter is updated
in 128-byte units and programming is repeated.
When less than 128-byte programming is performed, data size must be128 bytes by adding the
invalid data. If the invalid data to be added is set to H'FF, the program processing period can be
shortened.
1. Select the on-chip program to be downloaded and specify a download destination
When the PPVS bit in FPCS is set to 1, the programming program is selected. Several
programming/erasing programs cannot be selected at one time. If several programs are set,
download is not performed and a download error is returned to the SS bit in DPFR. The start
address of a download destination is specified by FTDAR.
2. Write H'A5 to FKEY
If H'A5 is not written to FKEY for protection, 1 cannot be set to the SCO bit for a download
request.
3. Set 1 to the SCO bit in FCCS and then execute downloading
To set 1 to the SCO bit, the following conditions must be satisfied.
A H'A5 is written to FKEY.
B The SCO bit writing is executed in the on-chip RAM.
When the SCO bit is set to 1, download is started automatically. When the user procedure
program is returned, the SCO bit is cleared to 0. Therefore, the SCO bit cannot be confirmed to
be 1 in the user procedure program.
The download result can be confirmed only by the return value of DPFR. Before the SCO bit is
set to 1, incorrect determination must be prevented by setting the one byte of the start address
specified by FTDAR (to be used as DPFR) to a value other than the return value (H'FF).
When download is executed, particular interrupt processing, which is accompanied by the bank
switch as described below, is performed as internal microcomputer processing. Four NOP
instructions should be executed immediately after an instruction that sets the SCO bit to 1.
•
The user-MAT space is switched to the on-chip program storage area.
•
After the selection condition of the download program and the FTDAR setting are checked, the
transfer processing to the on-chip RAM specified by FTDAR is executed.
•
FPCS, FECS, and the SCO bit in FCCS are cleared to 0.
•
The return value is set to DPFR.
•
After the on-chip program storage area is returned to the user-MAT space, the user procedure
program is returned.
•
In download processing, the values of general registers of the CPU are retained.
Summary of Contents for H8S/2437
Page 2: ...Rev 1 00 09 03 page ii of xxxviii ...
Page 8: ...Rev 1 00 09 03 page viii of xxxviii ...
Page 32: ...Rev 1 00 09 03 page xxxii of xxxviii ...
Page 38: ...Rev 1 00 09 03 page xxxviii of xxxviii ...
Page 168: ...Rev 1 00 09 03 page 130 of 704 ...
Page 336: ...Rev 1 00 09 03 page 298 of 704 ...
Page 402: ...Rev 1 00 09 03 page 364 of 704 ...
Page 454: ...Rev 1 00 09 03 page 416 of 704 ...
Page 512: ...Rev 1 00 09 03 page 474 of 704 ...
Page 562: ...Rev 1 00 09 03 page 524 of 704 ...
Page 648: ...Rev 1 00 09 03 page 610 of 704 ...
Page 672: ...Rev 1 00 09 03 page 634 of 704 ...
Page 732: ...Rev 1 00 09 03 page 694 of 704 ...
Page 742: ...Rev 1 00 09 03 page 704 of 704 ...
Page 745: ......
Page 746: ...H8S 2437 Group Hardware Manual REJ09B0059 0100Z ...