English
Language : 

3069RF-ZTAT Datasheet, PDF (642/1003 Pages) Renesas Technology Corp – RENESAS 16-BIT SINGLE-CHIP MICROCOMPUTER
The interrupt processing prohibition is set up by setting the bit 7 (I) in the condition code
register (CCR) of the CPU to b'1. Then interrupts other than NMI are held and are not
executed.
The NMI interrupts must not occur in the user system.
The interrupts that are held must be processed in executed after all program processing.
When the bus mastership is moved to DMAC or BREQ or DRAM refresh except for the CPU,
the error protection state is entered. Therefore, reservation of bus mastership by DMAC or
BREQ is prohibited.
(j) FKEY must be set to H'5A and the user MAT must be prepared for programming.
(k) The parameter which is required for programming is set.
The start address of the programming destination of the user MAT (FMPAR) is set to general
register ER1. The start address of the program data storage area (FMPDR) is set to general
register ER0.
• Example of the FMPAR setting
FMPAR specifies the programming destination address. When an address other than
one in the user MAT area is specified, even if the programming program is executed,
programming is not executed and an error is returned to the return value parameter
FPFR. Since the unit is 128 bytes, the lower eight bits (A7 to A0) must be in the 128-
byte boundary of H'00 or H'80.
• Example of the FMPDR setting
When the storage destination of the program data is flash memory, even if the program
execution routine is executed, programming is not executed and an error is returned to
the FPFR parameter. In this case, the program data must be transferred to the on-chip
RAM and then programming must be executed.
(l) Programming
There is an entry point of the programming program in the area from (download start address
set by FTDAR) + 16 bytes of on-chip RAM. The subroutine is called and programming is
executed by using the following steps.
MOV.L
JSR
NOP
#DLTOP+16,ER2
@ER2
; Set entry address to ER2
; Call programming routine
• The general registers other than R0L are saved in the programming program.
• R0 is a return value of the FPFR parameter.
Rev. 5.0, 09/04, page 620 of 978