I had a couple of questions.
I am trying to implement I2C interface between a master and slave device.
1. I see there are pull up resistors connected to the SDA and SCL line of both the device(Master and Slave). Is that an issue, and what will I need to do?
2. I get some values in the slave device from its 10 bit ADC. I have been multiplying that number to an ADCfactor = (5/(2^(10))). But instead of doing this I want to take that number coming out of the 10 bit ADC and send it to the Master in 2 write commands so it could be packed into a 16 bit value. How do I take that number and convert into a bunch of 0s and 1s as a 16 bit packet. I also have some instances when I need to convert that number coming out of the ADC in the slave as just an 8 bit number and send it to the Master through just 1 write command. What will I need to for that.
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Posted: Sun Dec 24, 2006 12:18 pm
What are the resistor values ? For a 5v i2c bus, the lower limit for
the pull-ups is about 1.6K. If you have two pullup resistors, use the
"product over sum" formula to find the effective resistance.
Example:
One side has 4.7K. The other side has 3.3K.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum