Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Thread

A/D converter - MEGA16L

A/D converter - MEGA16L

2005-04-23 by Nazeer Vawda

I got the following task to carry out,and im totally lost. Its the first time im programming in AVR. Where do i start??

Write properly documented c-code to run the A/D converter in 8-bit mode on 2 channels and read values from 2 potentiometers. Use the push-buttons to select the channel (no button * off; button 1 * Channel 0; button 2 * Channel 1), and display the A/D value on the led's. Calibrate at ten voltage values and check for cross-talk between channels. 


--------------------------------------------------------------------
Please find our disclaimer at http://www.ukzn.ac.za/disclaimer
--------------------------------------------------------------------
<<<<gwavasig>>>>

RE: [AVR-Chat] A/D converter - MEGA16L

2005-04-24 by stevech

Seems like a fairly unreasonably complex assignment from the prof if you are
an undergrad. The challenge is to select and learn to use the tools.
Show quoted textHide quoted text
-----Original Message-----
From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On Behalf
Of Nazeer Vawda
Sent: Saturday, April 23, 2005 6:19 AM
To: AVR-Chat@yahoogroups.com
Subject: [AVR-Chat] A/D converter - MEGA16L



I got the following task to carry out,and im totally lost. Its the first
time im programming in AVR. Where do i start??

Write properly documented c-code to run the A/D converter in 8-bit mode on 2
channels and read values from 2 potentiometers. Use the push-buttons to
select the channel (no button * off; button 1 * Channel 0; button 2 *
Channel 1), and display the A/D value on the led's. Calibrate at ten voltage
values and check for cross-talk between channels. 


--------------------------------------------------------------------
Please find our disclaimer at http://www.ukzn.ac.za/disclaimer
--------------------------------------------------------------------
<<<<gwavasig>>>>





 
Yahoo! Groups Links

RE: [AVR-Chat] A/D converter - MEGA16L

2005-04-24 by stevech

My recommendation: use the freeware version of Codevision AVR and A/D and
libraries
Show quoted textHide quoted text
-----Original Message-----
From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On Behalf
Of stevech
Sent: Sunday, April 24, 2005 4:06 PM
To: AVR-Chat@yahoogroups.com
Subject: RE: [AVR-Chat] A/D converter - MEGA16L


Seems like a fairly unreasonably complex assignment from the prof if you are
an undergrad. The challenge is to select and learn to use the tools.

-----Original Message-----
From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On Behalf
Of Nazeer Vawda
Sent: Saturday, April 23, 2005 6:19 AM
To: AVR-Chat@yahoogroups.com
Subject: [AVR-Chat] A/D converter - MEGA16L



I got the following task to carry out,and im totally lost. Its the first
time im programming in AVR. Where do i start??

Write properly documented c-code to run the A/D converter in 8-bit mode on 2
channels and read values from 2 potentiometers. Use the push-buttons to
select the channel (no button * off; button 1 * Channel 0; button 2 *
Channel 1), and display the A/D value on the led's. Calibrate at ten voltage
values and check for cross-talk between channels. 


--------------------------------------------------------------------
Please find our disclaimer at http://www.ukzn.ac.za/disclaimer
--------------------------------------------------------------------
<<<<gwavasig>>>>





 
Yahoo! Groups Links



 






 
Yahoo! Groups Links

Re: [AVR-Chat] A/D converter - MEGA16L

2005-04-25 by Brian Dean

On Sat, Apr 23, 2005 at 03:18:44PM +0200, Nazeer Vawda wrote:

> I got the following task to carry out,and im totally lost. Its the first time
> im programming in AVR. Where do i start??
> 
> Write properly documented c-code to run the A/D converter in 8-bit mode on 2
> channels and read values from 2 potentiometers. Use the push-buttons to select
> the channel (no button * off; button 1 * Channel 0; button 2 * Channel 1), and
> display the A/D value on the led's. Calibrate at ten voltage values and check
> for cross-talk between channels.

Sounds like a homework problem.  You're supposed to figure these out
on your own.  As to where to start, the best place is the datasheet.

-Brian
-- 
Brian Dean
BDMICRO - ATmega128 Based MAVRIC Controllers
http://www.bdmicro.com/

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.