Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

I2C master code to read the data from the SENSOR

Status
Not open for further replies.

chethankp

Member level 4
Joined
Jan 4, 2010
Messages
76
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
bangalore
Activity points
1,860
Hi,
I'm using software based I2C for 8051 (clock speed 32MHz)to read the 4 byte data from I2c(slave) sensor . below is the link to the data sheet

http://www.ist-ag.com/eh/ist-ag/resource.nsf/imgref/Download_190609_DigiPicco_I2C_Basic_EN_V4.1.pdf/$FILE/190609_DigiPicco_I2C_Basic_EN_V4.1.pdf


SCL frequency for the sensor is 400kHz(this is max frequency in which the sensor works).

Since our new 8051 controller runs with 32MHz frequency , I think because this clock variation I'm not able to get the data.
I have attached code which I have written for this pls help me to solve this.
 

Attachments

  • I2C code to read 4 bytes data.rar
    3.8 KB · Views: 148

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top