SM5958
8-Bit Micro-controller
32KB with ISP Flash
& 1KB RAM embedded
signal has been received after the complete 8-bit data transmit on the bus.
(Read only)
MST: Set 1 to force working at TWSI master mode.
TXACK: The acknowledge bit for response to transmitter or master addressing. When
receiving complete 8-bit data, setting this bit to respond with NACK otherwise
ACK is responded.
Mnemonic: TWSIA
Address: C1h
7
6
5
4
3
2
1
0
Reset
A0h
ADR.6
ADR.5
ADR.4
ADR.3
ADR.2
ADR.1
ADR.0
ADRMK
ADR[6:0]: These 7 bits define slave address on the TWSI/IIC bus.
ADRMK: Address Mask bit. Its only compare 4 bits MSB when set this bit. When this bit
is set, ADR.2 – ADR.0 is masked to excluded from the address comparison. In
other words, it will be addressed “hit” and respond with ACK as long as ADR6-
ADR.3 is matched.
Mnemonic: TWSIC1
Address: C2h
7
6
-
5
-
4
-
3
2
1
0
Reset
01h
TWSIE
BusBusy TWSIFS2 TWSIFS1 TWSIFS0
TWSIE: TWSI function enable bit.
BusBusy: When TWSI bus is detected with “START” condition, this bit is set. When
TWSI bus is detected with “STOP” condition, this bit is cleared. (Read only)
TWSIFS[2:0]: TWSI clock rate selector at Master mode.
TWSIFS[2:0]
000
SCL Frequency
Xtal/32
001
010
Xtal/64 (default)
Xtal/128
011
Xtal/256
100
Xtal/512
101
110
111
Xtal/1024
Xtal/2048
Xtal/4096
Mnemonic: TWSIC2
Address: C3h
7
6
5
-
4
-
3
2
-
1
-
0
Reset
00h
MATCH
SRW
RESTART
MRW
MATCH: When the first received data (following the START signal) in TWSIRXD register
is matches with the address that address register (TWSIA) set, this bit will set.
(Read only & Slave mode only)
SRW: The slave mode read (received) or wrote (transmit) on the TWSI bus. When
this bit is set, the slave module transmit data on the TWSI bus (SDA). When
this bit is clear, the slave module received data on the TWSI bus (SDA). (Read
Specifications subject to change without notice contact your sales representatives for the most recent information.
ISSFD-M089 Ver A SM5958 3/19/2014
- 47 -