avi
New Member
Hi all,
I'm using the PIC18 as an audio transceiver (using the UART).
I have a problem with the sampling rate, and it seems to come from long conversion times of the internal ADC module (216uS => fs=~4.6Khz).
too low sample rate- bad sound and distortions...
I've tried to change the convertion times at the ADCON0/1 and it did't help alot.
I'm using the PIC18LF452 with 20MHz crystal.
According to the data sheet, even if I take the highest Tad, 64*Tosc- I get
Tad=64*(1/20MHz)=3.2uS
Tconv.=12*Tad= 38.4uS ==> 26KHz- but I get only 4.6Khz!!!
I need your kindly help to understand where I'm wrong, and how can I reduce the conversion times of the ADC.
TIA,
Avi.
I'm using the PIC18 as an audio transceiver (using the UART).
I have a problem with the sampling rate, and it seems to come from long conversion times of the internal ADC module (216uS => fs=~4.6Khz).
too low sample rate- bad sound and distortions...
I've tried to change the convertion times at the ADCON0/1 and it did't help alot.
I'm using the PIC18LF452 with 20MHz crystal.
According to the data sheet, even if I take the highest Tad, 64*Tosc- I get
Tad=64*(1/20MHz)=3.2uS
Tconv.=12*Tad= 38.4uS ==> 26KHz- but I get only 4.6Khz!!!
I need your kindly help to understand where I'm wrong, and how can I reduce the conversion times of the ADC.
TIA,
Avi.