User`s manual
RX62N Group, RX621 Group 5. Usage Examples
);
/* Send data (which will also receive data at the same time) */
R_SCI_Send(
3,
PDL_NO_DATA,
Tx_Data,
transfer_size,
PDL_NO_FUNC
);
/* Ensure the receive interrupt has processed the last byte */
while (data_received == false);
/* Process the received data here */
}
/* SCI channel 3 receive complete handler */
void SCI3RxFunc (void)
{
data_received = true;
}
Figure 5-21: Example of Synchronous Transmission and Reception code
R20UT0084EE0112 Rev.1.12 Page 5-40
July. 16, 2014