Continue to Site

Welcome to EDAboard.com

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.

error message:undeclared identifier ansel

Status
Not open for further replies.

baltee

Newbie level 5
Joined
Sep 7, 2013
Messages
9
Helped
1
Reputation
2
Reaction score
1
Trophy points
3
Location
baltistan
Activity points
56
Capture.PNG



hi everyone
i am novice in programming mikroc.i need your kind help me to understand the problem.
 

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.
 

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;

 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top