sm59128 SyncMOS Technologies,Inc, sm59128 Datasheet - Page 20

no-image

sm59128

Manufacturer Part Number
sm59128
Description
8-bits Micro-controller Embedded 128kb Flash & 1kb Ram & Iic & Spwm
Manufacturer
SyncMOS Technologies,Inc
Datasheet
NAKIF: The NonAcknowledge Interrupt Flag is only set in the master transmit mode when there is no acknowledge bi
RXAK: If the received acknowledge bit (RXAK) is low, it indicates an acknowledge signal has been received after the
7. IIC Interface (Inter-Integrated Circuit)
The IIC module uses the SCL (clock) and the SDA (data) line to communicate with external IIC interface. User can
select speed to 6.25K~400Kbps by setting the BR[2..0] control bit in software. The IIC module provide 4 interrupts (Rx,
Tx, NonAck, TxFail). It will generate and/or detects START, repeated START and STOP signals automatically in
master mode. The maximum communication length and the number of devices that can be connected are limited by a
maximum bus capacitance of 400pF.
7.1 IIC Registers
IIC Status Register (IICS, $C0)
Note1:Read and Writer’0’ only
Note2:Read only
Note3:Read and Writer
RXIF: The data Receive Interrupt Flag (RXIF) is set after the IICRDB (IIC Receive Data Buffer) is loaded with a newly
TXIF: The data Transmit Interrupt Flag is set when the data of the IICTDB register is downloaded to the shift register or
TFIF: The Transmit Fail Interrupt Flag is set when the data transmit is fail, which as set MASTER bit when the BB has
Specifications subject to change without notice contact your sales representatives for the most recent information.
ISSFD-M027Ver: B SM59128
Read / Write:
Reset value:
Master Transmit mode the IADR is downloaded to the shift register. It is software’s responsibility to fill the
IICTDB register with new data when this bit is set. This bit is cleared by writing zero to it, write data to IICTDB or
when reset.
been set by detecting the start condition on the lines or when the module is transmitting a One to SDA line but
detected a Zero from SDA line in master mode, which is also called arbitration loss. This bit is cleared by writing
Zero to it or by reset.
completion of 8 data bits transmission on the bus. If RXAK is high, it indicates no acknowledge signal has been
detected at the 9th clock. Then the module will release the SDA line for the master to generate Stop or Repeated
Start condition. It is set upon reset.
receive data. Once the IRDB is loaded with received data, no more received data can be loaded to the IICRDB
register again.
detected after one byte data or calling address is transferred. This bit is cleared by writing Zero to it or by reset.
SyncMOS Technologies International, Inc.
Note1
RXIF
bit-7
0
Note1
TXIF
0
Note1
TFIF
0
NAKIF
Note1
20
Embedded 128KB flash & 1KB RAM & IIC & SPWM
0
Unused
-
RXAK
Note2
1
MASTER
8-Bits Micro-controller
Note3
0
SM59128
Note3
TXAK
06/2009
bit-0
0

Related parts for sm59128