
Section 6 ROM
Rev. 6.00 Sep 12, 2006 page 129 of 526
REJ09B0326-0600
6.7.3
Programming Flowchart and Sample Program
Flowchart for Programming One Byte
Start
End (1-byte data programmed)
Programming error
Set erase block register
(set bit for block to be programmed to 1)
Select program mode
(P bit = 1 in FLMCR)
n = 1
Wait (x)
µ
s
*
4
Clear P bit
End of programming
End of verify
No
NG
OK
Yes
Enable watchdog timer
*
2
Disable watchdog timer
Select program-verify mode
(PV bit = 1 in FLMCR)
Wait (t
vs1
)
µ
s
*
5
Clear PV bit
Clear PV bit
n + 1
→
n
Double the programming time
(x
×
2
→
x)
Clear erase block register
(clear bit for programmed block to 0)
Write data to flash memory
(flash memory latches write address
and data)
*
1
Verify
*
3
(read memory)
n
≥
N?
*
5
Notes: 1. Write the data to be programmed using a byte
transfer instruction.
2. For the timer overflow interval, set the timer
counter value (TCW) to H'FE.
3. Read the memory data to be verified using a
byte transfer instruction.
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 total programming time
does not exceed 1 ms)
Figure 6.13 Programming Flowchart
Содержание F-ZTAT H8/3642A Series
Страница 6: ...Rev 6 00 Sep 12 2006 page iv of xx ...
Страница 8: ...Rev 6 00 Sep 12 2006 page vi of xx ...
Страница 21: ...Rev 6 00 Sep 12 2006 page xix of xx Appendix E Product Code Lineup 522 Appendix F Package Dimensions 524 ...
Страница 22: ...Rev 6 00 Sep 12 2006 page xx of xx ...
Страница 124: ...Section 5 Power Down Modes Rev 6 00 Sep 12 2006 page 102 of 526 REJ09B0326 0600 ...
Страница 188: ...Section 6 ROM Rev 6 00 Sep 12 2006 page 166 of 526 REJ09B0326 0600 ...
Страница 190: ...Section 7 RAM Rev 6 00 Sep 12 2006 page 168 of 526 REJ09B0326 0600 ...
Страница 298: ...Section 9 Timers Rev 6 00 Sep 12 2006 page 276 of 526 REJ09B0326 0600 ...
Страница 378: ...Section 12 A D Converter Rev 6 00 Sep 12 2006 page 356 of 526 REJ09B0326 0600 ...
Страница 446: ...Section 13 Electrical Characteristics Rev 6 00 Sep 12 2006 page 424 of 526 REJ09B0326 0600 ...