12
12-49
SERIAL I/O
12.7 Receive Operation in UART Mode
32180 Group User's Manual (Rev.1.0)
Figure 12.7.1 Procedure for Initializing UART Reception
Initialize UART reception
•
Set the register to UART mode
•
Set parity (when enabled, select odd/even)
•
Set the stop bit length
•
Set the character length
Set SIO Transmit/Receive Mode Register
(When using the DMAC)
Set DMAC related registers
Set Interrupt Controller's
SIO Receive Interrupt Control Register
Set SIO interrupt related registers
•
Select the source of receive interrupt reques
•
Enable or disable receive interrupt requests
Set SIO Baud Rate Register
•
Select the clock divider divide-by ratio
Set SIO Transmit Control Register
Serial I/O
related registers
End of UART receive initialization
(When using interrupts)
•
Divide-by ratio = H'00 to H'FF (Note 1)
Note 1: If clock divider divide-by ratio = 1 is selected, it is necessary that the value set in the baud rate
re
ister be e
ual to or
reater than 7.
Set Input/Output Port
Operation Mode Register