This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Part Number: ADS1263
I am using the ADS1263 with a clock of 4.42368 MHz running at 400 SPS and SYNC4. This should give a sampling rate of 240 Hz.The processor I use is STM32F437cortex M4. I tied the DRDY line to one of the input pins that can be polled. I also connected the 4.4 MHz clock as an external inputs to the processor TIMER4 - so I can generate an interrupt at 240 Hz that should be synchronized to the DRDY line.
But when I try to run it with the TIMER4 interrupt and poll the DRDY line I get a lot of samples that are not ready. If I read and save only the new data it looks like the sampling rate is only ~ 186 Hz (I can see it by applying a 3 Hz signal as an input). I actually had to increase the sampling rate to 1200 SPS (720 Hz in my system) to get all the data as new.
Did anybody see something like that?
Did I miss something in the configuration?
Have you tried probing the /DRDY signal on an oscilloscope to confirm the data rate period?Sometimes you can get odd results when polling a signal since the MCU often has to go off and perform other tasks and it can't sit there and poll the whole time.
Instead of using a timer to determine when /DRDY does low, do you have the ability to configure the GPIO connected to /DRDY as an interrupt that triggers on the /DRDY falling edge?
Also, how do you have the ADS1263 configured? You don't happen to have the ADS1263 pulse converting, do you?
Best regards,Chris HallApplications Engineer | Precision ADCs
Check out these helpful resources...TI Precision Data Converters | TI Precision Labs - ADCs | Analog Engineer's Calculator | Data Converters Learning Center | Selection Guide
We are glad that we were able to resolve this issue, and will now proceed to close this thread.
If you have further questions related to this thread, you may click "Ask a related question" below. The newly created question will be automatically linked to this question.
In reply to Christopher Hall:
Thanks for your reply,
Yes, I have an option to connect DRDY to an external interrupt pin. I tried it first and It worked Ok for couple of hours, but then the modem started to make errors (this data goes to a modem). You might be right - some other tasks were interrupting I made some changes in the code and I'll try it again.
BTW - I'm running in continuous mode (START bit set all the time).
Question - is there a buffer in the ADS1263 that can store the data if I don't have time to read it in one sample time?
In reply to Ehud Barak9:
No, there isn't any memory in the ADS1263 that can store conversion results. Typically, the MCU that is communicating with the ADC should be able to do this and even build up a data packet of multiple conversion results, before transmitting out some other kind of interface.
That's exactly what we are doing. We collect 8 samples and send them to a PC for processing over a CANBUS.The problem is the CANBUS task that takes a lot of time - this is the main task that interferes with the ADC sampling task. I think adding a small FIFO at the output of the data can be a very useful improvement to the chip.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.