|
M37733MHBXXXFP Datasheet, PDF (37/89 Pages) Mitsubishi Electric Semiconductor – SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER | |||
|
◁ |
PRELIMINARY NSootimcee: pTahriasmisentroict alimfinitsalasrpeescuifbicjeactitotno. change.
MITSUBISHI MICROCOMPUTERS
M37733MHBXXXFP
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
7 6 54 3 210
Address
0 ! ! ! 0 0 0 1 UART0 transmit/receive 3016
mode register
001 : Clock synchronous
0 : Internal clock
!!! : Not used
0 : always â0â
76 54 3 210
Address
TPM CPL TxS 1
! CS1 CS2 UART0 transmit/receive 3416
control register 0
Clock source selection bits
0 0 : Select f2
0 1 : Select f16
1 0 : Select f64
1 1 : Select f512
! : Not used
1 : Disable CTS and RTS
(I/O port)
Data output selection bit
0 : CMOS output
1 : N-channel open-drain output
CLK polarity selection bit
0 : In transmitting, transmit data
is output at the CLK's falling
edge. Not in transmitting,
CLK0 level is âHâ.
1 : In transmitting, transmit data
is output at the CLK0's rising
edge. Not in transmitting,
CLK0 level is âLâ.
Transfer format selection bit
0 : LSB first
1 : MSB first
7 65 43 2 10
Address
0
TE
UART0 transmit/receive
control register 1
3516
Trasmit enable flag
0 : Receiving is disabled
Fig. 45 Bit configuration of UART0 transmit/receive mode register
and UART0 transmit/receive control register 0/1 in the
transmission clock output multiple-selection mode
Receive
Receive starts when the bit 2 (REk flag) of the UARTk transmit/receive
control register 1 is set to â1â.
The RTSk output level is âHâ when the REk flag is â0â, but it is âLâ when
the REk flag is â1â and the TIk flag is â0â. Furthermore, the RTSk output
level is âHâ again when receiving restarts. The TIk flag is cleared to
â0â by writing dummy data into the transmission buffer register. When
the RTSk output level is âLâ, receiving for the receive register is enabled.
UART2 does not have the RTS output function.
When bit 6 (CPL) of the UARTk transmit/receive control register 0 is
â0â, the contents of the receive register is shifted by 1 bit each time
when the receive clock (CLKk) changes from âLâ to âHâ. When CPL is
â1â, the contents is shifted by 1 bit each time when CLKk changes
from âHâ to âLâ. These shifts are performed simultaneously with the
data reception from the RXDk pin. When an 8-bit data is received, the
contents of the receive register is transferred to the receive buffer
register and the bit 3 (RIk flag) of the UARTk transmit/receive control
register 1 is set to â1â. In other words, the setting of the RIk flag to â1â
indicates that the receive buffer register contains the received data.
When the TIk flag goes â0â, RTSk output level goes âLâ to indicate that
the next data can be received. When the RIk flag changes from â0â to
â1â, the interrupt request bit of the UARTk receive (transmit/receive in
UART2) interrupt control register is set to â1â. Bit 4 (OERk flag) of the
UARTk transmit/receive control register is set to â1â when the next
data is transferred from the receive register to the receive buffer
register while RIk flag is â1â, and the OERk flag indicates that the next
data was transferred to the receive buffer register before the contents
of the receive buffer register was read.
The RIk flag is cleared to â0â when reading the low-order byte to the
receive buffer, when writing â0â to the REk flag, or when setting to be
a parallel port. The OERk flag is cleared to â0â when writing â0â to the
REk flag or when setting to be a parallel port. The FERk, PERk, and
SUMk flags are ineffective in the clock synchronous communication.
The received data in the receive buffer register is read into the data
bus according to the LSB first (beginning at the least significant bit)
when bit 7 (TEM) of the UARTk transmit/receive control register 0 is
â0â or according to the MSB first (beginning at the most significant
bit) when bit 7 is â1â.
As shown in Figure 36, with clock synchronous serial communication,
data cannot be received unless the transmitter is operating because
the receive clock is created from the transmission clock. Therefore,
the transmitter must be operating even when there is no data to be
sent from UARTk to UARTj.
37
|
▷ |