12
12-43
Serial I/O
12.6 Transmit Operation in UART Mode
32180 Group User's Manual (Rev.1.0)
Figure 12.6.3 Procedure for Initializing UART Transmission
Initialize UART transmission
•
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
Set SIO interrupt related registers
•
Divide-by ratio = H'00 to H'FF (Note 1)
Set SIO Baud Rate Register
•
Select the clock divider divide-by ratio
Set SIO Transmit Control Register
Set Input/Output Port
Operation Mode Register
Serial I/O
related registers
End of UART transmit initialization
(When using interrupts)
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.
•
Select the source of transmit interrupt request
•
Enable or disable transmit interrupt requests