p2125vps20 Renesas Electronics Corporation., p2125vps20 Datasheet - Page 531

no-image

p2125vps20

Manufacturer Part Number
p2125vps20
Description
16-bit Single-chip Microcomputer H8s Family / H8s/2100 Series
Manufacturer
Renesas Electronics Corporation.
Datasheet
128-byte programming is performed in one programming processing. To program more than 128
bytes, update the programming destination address/program data parameter in 128-byte units and
repeat programming.
When less than 128 bytes of programming is performed, the program data must amount to 128
bytes by filling in invalid data. If the invalid data to be added is H'FF, the programming processing
time can be shortened.
(a)
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 the download destination is specified by FTDAR.
(b) Write H'A5 in FKEY
If H'A5 is not written to FKEY for protection, 1 cannot be set to the SCO bit for a download
request.
(c)
To set 1 to the SCO bit, the following conditions must be satisfied.
• H'A5 is written to FKEY.
• The SCO bit writing is executed in the on-chip RAM.
When the SCO bit is set to 1, download is started automatically. When execution returns to the
user procedure program, the SCO bit is already 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. To prevent incorrect
determination, before the SCO bit is set to 1, set the single byte of the on-chip RAM start address
(to be used as the DPFR parameter) specified by FTDAR to a value (e.g. H'FF) other than the
return value.
When download is executed, particular interrupt processing, which is accompanied by bank
switchover as described below, is performed as a microcomputer internal processing. Execute four
NOP instructions immediately after the instruction that sets the SCO bit to 1.
Select the on-chip program to be downloaded and specify a download destination
Set the SCO bit in FCCS to 1 to execute download.
Section 19 Flash Memory (0.18-µm F-ZTAT Version)
Rev. 1.00 Sep. 21, 2006 Page 493 of 658
REJ09B0310-0100

Related parts for p2125vps20