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 conversion in pic

Status
Not open for further replies.

icrekha

Newbie level 4
Joined
Feb 1, 2008
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Erode
Activity points
1,323
hi... i have developed he pgm for adc conversion in ccs compiler.. can anyone plz check and verify the codings???

void main ()
{
int value;
long digital;
setup_adc_ports(ALL_ANALOG);
setup_adc(ADC_CLOCK_DIV_2);
setup_adc_channel(1);
input (PIN_A0);
value=read_adc();
read_adc(ADC_START_ONLY);
sleep();
digital=read_adc(ADC_READ_ONLY);
}
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top