Subject: Help with IIC code

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Subject: Help with IIC code

676 Views
zdenekma
Contributor I

Subject: Help with IIC code

Description: /* Trying to read temperature from AD7414 chip with II2C , AS conneted to +5v

* Device address 0x94?

*

* Following an ap note by Miguel Agnesi Melendez and Gonzalo Delgado Huitron

* Willie Note from 2005

* Modified for MC9RS08KA8

*/

Having problem with the interupt routine, Please, see attached zip file Thank you Zdenek ___________________________________________________________________

Original Attachment has been moved to: FREESCALE-SUPPORT.zip

0 Kudos
1 Reply

427 Views
david_diaz
NXP Employee
NXP Employee

Hello,

Each transmission consists of a START condition sent by a master, followed by the AD7414 7-bit slave address plus R/W bit, a register address byte, one or more data bytes, and finally a STOP condition.

With respect to the device address, please refer to the following table:

i2c_add.jpg

In case you are using the device address 0x94 means that you have part number AD4114-0 and the AS pin connected to VDD (it is recommended a pull resistor of 1 kΩ). Please be aware about this information.

Besides, make sure you have the corresponding pull-up resistors at the SDA and SCL lines.

I hope this information will be useful for you.

If I misunderstood your question, feel free to let me know.  I will be glad to help.

Have a great day.

David Diaz.

0 Kudos