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.

adc configuration using micro c for pic16f877a

Status
Not open for further replies.

glenndingding

Newbie level 5
Joined
Feb 15, 2012
Messages
10
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Philippines
Activity points
1,403
hi please help me configure the adc using micro c for PIC16F877A microcontroller. please.....


i want to use 3 inputs for PORT A ....RA0/AN1 (PIN 2), RA1/AN1(PIN 3) , RA2/AN2/Vref-/CVref(PIN 4)
there is Vref at PIN 5 which is RA3/AN3/Vref+....



can some one lend me a code for this please.:smile::smile:
 

Configuration for ADC

Code:
ADCON0 = 0x81;//Will work with 20Mhz Crystal
ADCON1 = 0xCA; //In this Configuration AN3 is Vref+ pin

Refer Datasheet for such settings..
And MikroC is has very good documentation..
I think u must not have any problem, if u read that properly
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top