English
Language : 

3069RF-ZTAT Datasheet, PDF (643/1003 Pages) Renesas Technology Corp – RENESAS 16-BIT SINGLE-CHIP MICROCOMPUTER
• Since the stack area is used in the programming program, a stack area of a maximum
128 bytes must be reserved in RAM
(m) The return value in the programming program, FPFR (general register R0L) is judged.
(n) Determine whether programming of the necessary data has finished.
If more than 128 bytes of data are to be programmed, specify FMPAR and FMPDR in 128-
byte units, and repeat steps (l) to (m). Increment the programming destination address by 128
bytes and update the programming data pointer correctly. If an address which has already been
programmed is written to again, not only will a programming error occur, but also flash
memory will be damaged.
(o) After programming finishes, clear FKEY and specify software protection.
If this LSI is restarted by a power-on reset immediately after user MAT programming has
finished, secure a reset period (period of RES = 0) that is at least as long as normal 100 µs.
Erasing Procedure in User Program Mode: The procedures for download, initialization, and
erasing are shown in figure 18.12.
Start erasing procedure
program
Select on-chip program
to be downloaded and set
download destination
(a)
by FTDAR
Set FKEY to H'A5
Set SCO to 1 and
execute download
Clear FKEY to 0
DPFR = 0?
Yes
No
Download error processing
Set the FPEFEQ and
FUBRA parameters
Initialization
JSR FTDAR setting+32
FPFR=0 ?
No
Yes Initialization error processing
1
1
Disable interrupts and
bus master operation
other than CPU
Set FKEY to H'5A
Set FEBS parameter
(b)
Erasing
JSR FTDAR setting+16 (c)
FPFR=0 ?
(d)
No
Yes Clear FKEY and erasing
error processing
No
Required block
erasing is
completed?
(e)
Yes
Clear FKEY to 0
(f)
End erasing
procedure program
Figure 18.12 Erasing Procedure
Rev. 5.0, 09/04, page 621 of 978