Datasheet
Section 20 Flash Memory (0.18-μm F-ZTAT Version)
Rev.6.00 Mar. 18, 2009 Page 757 of 980
REJ09B0050-0600
⎯ After the selection condition of the download program and the FTDAR setting are checked,
the transfer processing to the on-chip RAM specified by FTDAR is executed.
⎯ The SCO bits in FPCS, FECS, and FCCS are cleared to 0.
⎯ The return value is set to the DPFR parameter.
⎯ After the on-chip program storage area is returned to the user-MAT space, the user
procedure program is returned.
The notes on download are as follows.
⎯ In the download processing, the values of CPU general registers other than ER0 and ER1
are retained.
⎯ In the download processing, any interrupts are not accepted. However, interrupt requests
other than the NMI are held. Therefore, when the user procedure program is returned, the
NMI interrupts occur. NMI requests are discarded if the FVACR value is H'00. However, if
H'88 has been written to FVACR, they are held and the interrupts are generated when
processing returns to the user procedure program.
⎯ The sources of the interrupt requests from the on-chip module and at the falling edge of the
IRQ are held during downloading. The refresh cycles for the DRAM can be inserted.
⎯ When the level-detection interrupt requests are to be held, interrupts must be input until the
download is ended.
⎯ When hardware standby mode is entered during download processing, the normal
download cannot be guaranteed in the on-chip RAM. Therefore, download must be
executed again.
⎯ Since a stack area of a maximum 128-byte is used, the area must be allocated before setting
the SCO bit to 1.
⎯ If a flash memory access by the DMAC, DTC, or BREQ signal is requested during
downloading, the operation cannot be guaranteed. Therefore, an access request by the
DMAC, DTC, or BREQ signal must not be generated.
4. FKEY is cleared to H'00 for protection.
5. The value of the DPFR parameter must be checked and the download result must be
confirmed.
⎯ Check the value of the DPFR parameter (one byte of start address of the download
destination specified by FTDAR). If the value is H'00, download has been performed
normally. If the value is not H'00, the source that caused download to fail can be
investigated by the description below.
⎯ If the value of the DPFR parameter is the same as before downloading (e.g. H'FF), the
address setting of the download destination in FTDAR may be abnormal. In this case,
confirm the setting of the TDER bit (bit 7) in FTDAR.