I 2 C0 Control Register 0 (S1D0); Bits 0 To 2: Bit Counter (Bc0-Bc2); Bit 3: I C Interface Enable Bit (Es0); Bit 4: Data Format Select Bit (Als) - Renesas M16C FAMILY series Hardware Manual

16-bit single-chip microcomputer
Hide thumbs Also See for M16C FAMILY series:
Table of Contents

Advertisement

M
1
6
C
2 /
8
G
o r
u
p
(
M
1
6
C
2
16.4 I
C0 Control Register 0 (S1D0)
The S1D0 register controls data communication format.
16.4.1 Bits 0 to 2: Bit Counter (BC0–BC2)
The BC2 to BC0 bits decide how many bits are in one byte data transferred next. After the selected
numbers of bits are transferred successfully, I
BC2 to BC0 bits are reset to "000
ACK clock), one bit for ACK clock is added to the numbers of bits selected by the BC2 to BC0 bits.
In addition, the BC2 to BC0 bits become "000
address data is transferred in 8 bits.
2
16.4.2 Bit 3: I
The ES0 bit enables to use the multi-master I
interface is disabled and the SDA and SCL pins are placed in a high-h-impedance state. When the
ES0 bit is set to "1", the interface is enabled.
When the ES0 bit is set to "0", the process is followed.
1)The bits in the S10 register are set as MST = "0", TRX = "0", PIN = "1", BB = "0", AL = "0", AAS = "0",
ADR0 = "0"
2)The S00 register cannot be written.
3)The TOF bit in the S4D0 register is set to "0" (time-out detection flag is not detected)
2
4)The I
C system clock (V

16.4.3 Bit 4: Data Format Select Bit (ALS)

The ALS bit determines whether the salve address is recognized. When the ALS bit is set to "0", an
addressing format is selected and a address data is recognized. Only if the comparison is matched
between the slave address stored into the S0D0 register and the received address data or if the
general call is received, the data is transferred. When the ALS bit is set to "1", the free data format is
selected and the slave address is not recognized.
2
16.4.4 Bit 6: I
The IHR bit is used to reset the I
When the ES0 bit in the S1D0 register is set to"1" (I
by writing "1" to the IHR bit. Flags are processed as follows:
1)The bits in the S10 register are set as MST = "0", TRX = "0", PIN to "1", BB = "0", AL = "0", AAS =
"0", and ADR0 = "0"
2)The TOF bit in the S4D0 register is set to "0" (time-out detection flag is not detected)
3)The internal counter and flags are reset.
2
The I
C bus interface circuit is reset after 2.5 V
matically by writing "1" to the IHR bit. Figure 16.10 shows the reset timing.
R
e
. v
2
0 .
0
J
a
. n
3
, 1
2
0
0
7
R
E
J
0
9
B
0
0
4
7
0 -
2
0
0
2 /
, 8
M
1
6
C
2 /
8
) B
". At this time, if the ACK-CLK bit in the S20 register is set to "1" (with
2
C Interface Enable Bit (ES0)
) stops counting while the internal counter and flags are reset.
IIC
C bus Interface Reset Bit (IHR)
2
C bus interface circuit when the error communication occurs.
page 262
f o
3
8
5
16. MULTI-MASTER I
2
C bus interface interrupt request is gnerated and the
" even though the START condition is detected and the
2
2
C bus interface. When the ES0 bit is set to "0", I
2
C bus interface is enabled), the hardware is reset
cycles or less, and the IHR bit becomes "0" auto-
IIC
2
C bus INTERFACE
2
C bus

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tiny seriesM16c series

Table of Contents