Oct 4, 2013 #1 B baltee Newbie level 5 Joined Sep 7, 2013 Messages 9 Helped 1 Reputation 2 Reaction score 1 Trophy points 3 Location baltistan Visit site Activity points 56 hi everyone i am novice in programming mikroc.i need your kind help me to understand the problem.
Oct 4, 2013 #2 jayanth.devarayanadurga Banned Joined Dec 4, 2012 Messages 4,280 Helped 822 Reputation 1,654 Reaction score 791 Trophy points 1,393 Location Bangalore, India Visit site Activity points 0 ANSEL and ANSELH registers doesn't exist in the PIC you are using. See if you have to configure ADCON1, CMCON, CVRCON registers instead. Zip and post mikroC project files and mention PIC and Clock frequency used. Post a Circuit.
ANSEL and ANSELH registers doesn't exist in the PIC you are using. See if you have to configure ADCON1, CMCON, CVRCON registers instead. Zip and post mikroC project files and mention PIC and Clock frequency used. Post a Circuit.
Oct 5, 2013 #3 B baltee Newbie level 5 Joined Sep 7, 2013 Messages 9 Helped 1 Reputation 2 Reaction score 1 Trophy points 3 Location baltistan Visit site Activity points 56 i am using pic18f458.
Oct 5, 2013 #4 jayanth.devarayanadurga Banned Joined Dec 4, 2012 Messages 4,280 Helped 822 Reputation 1,654 Reaction score 791 Trophy points 1,393 Location Bangalore, India Visit site Activity points 0 Can't help without knowing your Clock frequency and which PORTS you are using as input or output. Replace the lines Code C - [expand]1 2 3 ANSEL = 0; ANSELH = 0; OSCCON = 0b01111110; with Code C - [expand]1 2 3 ADCON1 = 0b10000110; CMCON = 0x07; CVRCON = 0x00;
Can't help without knowing your Clock frequency and which PORTS you are using as input or output. Replace the lines Code C - [expand]1 2 3 ANSEL = 0; ANSELH = 0; OSCCON = 0b01111110; with Code C - [expand]1 2 3 ADCON1 = 0b10000110; CMCON = 0x07; CVRCON = 0x00;