Renesas H8S/2437 Hardware Manual page 596

Renesas 16-bit single-chip microcomputer h8s family / h8s / 2600 series
Table of Contents

Advertisement

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.
Rev. 1.00, 09/03, page 558 of 704

Advertisement

Table of Contents
loading

Table of Contents