
Section 6 ROM
Rev. 6.00 Sep 12, 2006 page 134 of 526
REJ09B0326-0600
Prewrite Flowchart
Start
End of prewrite
Programming error
Set erase block register
(set bit for block to be programmed to 1)
Select program mode
(P bit = 1 in FLMCR)
Set start address
*
6
n = 1
Wait (x)
µ
s
*
4
Clear P bit
End of programming
No
No
NG
OK
Yes
Yes
Enable watchdog timer
*
2
Disable watchdog timer
Wait (t
vs1
) µs
*
5
n + 1
→
n
A 1
→
address
Double the programming time
(x
×
2
→
x)
Clear erase block register
(clear bit for programmed block to 0)
Write H'00 to flash memory
(flash memory latches programmed address
and data)
*
1
Prewrite verify
*
3
(read data H'00?)
n
≥
N?
*
5
Last address?
Notes: 1. Write using a byte transfer instruction.
2. For the timer overflow interval, set the
timer counter value (TCW) to H'FE.
3. In prewrite-verify mode, P, E, PV, and EV
are all cleared to 0, and 12 V is applied to
the V
PP
pin. Read using a byte transfer
4. Programming time x is successively
incremented to initial set value
×
2
n–1
(n = 1 to 6). The initial value should
therefore be set to 15.8
µ
s or less to make
the total programming time 1 ms or less.
5. t
vs1
: 4 µs or more
N: 6 (set N so that the total programming
time does not exceed 1 ms)
6. The start address and last address are the
start address and last address of the block
to be erased.
*
6
Figure 6.15 Prewrite Flowchart
Summary of Contents for F-ZTAT H8/3642A Series
Page 6: ...Rev 6 00 Sep 12 2006 page iv of xx ...
Page 8: ...Rev 6 00 Sep 12 2006 page vi of xx ...
Page 22: ...Rev 6 00 Sep 12 2006 page xx of xx ...
Page 124: ...Section 5 Power Down Modes Rev 6 00 Sep 12 2006 page 102 of 526 REJ09B0326 0600 ...
Page 188: ...Section 6 ROM Rev 6 00 Sep 12 2006 page 166 of 526 REJ09B0326 0600 ...
Page 190: ...Section 7 RAM Rev 6 00 Sep 12 2006 page 168 of 526 REJ09B0326 0600 ...
Page 298: ...Section 9 Timers Rev 6 00 Sep 12 2006 page 276 of 526 REJ09B0326 0600 ...
Page 378: ...Section 12 A D Converter Rev 6 00 Sep 12 2006 page 356 of 526 REJ09B0326 0600 ...
Page 446: ...Section 13 Electrical Characteristics Rev 6 00 Sep 12 2006 page 424 of 526 REJ09B0326 0600 ...