Society of Robots - Robot Forum

Software => Software => Topic started by: jshalcott on March 30, 2007, 12:15:41 AM

Title: Microcontroller programming
Post by: jshalcott on March 30, 2007, 12:15:41 AM
I need a tutorial or a site that will help a newbie on programming a microcontroller.
Title: Re: Microcontroller programming
Post by: snow on March 30, 2007, 02:44:37 AM
First you should decide which microcontroller will you use, since there are quite many of them. Most popular choices would be microchip's PIC and atmel AVR. After choosing mcu, you must decide on programming language: assembly, C, basic...

I started with PIC (16f84a) and assembly and i learned it from http://www.mstracey.btinternet.co.uk/pictutorial/picmain.htm (http://www.mstracey.btinternet.co.uk/pictutorial/picmain.htm) and http://www.mikroe.com/en/books/picbook/picbook.htm (http://www.mikroe.com/en/books/picbook/picbook.htm) (online free book).

This will give you the basics and you can progress to other mcu and langauges after few projects and you will see which suits you better for which project.
Title: Re: Microcontroller programming
Post by: nanob0t on March 30, 2007, 12:54:25 PM
If you want to use PICs, I have more than enough tutorials that can get you up to programming them. 

A good program to use is MPLAB IDE v7.50.  A compiler that programs PICs specifically.  The program actually comes with tutorials. 
Title: Re: Microcontroller programming
Post by: jthtiger on May 30, 2007, 07:29:55 AM
i have a question could you use DarkBasic as a programming language. I dont think so cuz it is a game programming language but just a thought???

Tiger
Title: Re: Microcontroller programming
Post by: Eco19R on June 05, 2007, 05:28:56 PM
Nope, You need to have a compiler made for the chip you are using, - you can't use VS 2005 to program MCUs or any compiler made to compile code for PCs - at least not to my knowledge.