Yahoo Groups archive

AVR-Chat

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

Thread

Starting Out

Starting Out

2003-11-25 by etgfx

Greetings,

Does anyone know what the best way to start out in AVR programming 
is?  I've heard from a local hobbiest programmer that there was a way 
to do a 6wire parralel port programmer, but I wasn't able to find 
this from google.  Does anyone have a link to this, or other simple 
programmers?   There doesn't seem to be a whole lot out there for the 
student budget that I have been able to find.  Also any other advice 
for begining avr programmers would be very appreciated.

-
Michael Haisley

RE: [AVR-Chat] Starting Out

2003-11-25 by Larry Barello

Check out www.barello.net/ARC Look at the users guide.  The last page is a
schematic that contains the wiring for the "SAMPLE" programmer.  SAMPLE
programmer works with BASCOM basic compiler.  You can get BASCOM with a 2k
limit (and you can get a lot done in 2k) for free.  Once you have become
tired of BASCOM you can trade up to GCC C compiler (WinAVR from
www.avrfreaks.net) which has a programmer that works with the SAMPLE
interface (as well as a bunch other).

For populating your breadboard: get a mega8535, or mega16 or even a mega8.
They come with an internal 1 mhz oscillator enabled so you only need to
supply +5v, gnd and the programming cable.  Hook a couple LEDs to some
output pins (read the data sheets, read my introduction to BASCOM
programming) and you should be good to go.  Once you get a blinky light
going, then fiddle with the configuration fuses to enable the 8mhz internal
oscillator so things go faster.  Or, enable the external crystal and connect
a 16mhz crystal to make it go really fast.

You can do all this on one of those plastic breadboards with the grid of
holes for pushing jumper wires into.  Works great.  That is how I prototype
all my designs for the purposes of S/W development (the breadboards are not
too good for high power or accurate ADC stuff).

Cheers!
Show quoted textHide quoted text
-----Original Message-----
From: etgfx [mailto:mikehaisley@comcast.net]
Sent: Tuesday, November 25, 2003 2:38 PM
To: AVR-Chat@yahoogroups.com
Subject: [AVR-Chat] Starting Out


Greetings,

Does anyone know what the best way to start out in AVR programming
is?  I've heard from a local hobbiest programmer that there was a way
to do a 6wire parralel port programmer, but I wasn't able to find
this from google.  Does anyone have a link to this, or other simple
programmers?   There doesn't seem to be a whole lot out there for the
student budget that I have been able to find.  Also any other advice
for begining avr programmers would be very appreciated.

-
Michael Haisley



To unsubscribe from this group, send an email to:
AVR-Chat-unsubscribe@yahoogroups.com



Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/

RE: [AVR-Chat] Starting Out

2003-11-26 by stevech

suggestion:
one of PRLLC's MegaAVR boards, such as the Mega16 or 32. Low cost.
Serial port programming via bootloader which comes pre-loaded into the chip.

Develop software with
AtManAVr which is a decent IDE added on to freeware GCC. IDE hides the
uglies of GCC. Cheap. Free eval.
Or Atmel's Free assembly language tools: AVR Studio
Or COdeVision AVR's superb C compiler. Not free, but vastly superior to GCC

I use all of this stuff.
Show quoted textHide quoted text
-----Original Message-----
From: etgfx [mailto:mikehaisley@comcast.net]
Sent: Tuesday, November 25, 2003 2:38 PM
To: AVR-Chat@yahoogroups.com
Subject: [AVR-Chat] Starting Out


Greetings,

Does anyone know what the best way to start out in AVR programming
is?  I've heard from a local hobbiest programmer that there was a way
to do a 6wire parralel port programmer, but I wasn't able to find
this from google.  Does anyone have a link to this, or other simple
programmers?   There doesn't seem to be a whole lot out there for the
student budget that I have been able to find.  Also any other advice
for begining avr programmers would be very appreciated.

-
Michael Haisley



To unsubscribe from this group, send an email to:
AVR-Chat-unsubscribe@yahoogroups.com



Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/

Re: [AVR-Chat] Starting Out

2003-11-26 by Russell Shaw

stevech wrote:
> suggestion:
> one of PRLLC's MegaAVR boards, such as the Mega16 or 32. Low cost.
> Serial port programming via bootloader which comes pre-loaded into the chip.
> 
> Develop software with
> AtManAVr which is a decent IDE added on to freeware GCC. IDE hides the
> uglies of GCC. Cheap. Free eval.
> Or Atmel's Free assembly language tools: AVR Studio
> Or COdeVision AVR's superb C compiler. Not free, but vastly superior to GCC
> 
> I use all of this stuff.

But has Codevision fixed the stuff about invoking functions from
pointers within structs? Last time i used it (12 months ago), it
also borked at more complex things like nested structs and enum
declarations in structs.

Re: [AVR-Chat] Starting Out

2003-11-26 by David VanHorn

At 10:38 PM 11/25/2003 +0000, etgfx wrote:

>Greetings,
>
>Does anyone know what the best way to start out in AVR programming 
>is?  I've heard from a local hobbiest programmer that there was a way 
>to do a 6wire parralel port programmer, but I wasn't able to find 
>this from google. 

I used the programmer by BA1FB, a chinese ham, with the 2343.
The whelenchip code in the files area was developed with this.

> Does anyone have a link to this, or other simple 
>programmers?   There doesn't seem to be a whole lot out there for the 
>student budget that I have been able to find.  Also any other advice 
>for begining avr programmers would be very appreciated.

The 2343 is a very simple chip to get started on.
Feed it 5V, pull up the reset pin, and it goes. :)

Re: Starting Out

2003-11-26 by poitsplace

Might be good going the ponyprog route...
Then you can program other chips too.

http://www.lancos.com/prog.html
schematics at the bottom

...and, if you need a "crutch" (as I do ;)
for the initial programming, try Bascom AVR
demo (a BASIC compiler with a very liberal
2k code restriction)
http://www.mcselec.com/elektor_uk.htm



--- In AVR-Chat@yahoogroups.com, "etgfx" <mikehaisley@c...> wrote:
> Greetings,
> 
> Does anyone know what the best way to start out in AVR programming 
> is?  I've heard from a local hobbiest programmer that there was a 
way 
> to do a 6wire parralel port programmer, but I wasn't able to find 
> this from google.  Does anyone have a link to this, or other simple 
> programmers?   There doesn't seem to be a whole lot out there for 
the 
> student budget that I have been able to find.  Also any other 
advice 
Show quoted textHide quoted text
> for begining avr programmers would be very appreciated.
> 
> -
> Michael Haisley

RE: [AVR-Chat] Starting Out

2003-11-26 by stevech

isn't that a bit arcane for microprocessors?
I can give you a much worse list of missing capabilities for GCC and the
Havard architecture of AVRs.

-------------------

But has Codevision fixed the stuff about invoking functions from
pointers within structs? Last time i used it (12 months ago), it
also borked at more complex things like nested structs and enum
declarations in structs.



To unsubscribe from this group, send an email to:
AVR-Chat-unsubscribe@yahoogroups.com



Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/

Re: [AVR-Chat] Starting Out

2003-11-26 by MuRaT KaRaDeNiZ

visit "http://www7.brinkster.com/mukas/"
I have drawn a simple programmer using serial port and

famous ponyprog software. It is in the electronics
page.


--- etgfx <mikehaisley@comcast.net> wrote:
> Greetings,
> 
> Does anyone know what the best way to start out in
> AVR programming 
> is?  I've heard from a local hobbiest programmer
> that there was a way 
> to do a 6wire parralel port programmer, but I wasn't
> able to find 
> this from google.  Does anyone have a link to this,
> or other simple 
> programmers?   There doesn't seem to be a whole lot
> out there for the 
> student budget that I have been able to find.  Also
> any other advice 
> for begining avr programmers would be very
> appreciated.
> 
> -
> Michael Haisley
> 
> 


__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/

Re: [AVR-Chat] Starting Out

2003-11-26 by Russell Shaw

stevech wrote:
> 
> But has Codevision fixed the stuff about invoking functions from
> pointers within structs? Last time i used it (12 months ago), it
> also borked at more complex things like nested structs and enum
> declarations in structs.

 > isn't that a bit arcane for microprocessors?

Arcane? Some of the most interesting programs implement all the modern
object oriented techniques using function pointers in structs.

 > I can give you a much worse list of missing capabilities for GCC and the
 > Havard architecture of AVRs.

Such as?

Re: [AVR-Chat] Starting Out

2003-11-26 by Wagner Lipnharski

MuRaT KaRaDeNiZ wrote:
> visit "http://www7.brinkster.com/mukas/"
> I have drawn a simple programmer using serial port and
[snip] 

neat website, you deserve to have an exclusive domain as www.mukas.com

Re: [AVR-Chat] Starting Out

2003-11-26 by Wagner Lipnharski

etgfx wrote:
> Greetings,
>
> Does anyone know what the best way to start out in AVR programming
> is?  I've heard from a local hobbiest programmer that there was a way
> to do a 6wire parralel port programmer, but I wasn't able to find
> this from google.  Does anyone have a link to this, or other simple
> programmers?   There doesn't seem to be a whole lot out there for the
> student budget that I have been able to find.  Also any other advice
> for begining avr programmers would be very appreciated.
>
> -
> Michael Haisley

You have the option for the AVRXS small package. It is a DOS software to
transfer the program to your AVR, and a simple DB25 connector to your PC
parallel port, 4 resistor and 5 wires to your AVR, that's all.

Check it out at http://www.ustr.net  AVR files - look for AVRXS.ZIP,
FF378.EXE and FF278.EXE.

The AVRXS original function was to program an AVR into an isolated board,
but you can use it to program the chip into the working board, no problem.
The only issue done by the original software writer was that he kept the
RESET line active after programming, as you would remove the chip from the
programmer socket and move to the working board, it was ok, but if you
program the chip at the working board, the parallel port will keep the chip
in reset state after programming, so your board will not run.  I build the
FF378 and FF278 small DOS programs to set the parallel port (FF378 for LPT1
and FF278 to LPT2), so after programming you just run one of those, and the
RESET line of the AVR will be free and the program will run at the working
board.

That is a pretty easy, low cost and nice solution for starters. Later on
you can move to a bigger and expensive solution, if you want... :)

The MISO, SCK and MOSI pins of the AVR should be kept only for this
communication, if not, programming failure CAN happens.  There is a
solution for that, provided by a friend from Brazil, that incorporated a
74LS374 to the circuit, activated by the RESET coming from the Parallel
port, so, the Parallel port information does not get to the MISO, MOSI and
SCK pins after RESET is freed, then you can use those pins at your project
without any interference of the Parallel port. If and when you need to use
ALL the pins of the AVR, please ask and I will give you the directions.

Ok, there is a bunch of other solutions available, it is up to you to
choose the one you will use, and by the way, it is so cheap that doesn't
hurt to try ALL of them.

Personal recommendation:
Start learning the AVR by the right (and only) way:

ASSEMBLY LANGUAGE!!!

Wagner Lipnharski - email:  wagner@ustr.net
UST Research Inc. - Development Director
http://www.ustr.net - Orlando Florida 32837
Licensed Consultant Atmel AVR _/_/_/_/_/_/

Re: Starting Out

2003-11-26 by etgfx

--- In AVR-Chat@yahoogroups.com, David VanHorn <dvanhorn@c...> wrote:
> At 10:38 PM 11/25/2003 +0000, etgfx wrote:
> 
> >Greetings,
> >
> >Does anyone know what the best way to start out in AVR programming 
> >is?  I've heard from a local hobbiest programmer that there was a 
way 
> >to do a 6wire parralel port programmer, but I wasn't able to find 
> >this from google. 
> 
> I used the programmer by BA1FB, a chinese ham, with the 2343.
> The whelenchip code in the files area was developed with this.
> 
> > Does anyone have a link to this, or other simple 
> >programmers?   There doesn't seem to be a whole lot out there for 
the 
> >student budget that I have been able to find.  Also any other 
advice 
> >for begining avr programmers would be very appreciated.
> 
> The 2343 is a very simple chip to get started on.
> Feed it 5V, pull up the reset pin, and it goes. :)


BA1FB...that's it... I couldn't remember his/her name for the life of 
me.  I even found the page now...simple enough schematic.. I will 
probably try to build it today.

Re: [AVR-Chat] Re: Starting Out

2003-11-27 by David VanHorn

>
>BA1FB...that's it... I couldn't remember his/her name for the life of 
>me.  I even found the page now...simple enough schematic.. I will 
>probably try to build it today.

Any results?

Re: Starting Out

2003-11-28 by etgfx

--- In AVR-Chat@yahoogroups.com, David VanHorn <dvanhorn@c...> wrote:
> 
> >
> >BA1FB...that's it... I couldn't remember his/her name for the life 
of 
> >me.  I even found the page now...simple enough schematic.. I will 
> >probably try to build it today.
> 
> Any results?

no...i'm guessing I screwed up on pins, I tried to salavge a parallel 
port cable, it acted as if it kinda worked...except the avr got 
really hot, at about 117 degrees, I pulled the plug...figure I will 
wait tell I can pick up a db25 from rat shack, and do it right, 
before I cause myself more problems.

Re: Starting Out

2003-11-28 by poitsplace

That'll do it.  I actually connected one wrong on the solderless 
breadboard once and the pins got so hot it partly melted the 
plastic!  The amazing thing is...the chip survived!  Just used it
last week.

--- In AVR-Chat@yahoogroups.com, "etgfx" <mikehaisley@c...> wrote:
> --- In AVR-Chat@yahoogroups.com, David VanHorn <dvanhorn@c...> 
wrote:
> > 
> > >
> > >BA1FB...that's it... I couldn't remember his/her name for the 
life 
> of 
> > >me.  I even found the page now...simple enough schematic.. I 
will 
> > >probably try to build it today.
> > 
> > Any results?
> 
> no...i'm guessing I screwed up on pins, I tried to salavge a 
parallel 
Show quoted textHide quoted text
> port cable, it acted as if it kinda worked...except the avr got 
> really hot, at about 117 degrees, I pulled the plug...figure I will 
> wait tell I can pick up a db25 from rat shack, and do it right, 
> before I cause myself more problems.

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.