English
Language : 

HD64F2168 Datasheet, PDF (691/874 Pages) Renesas Technology Corp – Renesas 16-Bit Single-Chip Microcomputer
(4) Erasing and Programming Procedure in User Program Mode
By changing the on-chip RAM address of the download destination in FTDAR, the erasing
program and programming program can be downloaded to separate on-chip RAM areas.
Figure 20.13 shows a repeating procedure of erasing and programming.
Start procedure program
Specify a download
destination of erasing
program by FTDAR
Download erasing program
Initialize erasing program
Specify a download
destination of programming
program by FTDAR
Download programming
program
Initialize programming
program
1
Erase relevant block
(execute erasing program)
Set FMPDR to
program relevant block
(execute programming
program)
Confirm operation
End ?
No
Yes
End procedure program
1
Figure 20.13 Repeating Procedure of Erasing and Programming
In the above procedure, download and initialization are performed only once at the beginning.
In this kind of operation, note the following:
• Be careful not to damage on-chip RAM with overlapped settings.
In addition to the erasing program area and programming program area, areas for the user
procedure programs, work area, and stack area are reserved in on-chip RAM. Do not make
settings that will overwrite data in these areas.
• Be sure to initialize both the erasing program and programming program.
Initialization by setting the FPEFEQ parameter must be performed for both the erasing
program and the programming program. Initialization must be executed for both entry
addresses: (download start address for erasing program) + 32 bytes and (download start
address for programming program) + 32 bytes.
Rev. 3.00, 03/04, page 651 of 830