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.

Download the MPLAB IDE installer here: MPLAB IDE

Download the MPLAB C18 Compiler installer here: MPLAB C18 Compiler

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.


Forum Activity

Recent Articles

ROKNEWSPAGER ERROR: File not found: images/stories/authors/346/EEVBlog%20242.jpgROKNEWSPAGER ERROR: File not found: images/stories/authors/Jon%20Chandler/bookmark%20screen.jpg

EEVblog #242 – Hakko FX-888 Soldering Iron Hack +

Dave has posted another excellent video blog, this one a hack he did on a Hakko FX-880 soldering iron.  The hack is interesting because he solves a design problem  and explains in detail the...

Geoff's Projects: The Maximite BASIC Computer +

From Geoff's Projects Blog comes the Maximite BASIC computer.  It looks like an interesting bit of kit and the table of contents at the blog has some other interesting topics. The Maximite is a small...

Rangerbob's Reverse Geocache +

Rangerbob's Reverse Geocache
Since I first saw Mikal Harts Reverse Geocache Puzzle I knew I needed to build one. My best mate and his wife are avid GeoCachers (is that a word?) and I decided to make a special gift for his 30th birthday....

Useful Online Tools and References +

There are a lot of useful tools on-line.  I got busy and organized some of the ones I use often.  Perhaps you'll find these useful.  Please share others that you use. I installed these...

Handy RadioShack Test Lead Set +

Handy RadioShack Test Lead Set
RadioShack is starting to get some nice products but sadly, they are not well described on the package or on the web site.  I took a leap of faith and purchased this test lead set and I'm quite pleased...

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6

New Resources

Andrew Carters Electrical Engineering Blog
Jumper One - electronic projects, tutorials, hwd hacking

More...     Add Link

Whos Online

We have 21 guests and 1 member online

Member Access

Joystick Interface


showcase

The joystick is designed to replicate F16 joystick operation. DIY is much more economic...

More

Geeky Clock


feature_d_small

Jon uses a servo to display the time. There is an impressive geek factor to this project

More

Wireless Weather


showcase

Anydo's wireless weather station. There's all sorts of tech in this project - worth the read

More


showcase

The photo sensor may be enabled in 3 stages to measure from near darkness to full-intensity sunlight...

More