![]() | ![]() | ![]() |
| |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
![]() |
| | Tools |
| | #1 |
|
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 | |
| |
| | #2 |
|
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. | |
| |
| | #3 |
|
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. | |
| |
| | #4 |
|
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) | |
| |
| | #5 |
|
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. | |
| |
| | #6 |
|
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. | |
| |
| | #7 | |
| Quote:
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 | ||
| |
| | #8 |
|
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. | |
| |
| | #9 | |
| Quote:
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. | ||
| |
| | #10 |
| | |
| |
| | #11 |
|
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.
| |
| |
| | #12 |
| The chips are remarkably cheap, nothing like BASIC STAMP's.
| |
| |
| | #13 |
| 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 | |
| |
| | #14 |
|
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 | |
| |
| | #15 | |
| Quote:
(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. | ||
| |
|
| 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 |