English
Language : 

D12320VF25V Datasheet, PDF (763/1146 Pages) Renesas Technology Corp – Old Company Name in Catalogs and Other Documents
Section 17 ROM
[7] Initialization
When a programming program is downloaded, the initialization program is also downloaded to
the on-chip RAM. There is an entry point of the initialization program in the area from
(download start address set by FTDAR) + 32 bytes. The subroutine is called and initialization
is executed by using the following steps.
MOV.L #DLTOP+32,ER2
JSR @ER2
NOP
; Set entry address to ER2
; Call initialization routine
• The general registers other than ER0 and ER1 are saved in the initialization program.
• R0L is a return value of the FPFR parameter.
• Since the stack area is used in the initialization program, a stack area of a maximum 128 bytes
must be saved in RAM.
• Interrupts can be accepted during the execution of the initialization program. The program
storage area and stack area in the on-chip RAM and register values must not be destroyed.
[8] The return value in the initialization program, FPFR (general register R0L) is judged.
[9] All interrupts and the use of a bus master other than the CPU are prohibited.
The specified voltage is applied for the specified time when programming or erasing. If
interrupts occur or the bus mastership is moved to other than the CPU during this time, more
than the specified voltage will be applied and flash memory may be damaged. Therefore,
interrupts and movement of bus mastership to DTC or BREQ other than the CPU are
prohibited.
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 DTC or BREQ or DRAM refresh except for the CPU,
the error protection state is entered. Therefore, reservation of bus mastership by DTC or BREQ
is prohibited.
[10] FKEY must be set to H'5A and the user MAT must be prepared for programming.
Rev.7.00 Feb. 14, 2007 page 729 of 1108
REJ09B0089-0700