PlayaSlaya69
Junior Member level 1
Hi there, i'm in need of some expert advice. I need to perform sampling of an audio signal at a around 40 kHz on my dsPIC. The way i thought of achieving this is by setting up a timer interrupt at the set frequency and on every interrupt read the ADC and store the result. I plan on setting up the PIC's ADC for automatic sampling and manual conversion. On each interrupt i'll set the SAMP bit so that ADC conversion occurs, poll to check when the conversion is done, and when done store the result. After the conversion the ADC module should automatically start sampling.
Is my thinking correct? Another one of my concerns is would all this be achieved quick enough so that the next interrupt is called while the first is still executing. I plan to run the PIC at 30 MHz. I'm very new to PIC and maybe its just me, but i find the information on how their ADC's work very confusing. So if anyone could tell me if my solution would achieve the sampling i want or if there's a better way of doing it.
I'd appreciate any suggestions you guys have. Thanks
Is my thinking correct? Another one of my concerns is would all this be achieved quick enough so that the next interrupt is called while the first is still executing. I plan to run the PIC at 30 MHz. I'm very new to PIC and maybe its just me, but i find the information on how their ADC's work very confusing. So if anyone could tell me if my solution would achieve the sampling i want or if there's a better way of doing it.
I'd appreciate any suggestions you guys have. Thanks