Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
Thanks both of u , finally it is working ..
here is my code any fineness is required just tell me
All i have observed the o/p on led
now i have 2 work on taking this data to the LCD
CODE::PIC16F882 INTERNAL ADC USING MIKROC
unsigned int result1,temp_result;
unsigned int read_ad(char)...
i am using miKroC compiler pic16f882.
simulation in Proteus is showing some o/p but its not correct
Hard ware shows nothing o/p
my code::
unsigned int result1;
unsigned int read_ad(char);
unsigned char acquisition_time = 3U;
void main()
{
OSCCON=0X71; // INTERNAL CLOCK FREQ 8MHZ,SCS...
Just i want to know,while next time receiving the adc o/p with different voltage input from Variable pot the ARSESH and ADRESL are giving the previous result only why so?
Thanks dude ...
small doubt in the main while calling the read_ad(?); the parameters need to give
bcoz
ADCON0 |= (unsigned char)(channel << 2U); /* Select channel */
it takes the channel here.. i am not getting this line
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.