RL78/G13 Handshake-based SPI Master Transmission/Reception
R01AN6883EJ0100 Rev.1.00 Page 22 of 38
June.15.23
5.6 Flowcharts
5.6.1 Initialization process
Figure 5-1 shows the flow of Initialization process.
Figure 5-1 Initialization process
R_Systeminit
Peripheral I/O Redirection
Function Inhibit
return
Timer Array Unit Initialization
R_TAU0_Create()
Serial Array Unit Initialization
R_SAU0_Create()
Input/output settings
R_PORT_Create()
CPU clock initialization
R_CGC_Create()
Reset source reading
R_CGC_Get_ResetSource()
Unauthorized memory access
detection disabled
PIOR → 0x00U
IAWCTL → 0x00U
5.6.2 Reset source reading
Figure 5-2 shows the flow of Reset source reading
Figure 5-2 Reset source reading
R_CGC_Get_ResetSource()
Storing RESF
reset_flag ← RESF
return