English
Language : 

H8S2368 Datasheet, PDF (792/1037 Pages) Renesas Technology Corp – Renesas 16-Bit Single-Chip Microcomputer H8S Family/H8S/2300 Series
Section 20 Flash Memory (0.18-µm F-ZTAT Version)
(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
Initial
Bit
Name Value R/W
31 to 16 FUBE15 
R/W
to 0
15 to 0 F15 to F0 
R/W
Description
Set to H'AAFF if the user branch function is enabled by
the flash user branch enable bit. Otherwise, set to
H'0000.
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
34.000 MHz, the value is as follows.
1. The number to three decimal places of 34.000 is
rounded and the value is thus 34.00.
2. The formula that 34.00 × 100 = 3400 is converted to
the binary digit and B'0000,1101,0100,1000 (H'0D48)
is set to R0.
Rev. 5.00 Aug 02, 2006 page 738 of 980
REJ09B0050-0500