right now I'm struggling with the ADC-IRQs of the cc2540. This is what I'm trying to do:
I want to collect several samples from the ADC with maximum speed possible. Therefore I setup the ADC, enable the ADC-IRQ (ADCIE=1) and then start a single conversion (ADCCON3=0x97).
I have a IRQ-handler which reads the conversion results, stores them and after that restarts the ADC (ADCCON3=0x97 again). This works like a charm, but now I need to stop the ADC after a time. Therefore I set an osal_start_timerEx() with 3 seconds and when the timer fires I try to stop the ADC by setting ADCIE=0.
This does not work. If I singlestep through my ADC_Stop() it always re-hits the line with ADCIE=0. If I use debug-logging in ProcessEvent() I see that the stop-event is refired in a very short interval.
anybody can shed some light on this?
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. 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 respect to these materials. 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.