TXZ Family
Flash Memory
2018-06-05
81 / 120
Rev. 2.0
6. The programming method
Initialization
Before performing programming/erasing operation to a code flash or a data flash, must be oscillate a internal high
speed oscillator1 (IHOSC1). And. Please operate flash memory after oscillation start and check
[CGOSCCR]
<IHOSC1F>=1. Please refer to the reference manual “Clock Control and Operation Mode” for detail.
Mode Description
This device provides single chip mode and single boot mode. The single chip mode contains normal mode and
user boot mode. Please refer to Table 6.1 for detail.
Table 6.1 The mode and operation
Mode
Operation
Single boot
Mode
After reset is released, The program of the Boot ROM (mask ROM) which is build-in will be start.
"The programming/erasing program code for a flash memory" can be downloaded from the host to
on-chip RAM via a communication function, and the “The programming/erasing program for a flash
memory” can be run.
Please refer to “6.6. How to Reprogram the Flash in Single Boot Mode”.
Single chip
Mode
Normal
Mode
A user's application program is run. Moreover, a on-chip flash memory can be
program/erase a "flash memory programming/erasing program" in RAM.
Although it can be operated to all the flash memory to build in, the application
program of the user on a flash memory cannot be run during flash memory
programming/erasing.
When only code flash (FLASH I/F 0) is built-in, only this mode is available.
Please refer to “6.5How to Reprogramming the Flash” for how to program/erase a
flash memory.
Dual
Mode
The on-chip flash memory which is different area can be erasing and
programming, and running a user's application program concurrently. In case of
built-in two or more the FLASH I/F of a code flash or data flash are available.
Please refer to “6.7How to Reprogramming using Dual Mode” for how to
program/erase a flash memory.