John Ilicitean
Joined: 07 Jul 2005 Posts: 27 Location: Rotova
|
|
Posted: Thu Feb 02, 2006 10:41 am |
|
|
Hi everyone!!!
rwyoung wrote:
Quote: |
And your PIC code timing EXACTLY matches that of the PC program's?
|
The timings of the PC program's is more slow.For example :
Tstart=120usg ------------------in the PC program
Tstart=4usg-------------------in my PIC system(slow mode)
This way all times are more slow, but in all cases the timing constraints are fulfilled .
The sequence of READ of PC program's is the same to that I use. But in my program don't send the ACK.
Humberto wrote:
Quote: |
The Control byte of the ADS1100 is made up of 7 bits where you can preset (bits 3 thru 1),
leaving bit 0 alone (set to zero) as the I2C routine will use this bit depending if it is
a read or write operation... so the control byte would look like this...
1001yyy0
In your code you are addressing:
i2c_write(0x95); // ADC address, then read
wich is wrong because the bit 0 is SET.
If you have the variant AD5 as I guess, the address should be 0x9A
|
John Ilicitean wrote:
Quote: |
When the PIC send the ADS1100 address(my device is AD2=1001010X) , the ADS1100 not send me the bit acknowledged.
|
|
|