Renesas H8S/2319 series Hardware Manual page 702

Renesas 16-bit single-chip microcomputer
Table of Contents

Advertisement

3. Initialization of programming/erasing
The operating frequency is set before execution of programming/erasing. This setting is
performed by using the programming/erasing interface parameters.
4. Programming/erasing execution
To program or erase, the FLSHE bit in system control register 2 (SYSCR2) must be set to 1
and the user program mode must be entered.
The program data/programming destination address is specified in 128-byte units when
programming.
The block to be erased is specified in erase-block units when erasing.
These specifications are set by using the programming/erasing interface parameters and the on-
chip program is initiated. The on-chip program is executed by using the JSR or BSR
instruction to perform the subroutine call of the specified address in the on-chip RAM. The
execution result is returned to the programming/erasing interface parameters.
The area to be programmed must be erased in advance when programming flash memory.
All interrupts are prohibited during programming and erasing. Interrupts must not occur in the
user system.
5. When programming/erasing is executed consecutively
When the processing is not ended by the 128-byte programming or one-block erasure, the
program address/data and erase-block number must be updated and consecutive
programming/erasing is required.
Since the downloaded on-chip program is left in the on-chip RAM after the processing,
download and initialization are not required when the same processing is executed
consecutively.
Rev. 5.00, 12/03, page 672 of 1088

Advertisement

Table of Contents
loading

This manual is also suitable for:

H8s/2318 series

Table of Contents