dsPIC33 A/D conversion with special event trigger
I'm willing to digitize and analog input on my PIC33 MCU, using the integrated A/D converter at a specific sampling rate. To get this specific sampling rate, I'm trying to use a CCP periodic Timer, that triggers my A/D conversion, but I can't figure it out.
For the moment, my A/D converter is working using the software triggr and the software level-sensitive trigger.
My device is a dsPIC33CH128MP502
When I check the Capture/Compare/PWM/Timer manuel (http://ww1.microchip.com/...eviceDoc/30003035b.pdf
), they say it is possible to trigger periodicly the A/D converter
using the module in timer MODE.
But when I check my device specific A/D converter manual (http://ww1.microchip.com/...-Sheet-DS70005319C.pdf
), it does not appear that I can select my CCP Timer trigger as a trigger source
for conversion in the trigger source register, but mostly PVM modules.
So, my question is, is it possible with my device to trigger periodicly my A/D converter using my timer ? Or do I have to use one of the PWM module, as they expose so many ? And as I don't have any experience with PWM modules, can I get a periodic trigger as precise as the timer if I have to use them ?
I'm actually using the software trigger mode, and generating an IRQ with my timer. This way, I can trigger my A/D converter in the CCP Timer ISR. But as I have a pretty high sampling rate, I'm limited in the number of instruction between every sample, so I really want it to be all hardware, and not having to deal with any software. Furthermore, at some point, I don't want to get interrupted during a specific process. So, I really want to do this without any IRQ.
In advance, I want to thank you for your time,