Renesas RX100 Series User Manual page 674

32-bit mcu
Hide thumbs Also See for RX100 Series:
Table of Contents

Advertisement

RX13T Group
Figure 23.40 shows a sample flowchart of serial transmission.
No
No
No
Figure 23.40
Sample Smart Card Interface Transmission Flowchart
All the processing steps are automatically performed using a TXI interrupt request to activate the DTC.
When the TEND flag in the SSR register is set to 1 in transmission, if the TIE bit in the SCR register is 1, a TXI interrupt
request is generated. The DTC is activated by a TXI interrupt request if the TXI interrupt request is specified as a source
of DTC activation beforehand, allowing transfer of transmit data. The TEND flag is automatically set to 0 when the DTC
transfers the data.
If an error occurs, the SCI automatically retransmits the same data. During this retransmission, the TEND flag is kept to
0 and the DTC is not activated. Therefore, the SCI and DTC automatically transmit the specified number of bytes,
including retransmission in the case of error occurrence. However, since the ERS flag is not automatically cleared, set the
RIE bit to 1 beforehand to enable an ERI interrupt request to be generated at error occurrence, and clear the ERS flag to
0.
R01UH0822EJ0100 Rev.1.00
Jul 31, 2019
Start
Initialization
Start data transmission
SSR.ERS flag = 0?
Yes
TXI interrupt
Yes
Write transmit data to TDR
All transmit data written?
Yes
SSR.ERS flag = 0?
Yes
TXI interrupt
Yes
Set bits TIE, RIE, and TE
in SCR to 0
End
23. Serial Communications Interface (SCIg, SCIh)
No
Error processing
No
Error processing
Page 674 of 1041

Advertisement

Table of Contents
loading

Table of Contents