EasyManua.ls Logo

Renesas RL78 - Main Processing

Renesas RL78
88 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
RL78/G11 UART Reception in STOP Mode Using Middle-speed On-chip Oscillator IAR
R01AN3634EJ0100 Rev.1.00 Page 26 of 85
Feb. 15, 2017
5.9.1 Main processing
Figure5.2 shows the flowchart for main processing (1/2).
main
LED1 ON
UART0 reception complete?
Framing error?
Reception error detected?
Yes
Yes
Yes
No
No
No
Shift to STOP mode
Return to normal mode in INTP11 interrupt
main initialization
R_MAIN_UserInit()
P3 register
P31 bit 0 :Output 0
B
LED1 OFF
Wait function for LED blinking
r_processing_pause()
Wait function for LED blinking
r_processing_pause()
P3 register
P31 bit 1 :Output 1
C
UART0 reception processing completion
flag initialization
UART0 reception status initialization
R_UART0_Receive()
INTP11 operation start function
R_INTC11_Start()
g_uart0rxend 0
Initialization setting function
hdwinit()
Figure 5.2 Main Processing (1/2)

Related product manuals