|
M30218 Datasheet, PDF (93/179 Pages) Mitsubishi Electric Semiconductor – M30218 Group | |||
|
◁ |
Clock synchronous serial I/O mode
Mitsubishi microcomputers
M30218 Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
(1) Clock synchronous serial I/O mode
The clock synchronous serial I/O mode uses a transfer clock to transmit and receive data. Table GA-1
lists the specifications of the clock synchronous serial I/O mode. Figure GA-6 shows the UARTi transmit/
receive mode register.
Table GA-1. Specifications of clock synchronous serial I/O mode
Item
Specification
Transfer data format
⢠Transfer data length: 8 bits
Transfer clock
⢠When internal clock is selected (bit 3 at address 03A016, 03A816 = â0â) : fi/ 2(n+1) (Note 1) fi = f1, f8, f32
⢠When external clock is selected (bit 3 at address 03A016, 03A816 =â1â) : Input from CLKi pin (Note 2)
_______
________
_______ ________
Transmission/reception control ⢠CTS function/ RTS function/ CTS,RTS function chosen to be invalid
Transmission start condi- ⢠To start transmission, the following requirements must be met:
tion _ Transmit enable bit (bit 0 at address 03A516, 03AD16) = â1â
_
Transmit buffer
_______
empty
flag
(bit
1
at addresses
_______
03A516,
03AD16)
=
â0â
_ When CTS function is selected, CTS input level = "L"
⢠Furthermore, if external clock is selected, the following requirements must also be met:
_ CLKi polarity select bit (bit 6 at address 03A416, 03AC16) = â0â: CLKi input level = âHâ
_ CLKi polarity select bit (bit 6 at address 03A416, 03AC16) = â1â: CLKi input level = âLâ
Reception start condition
⢠To start reception, the following requirements must be met:
_ Receive enable bit (bit 2 at address 03A516, 03AD16) = â1â
_ Transmit enable bit (bit 0 at address 03A516, 03AD16) = â1â
_ Transmit buffer empty flag (bit 1 at address 03A516, 03AD16) = â0â
⢠Furthermore, if external clock is selected, the following requirements must also be met:
_ CLKi polarity select bit (bit 6 at address 03A416, 03AC16) = â0â: CLKi input level = âHâ
_ CLKi polarity select bit (bit 6 at address 03A416, 03AC16) = â1â: CLKi input level = âLâ
Interrupt request
⢠When transmitting
_ Transmit interrupt cause select bit (bits 0,1 at address 03B016) = â0â:
generation timing
Interrupts requested when data transfer from UARTi transfer buffer register to
UARTi transmit register is completed
_ Transmit interrupt cause select bit (bits 0,1 at address 03B016) = â1â:
Interrupts requested when data transmission from UARTi transfer register is completed
⢠When receiving
_ Interrupts requested when data transfer from UARTi receive register to
UARTi receive buffer register is completed
⢠Overrun error (Note 3)
Error detection
This error occurs when the next data is ready before contents of UARTi re-
ceive buffer register are read out
⢠CLK polarity selection
Select function
Whether transmit data is output/input at the rising edge or falling edge of the
transfer clock can be selected
⢠LSB first/MSB first selection
Whether transmission/reception begins with bit 0 or bit 7 can be selected
⢠Continuous receive mode selection
Reception is enabled simultaneously by a read from the receive buffer register
⢠Transfer clock output from multiple pins selection
UART1 transfer clock can be set 2 pins, and can be selected to output from
which pin.
Note 1: ânâ denotes the value 0016 to FF16 that is set to the UART bit rate generator.
Note 2: Maximum 5 Mbps.
Note 3: If an overrun error occurs, the UARTi receive buffer will have the next data written in. Note also
that the UARTi receive interrupt request bit is not set to â1â.
92
|
▷ |