Mitsubishi Electric M32R Series User Manual page 587

Mitsubishi 32-bit risc single-chip microcomputers
Table of Contents

Advertisement

12
(8) Selecting pin functions
Because the serial I/O related pins serve dual purposes (shared with input/output ports), set pin
functions. (Refer to Chapter 8, "Input/Output Ports and Pin Functions.")
Serial I/O
related
registers
Note 1 : This is necessary when you use the internal clock.
Note 2 : When you selected the internal clock and a divide-by ratio = 1, you are subject to limitations that
the baud rate generator must be set not to exceed 2 Mbps.
Figure 12.4.1 Procedure for CSIO Receive Initialization
Initial settings for CSIO
reception
Set SIO Transmit/Receive Mode Register
Set SIO Transmit Control Register
Set SIO Baud Rate Register
Set SIO Interrupt Mask Register
Set SIO Receive Control Register
Set the Interrupt Controller
Set DMAC
Set input/output port
Operation Mode Register
Initial settings for CSIO
reception finished
12.4 Receive Operation in CSIO Mode
• Set to CSIO mode
• Select internal or external clock
• Select clock divider's divide-by ratio
• Divide-by ratio H'00 to H'FF
• Enable/disable transmit buffer
empty interrupt
• Set receive enable bit
(When using interrupt)
(When using DMAC)
12-37
SERIAL I/O
(Note 1)
(Note 2)
Ver.0.10

Advertisement

Table of Contents
loading

Table of Contents