RL78/G11 UART Reception in STOP Mode Using Middle-speed On-chip Oscillator IAR
R01AN3634EJ0100 Rev.1.00 Page 21 of 85
Feb. 15, 2017
Function name: R_UART0_Receive
Outline UART0 reception status initialization function
Header r_cg_sau.h
Declaration MD_STATUS R_UART0_Receive(uint8_t * const rx_buf, uint16_t rx_num)
Description Initial setup of UART0 reception status
Argument uint8_t* const rx_buf
uint16_t rx_num
: Address of receive data buffer
: Size of receive data buffer
Return value MD_OK: reception setup completed
MD_ARGERROR: reception setup failure
Additional notes None
Function name: R_UART0_Start
Outline UART0 operation start function
Header r_cg_sau.h
Declaration void R_UART0_Start (void)
Description Sets UART0 to operation enabled state.
Argument None
Return value None
Additional notes None
Function name: r_tau0_baudrate_correction
Outline TAU0 baud rate initialization function
Header r_cg_tau.h
Declaration void r_tau0_baudrate_correction (void)
Description
This function executes the baud rate correction. TAU0 channel 1 and channel 3 are
started. The pulse width of the square waveform generated by channel 1 is
measured by channel 3. The results are back calculated and the clock division
modified to make the UART baud rate as close to its ideal value as possible.
Argument None
Return value None
Additional notes None
Function name: R_INTC11_Start
Outline INTP11 operation start function
Header r_cg_intp.h
Declaration void R_INTC11_Start (void)
Description Sets INTP11 to operation enabled state.
Argument None
Return value None
Additional notes None