Other Parts Discussed in Thread: ADS1282
I have had no problem communicating with ADS1282 and the data is as it should.
I am using Read by command mode about 10 times a second I issue A Read command for 32 data which I average out.
The tests can run anywhere from 4 minutes to 72 hours.
Here is the problem once in a while DRDY fails to go low and the part locks up.(It can run with no problem for days)
I have been unable to ascertain the problem so far.
Here is the setup
fclk = 4.096Mhz
sclk = 2.4us
Samples per second = 1000
gain = 1.5
sync is not used
After re-reading the spec I realized that I was not waiting long enough after a reset, the last register change and my next read..
Also the specifications are not quite clear if "reset" also resets the SPI communication fully all the time.(qualified with a maybe)
Questions:
1. if I pull the Reset Pin low and then wait 63millisecond will this always reset the chip fully including SPI?
2. If "reset" does not guarantie SPI reset can I switch between RDATAC and SDATAC without incurring another time penalty?
This is so that before waiting for 63 millisecond after a reset I can issue an RDATAC and at the end of the wait I can switch back to SDATAC which should also reset the SPI.
3. Writing to ANY register do I have to wait 64 millisecond(at 1000SPS before a Read.) before any read.
Here is my current reset
adsRESET = 0; // reset AD
SmallDelay(100); // need to hold for 2/f where f = 4.096Mhz this should be more then plenty
adsRESET = 1; // allow operation
AdsWriteByte(SDATAC); // disable continous read
SaveOffsetCalibration(0); // set offset to zero
SaveGainCalibration(ADSGain); // set gain to 1.5 or programmed gain
AdsWriteToRegister(CONFIG0,0x52); // Pulse sync,High res,1ms,Linear phase sync+LPF filter 1000data samples
// AdsWriteToRegister(CONFIG0,0x62); // Pulse sync,High res,1ms,Linear phase sync+LPF filter 4000data samples
AdsWriteToRegister(CONFIG1,0x08); // Mux 0,chop,gain1
delay(64); //after a reset it would take this long for data to be available
gus santangelo
Laser Technology Inc.