English
Language : 

SH7055S Datasheet, PDF (819/1002 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer SuperH RISC engine Family/SH7000 Series
(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 22.13 shows an example of repetitively executing RAM emulation, erasing, and
programming.
1
Start procedure program
Set FTDAR to H’02
(Specify H’FFFF7000 as
download destination)
Download erasing program
Initialize erasing program
Enter RAM emulation mode and
tune data in on-chip RAM
Cancel RAM emulation mode
Erase relevant block
(execute erasing program)
Set FTDAR to H’03
(Specify H’FFFF7800 as
download destination)
Set FMPDR to H’FFFF6000 to
program relevant block
(execute programming program)
Download programming
program
Initialize programming
program
1
Confirm operation
End?
No
Yes
End procedure program
Figure 22.13 Sample Procedure of Repeating RAM Emulation, Erasing, and Programming
(Overview)
In the above example, the erasing program and programming program are downloaded to areas
excluding the 4 kbytes (H'FFFF6000 to H'FFFF6FFF) from the start of on-chip ROM.
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 RAM emulation area, erasing program area, and programming program area,
Rev.2.0, 07/03, page 781 of 960