RL78/G11 UART Reception in STOP Mode Using Middle-speed On-chip Oscillator IAR
R01AN3634EJ0100 Rev.1.00 Page 20 of 85
Feb. 15, 2017
Function name: R_SAU0_Create
Outline SAU0 initialization function
Header r_cg_sau.h,intrinsics.h
Declaration void R_ SAU0_Create(void)
Description Initial setup of SAU0.
Argument None
Return value None
Additional notes None
Function name: R_UART0_Create
Outline UART0 initialization function
Header r_cg_sau.h
Declaration void R_UART0_Start (void)
Description Initial setup of UART0.
Argument None
Return value None
Additional notes None
Function name: R_INTC_Create
Outline INTP initialization function
Header r_cg_intp.h
Declaration void R_INTC_Create (void)
Description Initial setup of INTP.
Argument None
Return value None
Additional notes None
Function name: main
Outline Main function
Header intrinsics.h
Declaration void main(void)
Description
After initial main setup, this function waits for a UART reception transmission in the
STOP state. UART reception process is executed when the UART start bit is
detected by INTP11. The function returns to the STOP state after the UART
reception transmission. If a reception error is detected, the error is judged and the
error type is indicated by an LED.
Argument None
Return value None
Additional notes None
Function name: R_MAIN_UserInit
Outline Main function initialization function
Header intrinsics.h
Declaration void R_MAIN_UserInit(void)
Description
After UART0 and TAU0 are initialized, this function starts INTP11 operations and
enables interrupts with the EI instruction.
Argument None
Return value None
Additional notes None