English
Language : 

RX62N Datasheet, PDF (18/25 Pages) Renesas Technology Corp – 100 MHz 32-bit RX MCU with FPU, 165 DMIPS, up to 512-Kbyte Flash, Ethernet, USB 2.0
RX62N Group and RX621 Group
16-Bit SDRAM Connection and Access Examples
5.5.2 Main Function
(1) Description
The main() function calls the init() and err() functions and performs the program operations (reading and writing
memory and comparing the data values).
(2) Arguments
None
(3) Return value
None
(4) Flowchart
main
Initialize microcontroller
init()
Set SDRAM access address = start address
SDRAM access address == end address?
(SDRAM area)
Yes
No
Initialize memory
SDRAM access address + 1
Set SDRAM access address = start address
SDRAM access address == end address?
(SDRAM area)
Yes
No
Write to memory
SDRAM access address + 1
Set SDRAM access address = start address
No
SDRAM access address == end address?
(SDRAM area)
No
Yes
Read data == compare data?
Yes
SDRAM access address + 1
Output OK code (b'0) to P02 pin
Call error function
err()
Figure 8 Flow chart (main)
R01AN0585EJ0202 Rev.2.02
Feb 14, 2014
Page 18 of 22