![]() | ![]() | ![]() |
| |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
![]() |
| | Tools |
| | #16 |
|
Why don't you try writing some code and see if it works. If it doesn't work then post it on here and people will help. We like people that try to write stuff and get stuck. We don't like people that say "gimme xxx". Mike. | |
| |
| | #17 |
|
Usif, The hard part about starting with C on a microprocessor isn't so much the C language, it only has 32 keywords (ref: K&R) of which 11 are data types. Plus if you've done any programming before then the basic constructs: if, for, etc. are already familiar. The tricky bit is all the stuff that's processor dependent, such as initialising the PIC's hardware registers, CONFIG words, include files and the like. This all tends to change with each different C compiler, however - not the core code in the application itself. What I'd suggest is choose a development environment and just go with the C compiler that comes with that. My choice is the free MPLAB IDE and the PICC Lite compiler that comes with it. Not because it's any better than any of the others, just because it's there already and so is less hassle when you're at the bottom of the learning curve. The next thing to do is to get some sample code off the internet. It doesn't have to be exactly the functions you want, but the key is to get all the peripheral stuff (configs etc.) and then to adapt the C code to do what you want it to. | |
| |
| | #18 |
| You should first learn C before trying to play with microcontrollers. No need for a book, everything (yes everything) you need can be found on the Internet.
| |
| |
|
| Tags |
| hitech |
| Thread Tools | |
| Display Modes | |
| |
Similar | ||||
| Title | Starter | Forum | Replies | Latest |
| Using 'continue' in Hi-Tech C | MrNobody | Micro Controllers | 13 | 1st September 2008 12:14 AM |
| New robotics tech | mous3 | Robotics Chat | 0 | 31st July 2008 03:07 AM |
| Greetings Electro-tech. | xl5 | Chit-Chat | 4 | 29th December 2007 07:06 PM |
| Getting started with Hi-tech C.. | MrNobody | Micro Controllers | 3 | 2nd August 2007 03:28 AM |
| mobile tech | jeevan772006 | Electronic Projects Design/Ideas/Reviews | 0 | 1st September 2005 07:19 AM |