DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

AN1045 查看數據表(PDF) - STMicroelectronics

零件编号
产品描述 (功能)
生产厂家
AN1045 Datasheet PDF : 16 Pages
1 2 3 4 5 6 7 8 9 10 Next Last
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: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]