EasyManuals Logo
Home>Renesas>Computer Hardware>RL78/G13

Renesas RL78/G13 Application Note

Renesas RL78/G13
40 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #33 background imageLoading...
Page #33 background image
RL78/G13 Handshake-based SPI Master Transmission/Reception
R01AN6883EJ0100 Rev.1.00 Page 33 of 38
June.15.23
5.6.15 Flowchart of CSI Transmission/Reception
Figure 5-16 shows the flow of transmission and reception.
Figure 5-16 CSI Transmission/Reception
CSI00_Send_Receive
()
Extract slave transmittable data
count and set it in g_num
return
g_num >= TX_RX_NUM
g_rx_data_stored[1] >=
TX_RX_NUM
Is slave receivable data greater
than transmit/receive data?
Enable interrupts
cnt = 0
cnt <= TX_RX_NUM+1
Is a return value from wait() 0?
cnt == 0
Set transmit/receive command
in buffer for transmit data
Set TX_DATA[] in buffer for transmit data
R_CSI00_Send_Receive(&g_tx_data,
data_length, &g_rx_data)
Enter HALT mode
INTCSI00 occurred
cnt != 0
Store receive data
cnt ++
Set g_timeout_flag
Yes
Yes
Yes
Yes
Yes
Yes
No
No
No
No
No
No

Other manuals for Renesas RL78/G13

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Renesas RL78/G13 and is the answer not in the manual?

Renesas RL78/G13 Specifications

General IconGeneral
BrandRenesas
ModelRL78/G13
CategoryComputer Hardware
LanguageEnglish

Related product manuals