English
Language : 

SM8958B Datasheet, PDF (46/49 Pages) SyncMOS Technologies,Inc – 256 bytes SRAM as standard 8052
SM8958B
8-Bit Micro-controller
32KB Flash
& 1KB RAM embedded
13. Two-Wire Series Interface (TWSI)
Two Wire Serial Interface, is a serial interface in SM8958B, that is function compatible with IIC 400kps specification
and is capable to communicate with standard IIC devices via configuring SM8958B as one of IIC device types -
master transmitter, master receiver, slave transmitter or slave receiver device.
Mnemonic Description
P1CON
TWSIS
TWSIA
TWSIC1
TWSIC2
TWSITXD
TWSIRXD
IFR
P1 Control
Register
TWSI Status
Register
TWSI Address
Register
TWSIC Control
Register 1
TWSIC Control
Register 2
TWSI TX Data
Register
TWSI RX Data
Register
Interrupt Flag
Register
Dir.
9BH
C0H
C1H
C2H
C3H
C4H
C5H
AAH
Bit 7
SDAE
RXIF
ADR.6
TWSIE
MATC
H
TXD.7
RXD.7
-
Bit 6
SCLE
TXIF
ADR.5
-
SRW
TXD.6
RXD.6
-
Bit 5
TWSI
-
TFAIL
ADR.4
-
-
TXD.5
RXD.5
-
Bit 4
-
NAKIF
ADR.3
-
-
TXD.4
RXD.4
-
Bit 3 Bit 2 Bit 1 Bit 0
PWM1
E
-
ADR.2
Bus
Busy
RESTA
RT
TXD.3
PWM0
E
RXACK
ADR.1
TWSIF
S2
-
TXD.2
-
MST
ADR.0
TWSIF
S1
-
TXD.1
-
TXACK
ADR
MK
TWSIF
S0
MRW
TXD.0
RXD.3 RXD.2 RXD.1 RXD.0
-
-
TWSIIF
-
RST
00H
00H
A0H
01H
00H
FFH
00H
00H
Mnemonic: P1CON
7
6
5
SDAE SCLE
-
4
3
2
1
-
PWM1E PWM0E
-
SDAE: Set 1 to configure P1[7] as SDA pin of TWSI.
SCLE: Set 1 to configure P1[6] as SCL pin of TWSI.
Address: 9Bh
0
Reset
-
00h
Mnemonic: TWSIS
7
6
5
RXIF TXIF TFAIL
4
NAKIF
Address: C0h
3
2
1
0
Reset
-
RXACK MST TXACK 00h
RXIF: TWSI interrupt flag for data receiving. It is set after the TWSI RXD (Receive
Data Buffer) is loaded with new received data.
TXIF: TWSI interrupt flag for data transmitting. It is set when the data of TWSI TXD
(Transmit Data Buffer) is downloaded onto the shift register or the TWSIA is
downloaded onto the shift register at Master Transmit mode.
TFAIL: This flag is set when the data transmit is failed. (Master mode only)
NAKIF: Non-acknowledge interrupt flag. It is only set in the master mode when there is
no acknowledge bit detected after one byte data or calling address is
transferred.
RXACK: The acknowledge status indicator. When clear, it means an acknowledge
Specifications subject to change without notice contact your sales representatives for the most recent information.
ISSFD-M085
Ver D SM8958B 08/07/2015
- 46 -