27297 Parallax Inc, 27297 Datasheet - Page 193

KIT STAMPWORKS WITH BS2-IC

27297

Manufacturer Part Number
27297
Description
KIT STAMPWORKS WITH BS2-IC
Manufacturer
Parallax Inc
Datasheet

Specifications of 27297

Lead Free Status
Contains lead
Product
Microcontroller Accessories
Lead Free Status / Rohs Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
27297SQ
Manufacturer:
NS
Quantity:
4
I2C_RX_Byte_Nak:
I2C_RX_Byte:
I2C_RX:
' *** Stop Sequence ***
I2C_Stop:
Behind the Scenes
The I2C-bus is a two-wire, synchronous bus that uses a Master-Slave relationship
between components. The Master initiates communication with the Slave and is
responsible for generating the clock signal. If requested to do so, the Slave can send
data back to the Master. This means the data pin (SDA) is bi-directional and the
clock pin (SCL) is [usually] controlled exclusively by the Master.
The transfer of data between the Master and Slave works like this:
i2cAck = Nak
GOTO I2C_RX
i2cAck = Ack
SHIFTIN SDA, SCL, MSBPRE, [i2cWork\8]
SHIFTOUT SDA, SCL, LSBFIRST, [i2cAck\1]
RETURN
LOW SDA
INPUT SCL
INPUT SDA
RETURN
Master sending data
Master receiving data
Master initiates transfer
Master addresses Slave
Master sends data to Slave
Master terminates transfer
Master initiates transfer
Master addresses Slave
Master receives data from Slave
Master terminates transfer
' no Ack = high
' Ack = low
' get byte from device
' send ack or nak
' I2C stop bit sequence

Related parts for 27297