HD64336901G Renesas Technology, HD64336901G Datasheet - Page 132

no-image

HD64336901G

Manufacturer Part Number
HD64336901G
Description
(HD64xxx Series) 16-BIT MICROCONTROLLER
Manufacturer
Renesas Technology
Datasheet
Rev. 1.00, 11/03, page 104 of 376
Notes: 1. The RTS instruction must not be used during the following (1) and (2) periods.
Wait (Wait time = Programming time)
Write pulse application subroutine
2. When WDT is in use, disable it once.
Clear PSU bit in FLMCR1
Set PSU bit in FLMCR1
Clear P bit in FLMCR1
Set P bit in FLMCR1
Apply Write Pulse
(1) A period between 64-byte data programming to flash memory and the P bit clearing
(2) A period between dummy writing of H'FF to a verify address and verify data reading
WDT enable
Disable WDT
Wait 50 s
Wait 5 s
Wait 5 s
End Sub
Figure 7.3 Program/Program-Verify Flowchart
*
Increment address
1
programming data area in RAM to flash memory
Successively write 64-byte data from additional-
No
Additional-programming data computation
data area consecutively to flash memory
Store 64-byte program data in program
Write 64-byte data in RAM reprogram
H'FF dummy write to verify address
data area and reprogram data area
Clear SWE bit in FLMCR1
Set block start address as
Reprogram data computation
data verification completed?
Set SWE bit in FLMCR1
Clear PV bit in FLMCR1
Set PV bit in FLMCR1
Apply Write Pulse
End of programming
Apply
Read verify data
verify address
Disable WDT
Yes
Yes
Wait 100 s
Verify data =
Write data?
Wait 1 s
Wait 4 s
Wait 2 s
Wait 2 s
Yes
START
m = 0 ?
64-byte
n 6 ?
n 6?
n = 1
m= 0
Write pulse
Yes
Yes
Sub-Routine-Call
No
No
No
No
*
2
*
1
m = 1
Clear SWE bit in FLMCR1
Programming failure
Wait 100 s
n
1000 ?
No
Yes
n
n + 1

Related parts for HD64336901G