Re: I2C Communication for Honeywell pressure sensor
Hi,
Perfect... what is perfect?
I2C is a standardised interface. There are free specifications available. Go through them.
If you meet all the specifications it should be perfect.
But this is not only a hardware problem...it is a software problem, too.
What do we see?
Microcontroller: power supply and clock is missing and the whole circuit to program it.
LCD and it's connections: has nothing to do with I2C. Power supply missing, contrast circuit missing.
Honeywell sensor: It surely needs a power supply.
Two resistors: Please read I2C specification about resistor values. I don't have them in mind.
All the issues are "real world" issues. But I'm not sure if your Honeywell communication is a simulation problem or a real world problem.
Generally...what do you need for a proper I2C communication:
* power supply. Urgent. Some devices work with 3.3V, some with 5V, thus reading the datasheets is essential.
* I2C signal levels. --> datasheet
* I2C timing --> datasheets. The master clock frequency should be equal or smaller than the least specified frequency of all interface partners.
* correct addressing--> datasheet. The most confusing is that some datasheets tell a 7 bit addres )that needs to be shifted) and some give an 8 bit address. Proper addressing is simply verified by checking the ACK bit.
But what we don't see is the wiring. Short, low capacitance wiring. Use a scope to verify the signal quality.
Code:
>send start condition
> send Digital address (0X48)
> stop condition
I assume there is something missing. Indeed it does nothing. Check datasheet if this procedure is correct. Afaik every datasheet contains a communication diagram.
Klaus