Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

A/D Conversion Source Code

Status
Not open for further replies.
I've been trying to find some C source code examples for A/D conversion, voltage and frequency, using PICs or AVRs. Can anyone give me some pointers?
 
Please, internal o external adc?

if external adc, you must use a serial o parallel routine to receive the result bytes.

if internal, you must setup the ports to analog, set_adc channel, start adc conversion, and finally read_adc()....

the result can be in 8 or 10 bits......to 10 bits, set #device adc=10, i think, im not sure

Bye
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top