Datasheet

Section 21 Flash Memory (0.18-μm F-ZTAT Version)
Rev.7.00 Mar. 18, 2009 page 882 of 1136
REJ09B0109-0700
(2) Programming/Erasing Initialization
The on-chip programming/erasing program to be downloaded includes the initialization program.
The specified period pulse must be applied when programming or erasing. The specified pulse
width is made by the method in which wait loop is configured by the CPU instruction. The
operating frequency of the CPU must be set.
The initial program is set as a parameter of the programming/erasing program which has
downloaded these settings.
(a) Flash programming/erasing frequency parameter (FPEFEQ: general register ER0 of CPU)
This parameter sets the operating frequency of the CPU and enables the user branch function.
Bit
Bit
Name
Initial
Value
R/W Description
31 to
16
FUBF15 to
FUBF0
R/W Set to H'AA55 if the user branch function is enabled by
the flash user branch enable bit. Otherwise, set to
H'0000.
15 to 0 F15 to F0 R/W Frequency Set
Set the operating frequency of the CPU. The setting
value must be calculated as the following methods.
1. The operating frequency which is shown in MHz
units must be rounded in a number to three decimal
places and be shown in a number of two decimal
places.
2. The value multiplied by 100 is converted to the
binary digit and is written to the FPEFEQ parameter
(general register ER0).
For example, when the operating frequency of the CPU
is 35.000 MHz, the value is as follows.
1. The number to three decimal places of 35.000 is
rounded and the value is thus 35.00.
2. The formula that 35.00 × 100 = 3500 is converted to
the binary digit and B'0000,1101,1010,1100
(H'0DAC) is set to R0.