r5f71374an80fpv Renesas Electronics Corporation., r5f71374an80fpv Datasheet - Page 950

no-image

r5f71374an80fpv

Manufacturer Part Number
r5f71374an80fpv
Description
32-bit Risc Microcomputer Superh?? Risc Engine Family
Manufacturer
Renesas Electronics Corporation.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
R5F71374AN80FPV
Manufacturer:
TI
Quantity:
1 001
Section 22 Flash Memory
(2) Programming Procedure in User Program Mode
Rev. 1.00 Sep. 21, 2007 Page 924 of 1124
REJ09B0402-0100
The procedures for download, initialization, and programming are shown in figure 22.11.
The details of the programming procedure are described below. The procedure program must
be executed in an area other than the flash memory to be programmed. Especially the part
where the SCO bit in FCCS is set to 1 for downloading must be executed in the on-chip RAM.
Specify 1/4 (initial value) as the frequency division ratios of an internal clock (Iφ), a bus clock
(Bφ), and a peripheral clock (Pφ) through the frequency control register (FRQCR).
After the programming/erasing program has been downloaded and the SCO bit is cleared to 0,
the setting of the frequency control register (FRQCR) can be changed to the desired value.
The area that can be executed in the steps of the user procedure program (on-chip RAM, user
MAT, and external space) is shown in section 22.9.2, Areas for Storage of the Procedural
Program and Data for Programming.
set download destination
JSR FTDAR setting+32
Select on-chip program
to be downloaded and
Set the FPEFEQ and
After clearing VBR,
FUBRA parameters
procedure program
execute download
set SCO to 1 and
Start programming
Set FKEY to H'A5
Clear FKEY to 0
Initialization
DPFR=0?
FPFR=0?
by FTDAR
1
Yes
Yes
Initialization error processing
Download error processing
No
No
Figure 22.11 Programming Procedure
(2.1)
(2.2)
(2.3)
(2.4)
(2.5)
(2.6)
(2.7)
(2.8)
No
R5 (FMPAR and FMPDR)
Set parameter to R4 and
JSR FTDAR setting+16
procedure program
End programming
Set FKEY to H'5A
Clear FKEY to 0
programming is
Programming
Required data
completed?
FPFR=0?
1
Yes
Yes
Clear FKEY and
error processing
No
programming
(2.9)
(2.10)
(2.11)
(2.12)
(2.13)
(2.14)

Related parts for r5f71374an80fpv