Download Print this page

C Bus; I2C Function Pin Switch; Registers Related To I; 587 - STC micro STC8A8K64D4 Series Reference Manual

Advertisement

STC8A8K64D4 Series Manual
2
21 I

C Bus

An I
2
C serial bus controller is integrated in the STC8A8K64D4 series of microcontrollers. I
synchronous communication bus, which uses SCL (clock line) and SDA (data line) to carry out two-wire synchronous
communication. For the pin allocation of SCL and SDA, STC8A8K64D4 series of microcontrollers provide pin switch
mode that can switch SCL and SDA to different I/O pins. Therefor, it is convenience to use a set of I
of I
2
C buses through time sharing.
Compared with the standard I
No arbitration will be performed after the start signal (START) is sent.
No timeout detection when the clock signal (SCL) stays at low level.
The I
2
C bus of the STC8A8K64D4 series of microcontrollers offer two modes of operation: master mode (SCL is
the output port, which is used to transmit synchronous clock signal) and slave mode (SCL is the input port, which is
used to receive the synchronous clock signal).
STC innovation: When the I
pin can wake up the MCU which is in power-down mode. (Note: Due to the fast I
of data after the MCU wakes up is generally incorrect.)

21.1 I2C function pin switch

Symbol
Address
P_SW2
BAH
I2C_S[1:0]: I
2
C function pin selection bit
I2C_S[1:0]
SCL
00
P1.5
01
P2.5
10
P7.7
11
P3.2

21.2 Registers Related to I

Symbol
Description
I2CCFG
I2C Configuration Register
2
I2CMSCR
I
C Master Control Register
2
I2CMSST
I
C Master Status Register
2
I2CSLCR
I
C Slave Control Register
I2CSLST
I
2
C Slave Status Register
2
I2CSLADR
I
C Slave Address Register
2
I2CTXD
I
C Data Transmission Register
2
I2CRXD
I
C Data Receive Register
I
2
C Master Auxiliary Control
I2CMSAUX
Register
2
C protocol, the following two mechanisms are ignored:
2
C serial bus controller of STC works in slave mode, the falling edge signal of SDA
B7
B6
B5
EAXFR
-
I2C_S[1:0]
SDA
P1.4
P2.4
P7.6
P3.3
2
C
Address
B7
FE80H
ENI2C
MSSL
FE81H
EMSI
FE82H
MSBUSY
MSIF
FE83H
-
ESTAI
FE84H
SLBUSY
STAIF
FE85H
FE86H
FE87H
FE88H
-
2
C transmission speed, the first packet
B4
B3
CMPO_S
Bit Address and Symbol
B6
B5
B4
B3
MSSPEED[6:1]
-
-
-
-
-
ERXI
ETXI
ESTOI
RXIF
TXIF
STOIF
SLADR[6:0]
-
-
-
2
C is a high-speed
2
C as multiple sets
B2
B1
S4_S
S3_S
B2
B1
B0
MSCMD[3:0]
-
-
MSACKI MSACKO
-
-
SLRST
TXING SLACKI
SLACKO
MA
-
-
-
WDTA
B0
S2_S
Reset
Value
0000,0000
0xxx,0000
00xx,xx00
x000,0xx0
0000,0000
0000,0000
0000,0000
0000,0000
xxxx,xxx0

- 587 -

Advertisement

loading
Need help?

Need help?

Do you have a question about the micro STC8A8K64D4 Series and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Micro stc8a8k64d4-64pinMicro stc8a8k64d4-48pin