Rev. 1.00, 09/03, page 532 of 704
(2) Download of On-Chip Program
The on-chip program is automatically downloaded by setting the flash key code register (FKEY)
and the SCO bit in the flash code control/status register (FCCS), which are programming/erasing
interface registers.
The flash memory MAT is replaced to the embedded program storage area during downloading.
Since the flash memory MAT cannot be read when programming/erasing, the procedure program,
which is working from download to completion of programming/erasing, must be executed in the
space other than the flash memory (for example, on-chip RAM).
Since the result of download is returned to the programming/erasing interface parameter, whether
the normal download is executed or not can be confirmed.
(3) Initialization of Programming/Erasing
The operating frequency is set before execution of programming/erasing. This setting is made by
using the programming/erasing interface parameter.
(4) Programming/Erasing Execution
For programming/erasing execution, the FLSHE bit in SYSCR and the FWE pin must be set to 1
to make a transition to user program mode.
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 parameter and the on-chip
program is initiated. The on-chip program is executed by using the JSR or BSR instruction and
performing the subroutine call of the specified address in the on-chip RAM. The execution result
is returned to the programming/erasing interface parameter.
The area to be programmed must be erased in advance when programming flash memory. All
interrupts must be disabled during programming and erasing. Interrupts must be masked within 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 to perform programming/erasing
consecutively.
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.
Summary of Contents for H8S/2437
Page 2: ...Rev 1 00 09 03 page ii of xxxviii ...
Page 8: ...Rev 1 00 09 03 page viii of xxxviii ...
Page 32: ...Rev 1 00 09 03 page xxxii of xxxviii ...
Page 38: ...Rev 1 00 09 03 page xxxviii of xxxviii ...
Page 168: ...Rev 1 00 09 03 page 130 of 704 ...
Page 336: ...Rev 1 00 09 03 page 298 of 704 ...
Page 402: ...Rev 1 00 09 03 page 364 of 704 ...
Page 454: ...Rev 1 00 09 03 page 416 of 704 ...
Page 512: ...Rev 1 00 09 03 page 474 of 704 ...
Page 562: ...Rev 1 00 09 03 page 524 of 704 ...
Page 648: ...Rev 1 00 09 03 page 610 of 704 ...
Page 672: ...Rev 1 00 09 03 page 634 of 704 ...
Page 732: ...Rev 1 00 09 03 page 694 of 704 ...
Page 742: ...Rev 1 00 09 03 page 704 of 704 ...
Page 745: ......
Page 746: ...H8S 2437 Group Hardware Manual REJ09B0059 0100Z ...