12
Serial I/O
related registers
Note 1: If f(BCLK) is selected for BRG count source (CDVI), it is necessary that the value set in the baud rate
register be equal to or greater than 7.
Figure 12.6.3 Procedure for Initializing UART Transmission
Initialize UART transmission
Set SIO Transmit/Receive Mode Register
Set SIO Transmit Control Register
Set SIO Baud Rate Register
Set SIO interrupt related registers
Set Interrupt Controller
Set DMAC related registers
Set Input/Output Port
Operation Mode Register
End of UART transmit initialization
12.6 Transmit Operation in UART Mode
•
Set the register to UART mode
•
Set parity (when enabled, select odd/even)
•
Set the stop bit length
•
Set the character length
•
Select the clock divider divide-by ratio
•
Divide-by ratio = H'00 to H'FF (Note 1)
•
Select the source of transmit interrupt request
•
Enable or disable transmit interrupt requests
(When using interrupts)
(When using the DMAC)
12-43
Serial I/O
32180 Group User's Manual (Rev.1.0)