Renesas H8S Series Hardware Manual page 821

16-bit single-chip microcomputer
Hide thumbs Also See for H8S Series:
Table of Contents

Advertisement

(f)
Set the operating frequency to the FPEFEQ parameter for initialization.
The current frequency of the CPU clock is set to the FPEFEQ parameter (general register ER0).
The settable range of the FPEFEQ parameter is 4 to 20 MHz. When the frequency is set out of this
range, an error is returned to the FPFR parameter of the initialization program and initialization is
not performed. For details on the frequency setting, see the description in 21.3.2 (2) (a), Flash
programming/erasing frequency control parameter (FPEFEQ).
(g)
Initialization
When a programming program is downloaded, the initialization program is also downloaded to the
on-chip RAM. There is an entry point for the initialization program in the area from the start
address of a download destination specified by FTDAR + 32 bytes. The subroutine is called and
initialization is executed by using the following steps.
MOV.L
#DLTOP+32,ER2
JSR
@ER2
NOP
• The general registers other than R0L are saved in the initialization program.
• R0L is a return value of the FPFR parameter.
• Since the stack area is used in the initialization program, a 128-byte stack area at the maximum
must be allocated in RAM.
• Interrupts can be accepted during the execution of the initialization program. Note however
that the program storage area and stack area in the on-chip RAM, and register values must not
be rewritten.
(h) The return value in the initialization program, FPFR (general register R0L) is
determined.
(i)
All interrupts and the use of a bus master other than the CPU are prohibited.
The stipulated voltage is applied for the stipulated time when programming or erasing. If
interrupts occur or a bus master other than the CPU gets the bus during this period, a voltage pulse
exceeding the regulation may be applied, thus damaging flash memory. Accordingly, interrupts
must be disabled and a bus master other than the CPU, such as the DTC or LPC, must not be
allowed.
To disable interrupts, bit 7 (I) in the condition code register (CCR) of the CPU should be set to B'1
in interrupt control mode 0, or bits 7 and 6 (I and UI) in the condition code register (CCR) of the
Section 21 Flash Memory (0.18-µm F-ZTAT Version)
; Set entry address to ER2
; Call initialization routine
Rev. 3.00 Jul. 14, 2005 Page 773 of 986
REJ09B0098-0300

Advertisement

Table of Contents
loading

This manual is also suitable for:

H8s/2100 seriesH8s/2114rR4f2114r

Table of Contents