Sign in

username:

password:



Not a member?

Search avrclub



Search tips

Subscribe to avrclub



avrclub by Keywords

AT90S2313 | AT90S8515 | ATMega | ATmega128 | ECL | FETS | IAR | Keyboard | LCD | STK50 | TMOS | UART

Ads

Discussion Groups

Discussion Groups | AVRclub | quickstart guide for engineers needed - atmega8 and C

Atmel AVR Microcontroller discussion group.

quickstart guide for engineers needed - atmega8 and C - stefan_trethan - Jan 29 18:25:00 2005


Hi,

I need to learn programming AVRs for a battery charger project.

I've programmed other micros in asm and C.
For the atmel i only want to use C (Winavr).

I have here a atmega8 which i tried to use with the software from
<http://zebra.tky.hut.fi/~jap/Electronics/AVR/Hello/>. I changed the
device in the makefile and also the ports where the LCD is.

Then i used make to get the hex file and avrdude to programm it which
terminated OK. But i see nothing at the hardware.

I have tried to toggle a port in a loop in main too, but i see no
action with the scope (i have set it to output, yes).

I think i missed something important. Should the code from the example
run when i program it? When? I mean i tried power-off and on again,
and i messed around with the reset pin, still no action.
Shouldn't there be control register set or something? with stuff like
clock source etc...

Is there a good guide somewhere how to get started? All i found
lingered for pages on useless stuff like installing the software but
didn't follow through until programming the device.

You see, usually i avoid using micros because i know i will get
frustrated with something i don't understand fully. With other
hardware i always know what i can do, use the scope or something, but
with software stuff i'm lost.

Thanks a lot for any help.

ST





(You need to be a member of avrclub -- send a blank email to avrclub-subscribe@yahoogroups.com )


Re: [AVR club] quickstart guide for engineers needed - atmega8 and C - Mark Jordan - Jan 29 19:42:00 2005


Hi Stefan,

This group is dead now. Please use the AVR-Chat group: To visit your group on the web, go to:
http://groups.yahoo.com/group/AVR-Chat/

To subscribe to this group, send an email to:
AVR-Chat-subscribe@AVR-... On 29 Jan 2005 at 22:25, stefan_trethan wrote: >
> Hi,
>
> I need to learn programming AVRs for a battery charger project.
>
> I've programmed other micros in asm and C.
> For the atmel i only want to use C (Winavr).
>
> I have here a atmega8 which i tried to use with the software from
> <http://zebra.tky.hut.fi/~jap/Electronics/AVR/Hello/>. I changed the
> device in the makefile and also the ports where the LCD is.
>
> Then i used make to get the hex file and avrdude to programm it which
> terminated OK. But i see nothing at the hardware.
>
> I have tried to toggle a port in a loop in main too, but i see no
> action with the scope (i have set it to output, yes).
>
> I think i missed something important. Should the code from the example
> run when i program it? When? I mean i tried power-off and on again,
> and i messed around with the reset pin, still no action.
> Shouldn't there be control register set or something? with stuff like
> clock source etc...
>
> Is there a good guide somewhere how to get started? All i found
> lingered for pages on useless stuff like installing the software but
> didn't follow through until programming the device.
>
> You see, usually i avoid using micros because i know i will get
> frustrated with something i don't understand fully. With other
> hardware i always know what i can do, use the scope or something, but
> with software stuff i'm lost.
>
> Thanks a lot for any help.
>
> ST >
> Yahoo! Groups Links
[Non-text portions of this message have been removed]




(You need to be a member of avrclub -- send a blank email to avrclub-subscribe@yahoogroups.com )