Download Print this page

Renesas M16C/50 Series User Manual page 503

Advertisement

M16C/5L Group, M16C/56 Group
CTS/RTS Function
21.3.2.5
The CTS function is used to start transmit operation when a low signal is applied to the CTSi / RTSi (i =
0 to 3) pin. Transmit operation begins when input to the CTSi / RTSi pin becomes low. If the input level is
switched from low to high during transmit operation, the operation stops after the ongoing
transmit/receive operation is completed.
When the RTS function is selected, the CTSi / RTSi pin outputs a low signal when the MCU is ready to
receive. The output level becomes high when a start bit is detected.
See Table 21.9 "I/O Pin Functions in UART Mode".
21.3.2.6
Processing When Terminating Communication or When an Error Occurs
If communication is terminated in UART mode, or a communication error occurs, use following
procedure reset communication:
(1) Set the TE bit in the UiC1 (i = 0 to 4) register to 0 (transmission disabled) and the RE bit to 0
(reception disabled).
(2) Set bits SMD2 to SMD0 in the UiMR register to 000b (serial interface disabled).
(3) Set bits SMD2 to SMD0 in the UiMR register to 100b (UART mode character bit length is 7 bits),
101b (UART mode character bit length is 8 bits), and 110b (UART mode character bit length is 9
bits).
(4) Set the TE bit in the UiC1 register to 1 (transmission enabled) and the RE bit to 1 (reception
enabled).
R01UH0127EJ0110 Rev.1.10
Sep 01, 2011
21. Serial Interface UARTi (i = 0 to 4)
Page 466 of 803

Advertisement

loading