Yahoo Groups archive

AVR-Chat

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

Message

Re: [AVR-Chat] C programming

2006-01-28 by David Kelly

On Jan 28, 2006, at 3:30 AM, pinky elodia wrote:

> hi....
> i'm looking for sample programming in C.......for ATMEL
> i hve a sample on ADC (in C) but couldn't properly understand...
> if i dont use portF(ADC port) as input, i can use as normal ouput,  
> right?
> i hve try, but fail...........
> are they book in C for Programming microcontroller...as i see  
> ordinary C book don't tell us about how to write program for uC....

The problem is that first you need to understand C. And also at the  
same time you need to understand the target (AVR) you are coding for.  
Then 2nd you can put the C and AVR together.

Using the ADC and/or port pins is not a C problem but an AVR problem.  
The Atmel datasheet for your particular AVR will tell you how the  
port behaves and may be controlled. Then its up to you to do what the  
chip needs, either in assembly or in C, or whatever, your choice.

--
David Kelly N4HHE, dkelly@HiWAAY.net
========================================================================
Whom computers would destroy, they must first drive mad.

Attachments

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.