English
Language : 

R01AN1504EJ0100 Datasheet, PDF (31/50 Pages) Renesas Technology Corp – Using the DTC to Perform Continuous Clock
RL78/G14
Using the DTC to Perform Continuous Clock
Synchronous Serial Communication
4.8.8 CSI00 Transmission/Reception Start
Figure 4.12 shows the CSI00 transmission/reception start.
R_CSI00_Send_Receive
Arguments
uint8_t * const tx_buf: Transmit data buffer pointer
uint16_t tx_num: Transmit data size
uint8_t * const rx_buf: Receive data buffer pointer
Set MD_OK to the status
Number of bytes to
transmit is less than 1?
Yes
Set MD_ARGERROR
to the status
No
Set the transmit data size to the
transmit data counter
Set the transmit buffer address
Set the receive buffer address
Disable the CSI00 interrupt
Set the transmit data to the
SIO00 register
MK0H register
CSIMK00 bit ← 1: Interrupt servicing disabled
SIO00 register ← *gp_csi00_tx_address
Update the transmit buffer address
Update the transmit data counter
Enable the CSI00 interrupt
MK0H register
CSIMK00 bit ← 0: Interrupt servicing enabled
return(status)
Figure 4.12 CSI00 Transmission/Reception Start
R01AN1504EJ0100 Rev. 1.00
Feb. 14, 2014
Page 31 of 47