Download Print this page

Renesas M16C/50 Series User Manual page 494

Advertisement

M16C/5L Group, M16C/56 Group
CTS/RTS Function
21.3.1.5
The CTS function is used to start transmit/receive operation when a low signal is applied to the
CTSi / RTSi (i = 0 to 3) pin. Transmit/receive operation begins when input to the CTSi / RTSi pin becomes
low. If the low signal is switched to high during a transmit or receive operation, the operation stops
before the next data.
For the RTS function, the CTSi / RTSi pin outputs a low signal when the MCU is ready to receive. The
output level becomes high at the detection of the start bit.
See Table 21.6 "Pin Functions in Clock Synchronous Serial I/O Mode".
21.3.1.6
Processing When Terminating Communication or When an Error Occurs
When communication is terminated in clock synchronous serial I/O mode, or when a communication
error occurs, use the following procedure to 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 001b (clock synchronous serial I/O mode).
(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 457 of 803

Advertisement

loading