Mitsubishi microcomputers
M16C / 62A Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Serial I/O
115
Figure 1.16.9. Serial I/O-related registers (6)
UART2 special mode register 2 (I C bus exclusive use register)
Symbol
U2SMR2
Address
0376
16
When reset
00
16
b7
b6 b5
b4
b3
b2
b1
b0
Bit name
Bit
symbol
W
R
Function
(I2C bus exclusive use)
STAC
SWC2
SDHI
I C mode select bit 2
SCL wait output bit
0 : Disabled
1 : Enabled
SDA output stop bit
UART2 initialization bit
Clock-synchronous bit
Refer to Table 1.16.11
0 : Disabled
1 : Enabled
IICM2
CSC
SWC
ALS
0 : Disabled
1 : Enabled
SDA output disable bit
SCL wait output bit 2
AA
A
A
A
AA
AA
AA
AA
AA
A
A
A
0: Enabled
1: Disabled (high impedance)
0 : Disabled
1 : Enabled
0: UART2 clock
1: 0 output
SHTC
Start/stop condition
control bit
Set this bit to “1” in I
2
C mode
(refer to Table 1.16.12)
UART2 special mode register 3 (I C bus exclusive use register)
Symbol
U2SMR3
Address
0375
16
When reset
Indeterminate
(However, when SDDS = “1”, the initial value is “00
16
”)
b7
b6 b5
b4
b3
b2
b1
b0
Bit name
Bit
symbol
W
R
Function
(I C bus exclusive use register)
DL2
SDA digital delay setup
bit
(Note 1, Note 2, Note 3,
Note 4)
DL0
DL1
AA
AA
AA
0 0 0 : Analog delay is selected
0 0 1 : 2 cycle of 1/f(X
IN
)
0 1 0 : 3 cycle of 1/f(X
IN
)
0 1 1 : 4 cycle of 1/f(X
IN
)
1 0 0 : 5 cycle of 1/f(X
IN
)
1 0 1 : 6 cycle of 1/f(X
IN
)
1 1 0 : 7 cycle of 1/f(X
IN
)
1 1 1 : 8 cycle of 1/f(X
IN
)
Nothing is assigned.
In an attempt to write to these bits, write “0”. The value, if read, turns out to be
indeterminate. However, when SDDS = “1”, the value “0” is read out (Note 1)
2
b7 b6 b5
Note 1: This bit can be read or written to when UART2 special mode register (U2SMR at address 0377
16
) bit
7 (SDDS: SDA digital delay select bit) = “1”. When the initial value of UART2 special mode register 3
(U2SMR3) is read after setting SDDS = “1”, the value is “00
16
”. When writing to UART2 special mode
register 3 (U2SMR3) after setting SDDS = “1”, be sure to write 0's to bits 0–4. When SDDS = “0”,
this register cannot be written to; when read, the value is indeterminate.
Note 2: These bits are initialized to “000” when SDDS = “0”, with the analog delay circuit selected. After a reset,
these bits are set to “000”, with the analog delay circuit selected. However, because these bits can be
read only when SDDS = “1”, the value read from these bits when SDDS = “0” is indeterminate.
Note 3: When analog delay is selected, only the analog delay value is effective; when digital delay is selected,
only the digital delay value is effective.
Note 4: The amount of delay varies with the load on SCL and SDA pins. Also, when using an external clock, the
amount of delay increases by about 100 ns, so be sure to take this into account when using the device.
Digital delay is
selected