Author Topic: A/D converting  (Read 1346 times)

0 Members and 1 Guest are viewing this topic.

Offline machinegunmaxTopic starter

  • Beginner
  • *
  • Posts: 2
  • Helpful? 0
A/D converting
« on: March 16, 2010, 12:48:10 PM »
Hi, I'm fairly new to programming and I have no idea how to initialise the analogue to digital conversion process.  I have connected my inputs to pins which have an a/d converter function.  I am using an atmega168, I am writing the program in C.  If anyone has knows any good tutorials for a/d conversion or knows anywhere which explains what things like ADCMUX, ADCSRA, or prescalers are that would be great.  Any example code will be greatly appreciated.

Offline Pratheek

  • Contest Winner
  • Robot Overlord
  • ****
  • Posts: 125
  • Helpful? 3
Re: A/D converting
« Reply #1 on: March 18, 2010, 06:24:20 AM »
There is an excellent tutorial about ADC for AVR in avrfeaks.net.

Also try google and don't forget the read the datasheet.


Get Your Ad Here