Yahoo Groups archive

AVR-Chat

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

Message

Re: I cant get started

2005-12-20 by sm5glc

Ted,
if I understand you correctly you are fluent with VB and have a good
knowledge on how microprocessors works, you should have very few
problems getting the mega16 to do what you command :)

I am not a programmer myself but dabbling with BASCOM and find it a
very easy to get going. 

Download the manual at
http://www.mcselec.com/index.php?option=com_docman&task=cat_view&gid=99&Itemid=54
it describes in depth how BASCOM differes VB and how it works with the
AVR processors. Every command is accompanied with programming examples
/snippets  and you should get going in no time!

Take a few good hours to browse the manual and then try write a few
lines. The debugger is quite good and should help a lot! Just make
sure you have the debug switch set when compiling  for debug, and make
sure to REMove when compile for target.

Feel free to ask if you run into basic problems I'll try to help. The
more advanced stuff is not for me (not yet).

Cheers and Good Luck
/Lasse
--- In AVR-Chat@yahoogroups.com, "Ted Smith" <tedsmithau@y...> wrote:
>
> Hi, I'm probably the oldest living active programmer in Australia and
> have decided to have a go at AVRmega16's before I die - hopefully
> using Bascom basic.
> I have done a lot with VB6 and assembly with the old 6502's 25 years
> ago but can't find anywhere any concise info on how to structure the
> AVR programs and integrating the various sub-routines, interrupts etc.
> It all seems so disjointed and every article I have found so is
> written by someone who assumes I know what they know. (Like Microsoft
> help screens of the past)
> Can anyone point me to a good step by step starting guide on how to
> compose a simple program to say accept a few switch inputs and output
> to a few leds while displaying information from the EEprom on an LCD
> depending on what switch is pressed?
> With the old 6502 I would have used interrupt routines for the
> switches and had a loop polling the inputs and simply written to
> output port addresses with an indexed address looking up data
> depending on the switch number.
> I can't seem to rationalise this to the AVR or is it done another way?
> Thanks Ted Smith
>

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.