Qdatasheet_Logo
Integrated circuits, Transistor, Semiconductors Search and Datasheet PDF Download Site

AN1045 View Datasheet(PDF) - STMicroelectronics

Part Name
Description
MFG CO.
AN1045
ST-Microelectronics
STMicroelectronics ST-Microelectronics
'AN1045' PDF : 16 Pages View PDF
1 2 3 4 5 6 7 8 9 10 Next
ST7 S/W IMPLEMENTATION OF I2C BUS MASTER
Figure 4. Buffer of transmission structure
0
|
|
nb-3
nb-2
nb-1
nb
data nb-2
|
|
data2
data1
sub @
EEPROM @
The buffer of transmission contains the EEPROM address, the sub address (the address
where you want to write into the EEPROM) and then the data to transmit.
In this application, a parameter called “n” allows you to modify the number of data to transmit
and then to receive. The number of data is “n-1”, that means that in this application, as 3 data
have to be sent, “n=4”.
The transmission function is based on a double shift: a shift of the “count” variable to call 8
times the function I2Cm_TxData (to send the 8 bits of one data byte) and a shift into the
I2Cm_TxData function to always send the MSB of the data (refer to Figure 5).
5/16
Share Link: GO URL

All Rights Reserved © qdatasheet.com  [ Privacy Policy ] [ Contact Us ]