| MPLAB C18 Tutorial - Setting up a new C18 project and creating an application |
|
|
| Saturday, 04 April 2009 01:19 | |
|
Page 1 of 12 Setting up a new C18 project and creating an application
Last updated November 28, 2009 (11.28.09)
This tutorial will show you how to create and configure a new C18 project and then how to create an application within that project. The application is a simple one, well, at least it is at first. Yes, the typical and all-so-popular LED blinking application. What is great about this simple objective is that there are so many ways to do it! At first we will use a simple loop, then we will make use of some basic and specialized software and hardware libraries to add features and special abilities. We will eventually make use of interrupts, timers, even the PWM peripheral to 'enhance' our LED blinking application. Finally, we will conclude by adding RS-232 communication with a PC terminal program so we can control the operation of the LED blinker. The article does not end here! Either view all pages, click next for each sequential page or click on the subject headings on the article index (located on the right) to continue.
Comments (7)
Joomla components by Compojoom
|
|
| Last Updated ( Saturday, 28 November 2009 23:18 ) |
Whos Online
- andyo
- Jon Chandler
Forum Activity
LCD / 18F1320 - jon chandler Saturday, 20 March 2010 07:58 - [4 replies]
A 'throw-away" PIC board - mrdeb Thursday, 18 March 2010 06:19 - [32 replies]
Credit Where Credit's Due - jon chandler Tuesday, 16 March 2010 12:01 - [9 replies]
Marching LEDs - mrdeb Saturday, 13 March 2010 22:54 - [7 replies]
USB 8 Channel Servo Controller - andyo Saturday, 13 March 2010 01:19 - [2 replies]
Dedicated Servo Controller - graham Friday, 12 March 2010 17:58 - [0 replies]
Must have....delta temperature glowies! - graham Friday, 12 March 2010 17:31 - [3 replies]
Recent Comments
- 2010-03-21 03:31:04 22her...
Do you have a model number for the ZIFs? Know of a reputable place...
- 2010-03-20 07:58:45 andyo
Nice. The TAP-28 boards are looking good. When I've had a buzzi...
- 2010-03-19 22:05:12 ozbec...
The author (Hop) suggests to "set the target PIC's configuratio...
- 2010-03-17 22:58:18 Jon C...
Graham, Thanks for fixing the spacing on the array. This is how i...
- 2010-03-17 21:14:34 ASDne...
Thanks Graham, It is a problem with Flowcode because the demo wa...
- 2010-03-17 19:50:32 Graha...
Looks like you've pretty much solved every minor issue that was enc...
- 2010-03-17 11:42:03 Jon C...
The low-cost servo does have one other feature. The origina...
- 2010-03-17 10:56:44 Graha...
I am not familiar with flowcode, though did you try powering the bo...



Hi Hop,
I've finally got some time this weekend to delve into the world of C - you have answered a lot of my questions with this tutorial!
I did find some errors, one was induced by some old site settings, the other was while following the guide step by step (excellent guide by the way - picking up new software idiosyncrasies can be quite frustrating). The errors;
- Anything in tags (such as includes) where removed (old site settings did this on article saves, it has been fixed).
- The Libraries directory needed to be C:MCC18h (I had build errors with C:MCC18 declared).
I've updated the include files and uploaded new images which reflect the path change - hope you don't mind.
Once again, thanks for the article! (PS - I archived the old comments on this article to clean things up a little more)
Edit: above should read C: -backslash- MCC18 -backslash- h, backslashes are omitted from these comments for sql compatibility issues with other backend stuff. Backslashes work fine in articles though *
Edit (16 Mar 2010): Seems somewhere along the line that the mod for include tags had disappeared. I've re-added it as of today.