12
(8) Selecting pin functions
Because the serial I/O related pins serve dual purposes, set the pin functions for use as SIO pins or input/
output ports. (See Chapter 8, "Input/Output Ports and Pin Functions.")
Serial I/O
related registers
Note 1: Necessary when the internal clock is selected.
Note 2: If the internal clock and a divide-by ratio = 1 are selected, caution must be used when setting the baud rate
register so that the transfer rate will not exceed 2 Mbps.
Figure 12.4.1 Procedure for Initializing CSIO Reception
Initialize CSIO reception
Set SIO Transmit/Receive Mode Register
Set SIO Transmit Control Register
Set SIO Baud Rate Register
Set SIO interrupt related registers
Set SIO Receive Control Register
Set Interrupt Controller
Set DMAC
Set Input/Output Port
Operation Mode Register
End of CSIO receive initialization
12.4 Receive Operation in CSIO Mode
•
Set the register to CSIO mode
•
Select the internal or external clock
•
Select the clock divider divide-by ratio
•
Divide-by ratio = H'00 to H'FF
•
Select the source of receive interrupt request
•
Enable or disable receive interrupt requests
•
Set the receive enable bit
(When using interrupts)
(When using the DMAC)
12-33
Serial I/O
(Note 1)
(Note 2)
32180 Group User's Manual (Rev.1.0)