This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

XC167CI and I2C bus

Hi,

Am working with XC167CI-16F, am trying to read sonar sensors SRF08 via I2C bus, and I used the code used for eeprom in keil's website but I still have problem that I cant read this sensor while I need to read it ... I need to read that sonar...any help please

Please help me and thanks..

I.J

Parents
  • I can offer you support to help you move along. What I can provide you with is a small code snippet that uses the I2C peripheral and is interrupt driven. The code will read and write a 24LC16B EEPROM.

    Do you really need the RTC because you need an accurate time base? Or do you just need to know when your ranging has completed? If so it would be easier to use one of the general purpose timers instead.

    Anyway, if you post your email I send you the code and offer you some assistance.

    I also assume it is ok with your university to have outside help?

Reply
  • I can offer you support to help you move along. What I can provide you with is a small code snippet that uses the I2C peripheral and is interrupt driven. The code will read and write a 24LC16B EEPROM.

    Do you really need the RTC because you need an accurate time base? Or do you just need to know when your ranging has completed? If so it would be easier to use one of the general purpose timers instead.

    Anyway, if you post your email I send you the code and offer you some assistance.

    I also assume it is ok with your university to have outside help?

Children