Adc_Read problem

General discussion on mikroC.
Post Reply
Author
Message
gun-powder
Posts: 1
Joined: 28 Apr 2010 21:09

Adc_Read problem

#1 Post by gun-powder » 28 Apr 2010 22:56

i am trying to use the A/D conversion mikro C function Adc_read it is available in many examples in different sources & tutorials the code compiles well put during isis proteus simulation it doesn't act as if any analog signal was read it always shows the warning :"ADC conversion clock period is below recommended", knowing that this function Initializes PIC’s internal ADC module to work with RC clock.
if i need to adjust conversion period, How can i edit conversion period using this function?

Deepak
Posts: 55
Joined: 08 Jan 2009 06:00
Location: India

Re: Adc_Read problem

#2 Post by Deepak » 29 Apr 2010 07:14

Hi gun-powder,

You cannot change the ADC Conversion Clock Period using ADC_Read function. You will have to set in the ADC registers. I'm using a PIC18F8520 controller and "ADC0N2" is the register to change the clock period.

Regards.

Post Reply

Return to “mikroC General”