Hi,
I am currently working on a megaAVR ADC driver for the AVR Software Framework, and would like to get some feedback from those who will use it:
is this is the kind of driver you would want to see for a megaAVR peripheral in ASF ? If you'd use it: would it be as is, or would you copy/paste the bits you need ?
Are there any other examples that should be included ?
I'm hoping both experienced users and beginners will comment on this, as the two have quite different perspectives.
As a small motivator there will be three JTAGICE mkII given to three posters in the thread before May 27th 09:00 CET where the following criteria has been met:
- on-topic comment
positive or negative feedback alike, elaborate on why you like/dislike it.
There are four examples included in the attached archive:
-
example1. measure an ADC input, as easy as possible.
example2. ADC free running mode, single channel average.
example3. Measure internal bandgap voltage and calculate AVCC from the measurement.
example4. Free running mode that scan all singleended ADC channels.
Note that this is not finished and reviewed code - there might be typos or bugs in it, but hopefully not :)
The attached archive contains AVR Studio 5 project files. If you are using AVR Studio 4, you need to add the directories in the src/asf folder to a new project manually. The projects have the ATmega2560 set as part, but you can change this to any of the
other supported devices and recompile. the driver itself is located in the src/asf/mega/drivers/adc/adc.h
Andreas