Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/08/01 12:49
Read: times


 
#13923 - RE: A/D PCF8591
Hello,

You say you don't get response. Do you mean you can't get an acknowledge? Or do you read a constant value? Can you use the DAC?

Remember that a conversion is done while you read a value. So you have to make one dummy read before you read the actual value. If you read constantly this is no problem. But if you read every now and then you must make a dummy read first, otherwise you will read a very old value.

A common mistake to make while reading the I2C bus is that the last byte read may not be acknowledged by the processor (SDA=1 during ack pulse). Otherwise the I2C slave will put it's next bit on the bus. If that bit is a 0, your bus will be locked and can not be controlled anymore.

Hope these tips will help you. Otherwise specify your problem in more detail.

Happy programming.

List of 5 messages in thread
TopicAuthorDate
A/D PCF8591            01/01/70 00:00      
RE: A/D PCF8591            01/01/70 00:00      
RE: A/D PCF8591            01/01/70 00:00      
RE: A/D PCF8591            01/01/70 00:00      
RE: A/D PCF8591            01/01/70 00:00      

Back to Subject List