Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Tools
Old 7th August 2008, 05:10 AM   #1
Default Need some help choosing...

Well, I've been looking around for an easy language to learn for microcontrollers and I can't seem to find one. I have very limited programming knowledge/ background. The most I've done is a bit(10 commands or so) of GWbasic programming. I've tried to learn PIC assembly but it is proving to be frustrating and difficult. I'm considering the Parallax propeller as a platform since the SPIN language appears to be easy to learn. I'm also considering the PICAXE series of microcontrollers since it has the flowcharting option. I would prefer not to learn VB, C or any other high-level languages since they are more complicated.

Can anyone suggest a platform with a simple to learn language?

thanks
digital_blue is offline  
Old 7th August 2008, 05:22 AM   #2
Default

I would suggest you get a Junebug (see Bill's site) and use Swordfish Basic. The free version of swordfish is more than most people ever need.

Mike.
Pommie is online now  
Old 7th August 2008, 05:36 AM   #3
Default

I am already set up for PICs; I just haven't been able to find a language that is easy to learn. Are there any tutorials for Swordfish basic? I am programming illiterate except for print, goto, gosub statements...

Last edited by digital_blue; 7th August 2008 at 05:37 AM.
digital_blue is offline  
Old 7th August 2008, 05:41 AM   #4
Default

Swordfish Basic works with the PIC 18F family.

What programmer do you have.
__________________
Please post questions to the forums. PM's are for personal communication.

BCHS/3v0's Tutorials
Junebug USB PIC programmer kit., USB Bit Whacker,
The 15 Minute Printed Circuit Board! (+drill time)
3v0 is online now  
Old 7th August 2008, 05:43 AM   #5
Default

I'm using a PICKIT2 programmer along with Bill's firefly. I have a stash of 16f PICs and I'd prefer to stick with them if possible.

Last edited by digital_blue; 7th August 2008 at 05:44 AM.
digital_blue is offline  
Old 7th August 2008, 05:54 AM   #6
Default

With the 16 series pics your choice is quite limited. Many here have started to use the (free) boost C compiler. If you have to learn a language then C is probably a good one to start with. I have a firefly and could knock up an example to get you started.

Mike.
Pommie is online now  
Old 7th August 2008, 11:32 AM   #7
Default

Quote:
Originally Posted by digital_blue View Post
I'm using a PICKIT2 programmer along with Bill's firefly. I have a stash of 16f PICs and I'd prefer to stick with them if possible.
PICBasicPro is a limited free down load that is supported by MPlab. It is a standard basic language and is easy to learn. The on-line manual gives complete instructions for use.

Go to the melabs website and download the readme file. It gives the 16F chips that are supported (most of the standards).
__________________
Creationists have a world of evidence
AllVol is offline  
Old 7th August 2008, 11:47 AM   #8
Default

Hi digital_blue,

Just to clear something up: don't be scared of higher-level languages because they are more complicated; they're not. For instance, BASIC is higher level than C, which is higher than assembly, which is higher than machine code. A flowcharting language is quite high-level--which means farther from the hardware.

There are pros and cons to both high and low level languages. The higher the level, the less you have to know about the actual hardware. The lower the level, the greater the control you have over things like timing. (I'm making some broad generalizations here.)

Some languages allow you to mix assembly inline with a higher-level language (like C or Pascal) so that you can control critical sections of code as tightly as you like.

My advice would be to learn PIC assembly and also to learn C. Maybe it's a bit difficult to get your head around at first, with no programming experience, but it's worth it. To do neat things you'll need to learn neat things.


Torben
__________________
Curiosity was framed. Ignorance killed the cat.
Torben is offline  
Old 7th August 2008, 12:17 PM   #9
Default

Quote:
Originally Posted by digital_blue View Post
I Are there any tutorials for Swordfish basic? I am programming illiterate except for print, goto, gosub statements...
hi,
Look at Gramo's link for Swordfish and Bill's link for 18F's below for tutorials.
A simple Basic is PICAxe, free downloads.


http://www.rev-ed.co.uk/picaxe/progedit.htm
__________________
Eric " Good enough is Perfect "
I will NOT answer PM's requesting technical help, please use the Forum
PIC tutorials: Nigel's www.winpicprog.co.uk/ Bill's: www.blueroomelectronics.com/

Last edited by ericgibbs; 7th August 2008 at 12:20 PM.
ericgibbs is offline  
Old 7th August 2008, 01:45 PM   #10
Default

Quote:
Originally Posted by ericgibbs View Post
A simple Basic is PICAxe, free downloads.
Eric,

While the software is free, don't you have to pay an inflated price for the actual chips?

Mike.
Pommie is online now  
Old 7th August 2008, 02:14 PM   #11
Default

I would stick with assembler. It's probably the internal architecture that is confusing you a bit. Where you have to switch banks to initialize various registers and that sticky jump table using the "RetLW" instruction. But you will really gain allot of understanding of the internal hardware and once you cross a few hurdles you will have it mastered. With the knowledge of assembler you will find it much easier to design with other processors as well. Some of the small embedded processors from Intel will be very straight forward like the 80188 family.
Space Varmint is offline  
Old 7th August 2008, 03:52 PM   #12
Default

Quote:
Originally Posted by Pommie View Post
Eric,

While the software is free, don't you have to pay an inflated price for the actual chips?
The chips are remarkably cheap, nothing like BASIC STAMP's.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now  
Old 7th August 2008, 04:34 PM   #13
Default

Quote:
Originally Posted by Nigel Goodwin View Post
The chips are remarkably cheap, nothing like BASIC STAMP's.
Dollar for dollar, PICaxe is probably the cheapest way to get into PIC programming and use. The chips are available stateside for as little as $4.00. And has been mentioned, compiler is free, and there is no programmer necessary, just a serial cable (can be home-brewed easily).
__________________
Creationists have a world of evidence
AllVol is offline  
Old 7th August 2008, 05:56 PM   #14
Default

Depends on your budget too, I suppose. For me, "free" is the keyword and my favorite so far for it's 16F' support and generous free/lite version limitations is Sourceboost BoostC.

Honestly, there's not much difference between BASIC and C. Also, and unfortunately, no matter how good they are, BASIC still lacks the "professional" status of assembler and C.

My 2 cents. Mike
Mike, K8LH is online now  
Old 7th August 2008, 06:00 PM   #15
Default

Quote:
Originally Posted by AllVol View Post
Dollar for dollar, PICaxe is probably the cheapest way to get into PIC programming and use. The chips are available stateside for as little as $4.00. And has been mentioned, compiler is free, and there is no programmer necessary, just a serial cable (can be home-brewed easily).
I agree (with qualifiers).

(1) It's an interpreted BASIC implementation so you'll never get the same speed as you do with assembler or compiled BASIC or C programs. Probably not a "big deal" for many apps'.

(2) It forces you to use limited pin functions they define. Also may not be a "big deal" for many apps'.

As you mentioned, the included serial-to-EEPROM program loading process is a big plus since no programmer is required.

I've never used one and probably never will. I suspect they're easy to outgrow as you gain knowledge, experience, and a device programmer (grin).

Mike

Last edited by Mike, K8LH; 7th August 2008 at 06:03 PM.
Mike, K8LH is online now  
Reply

Tags
choosing

Thread Tools
Display Modes


Similar
Title Starter Forum Replies Latest
choosing an oscilloscope Marks256 General Electronics Chat 27 16th July 2007 04:07 PM
Need help choosing a relay uberevan Electronic Projects Design/Ideas/Reviews 15 14th November 2006 02:01 PM
HELP ME choosing my Major!! sonaiko General Electronics Chat 6 18th January 2006 12:35 AM
Choosing the right PIC? L3wis Micro Controllers 3 25th March 2004 08:58 PM
Please, choosing an IC Skyknight General Electronics Chat 3 3rd May 2003 04:43 PM



All times are GMT. The time now is 01:30 PM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker