| 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 (6)
Joomla components by Compojoom
|
|
| Last Updated ( Saturday, 28 November 2009 23:18 ) |
Whos Online
- Jon Chandler
- andyo
Forum Activity
REALISTIC LED candle flicker - mrdeb Wednesday, 10 March 2010 05:48 - [0 replies]
the LCD demo hello world - mrdeb Wednesday, 10 March 2010 05:41 - [29 replies]
USB problem - jon chandler Tuesday, 09 March 2010 11:31 - [3 replies]
Servo Module - andyo Tuesday, 09 March 2010 03:39 - [3 replies]
pic to ps2 communication - roshan Friday, 05 March 2010 01:30 - [7 replies]
Way Off Topic: Worldwide Ignite Week - jon chandler Wednesday, 03 March 2010 20:33 - [4 replies]
PIC USB with C and Visual C++ Project - hop Tuesday, 02 March 2010 21:49 - [0 replies]
Recent Comments
- 2010-03-05 13:24:23 mrpse...
I was thinking of battery with powered routers or powered for every...
- 2010-03-05 12:17:40 andyo
50 rooms - wow. The XBee modules are very easy to use but I'm not ...
- 2010-03-05 11:46:37 mrpse...
Thanks AndyO. What I have to do is design a device to monitor temp...
- 2010-03-05 03:08:58 andyo
The circuit used for the remote sensor can be found here: [url]http...
- 2010-03-04 07:19:06 renno
plz i need help do u know from where i could download it or how cou...
- 2010-03-04 07:16:05 renno
hello everyone i'm trying to finish my final project and i want to ...
- 2010-03-04 02:49:38 Saira...
Thanks that was helpful
- 2010-03-04 02:35:35 Jon C...
There is a BlueTooth module available. If you used this, you can s...



Hi Hop,
I've finally got some time this weekend to delve into the world of C - have answered about 25 out of 10,000 questions with this tutorial. All of them are fundamental handy points that are great shares for people new to C (like me!). I'd like to take my knowledge of C as far as where I am at with SF - luckily both programs are very modular/structured and share a common approach
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 *