
703
22.6.2
User Program Mode
After setting FWP, the user should branch to, and execute, the previously prepared
programming/erase control program.
As the flash memory itself cannot be read while flash memory programming/erasing is being
executed, the control program that performs programming and erasing should be run in on-chip
RAM or external memory.
Use the following procedure (figure 22.12) to execute the programming control program that
writes to flash memory (when transferred to RAM).
Execute user application
program
Execute programming/
erase control program in RAM
(flash memory rewriting)
Transfer programming/erase
control program to RAM
FWP = 1
(user program mode)
Write FWP assessment program
and transfer program
1
2
3
4
5
Figure 22.12 User Program Mode Execution Procedure
Notes: 1. When programming and erasing, start the watchdog timer so that measures can be
taken to prevent program runaway, etc. Memory cells may not operate normally if
overprogrammed or overerased due to program runaway.
2. If an address at which a flash memory register resides is read in the mask ROM or
ZTAT version, the value will be undefined. When a flash memory version program is
used in the mask ROM or ZTAT version, the state of the FWP pin cannot be
determined. A modification must therefore be made to prevent operation of the flash
memory rewrite program.
Содержание SH7041 Series
Страница 2: ......
Страница 6: ......
Страница 38: ...xvi ...
Страница 44: ...6 ...
Страница 46: ...8 ...
Страница 48: ...10 ...
Страница 82: ...44 ...
Страница 114: ...76 ...
Страница 118: ...80 ...
Страница 124: ...86 ...
Страница 170: ...132 ...
Страница 250: ...212 ...
Страница 492: ...454 ...
Страница 506: ...468 ...
Страница 604: ...566 ...
Страница 684: ...646 ...
Страница 706: ...668 ...
Страница 778: ...740 ...
Страница 780: ...742 ...
Страница 818: ...780 ...
Страница 850: ...812 ...
Страница 923: ...SH7040 SH7041 SH7042 SH7043 SH7044 SH7045 Group Hardware Manual REJ09B0044 0600O ...