Serial I/O (Special Modes)
164
Mitsubishi microcomputers
M16C / 62P Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Under
development
Preliminary Specifications Rev.1.0
Specifications in this manual are tentative and subject to change.
Table 1. 20. 2. Registers to Be Used and Settings in I2C Mode (1) (Continued)
Register
Bit
Function
Master
Slave
UiTB3
0 to 7
Set transmission data
UiRB3
0 to 7
Reception data can be read
8
ACK or NACK is set in this bit
ABT
Arbitration lost detection flag
Invalid
OER
Overrun error flag
UiBRG
---
Set a transfer rate
Invalid
UiMR3
SMD2 to SMD0
Set to ‘0102’
CKDIR
Set to “0”
Set to “1”
IOPOL
Set to “0”
UiC0
CLK1, CLK0
Select the count source for the UiBRG
Invalid
register
CRS
Invalid because CRD = 1
TXEPT
Transmit buffer empty flag
CRD
Set to “1”
NCH
Set to “1”2
CKPOL
Set to “0”
UFORM
Set to “1”
UiC1
TE
Set this bit to “1” to enable transmission
TI
Transmit buffer empty flag
RE
Set this bit to “1” to enable reception
RI
Reception complete flag
U2IRS1
Invalid
U2RRM1,
Set to “0”
UiLCH, UiERE
UiSMR
IICM
Set to “1”
ABC
Select the timing at which arbitration-lost
Invalid
is detected
BBS
Bus busy flag
3 to 7
Set to “0”
UiSMR2 IICM2
Refer to Table 1.20.4.
CSC
Set this bit to “1” to enable clock
Set to “0”
synchronization
SWC
Set this bit to “1” to have SCLi output
fixed to “L” at the falling edge of the 9th
bit of clock
ALS
Set this bit to “1” to have SDAi output
Set to “0”
stopped when arbitration-lost is detected
STAC
Set to “0”
Set this bit to “1” to initialize UARTi at
start condition detection
SWC2
Set this bit to “1” to have SCLi output
forcibly pulled low
SDHI
Set this bit to “1” to disable SDAi output
7
Set to “0”
UiSMR3 0, 2, 4 and NODC Set to “0”
Set to “0”
CKPH
Refer to Table 1.20.4
DL2 to DL0
Set the amount of SDAi digital delay
i=0 to 2
Notes:
1. Set the U0C1 and U1C1 register bit 4 and bit 5 to “0”. The U0IRS, U1IRS, U0RRM and U1RRM bits are
in the UCON register.
2. TxD2 pin is N channel open-drain output. Set the NCH bit in the U2C0 register to “0”.
3. Not all register bits are described above. Set those bits to “0” when writing to the registers in I2C mode.