My aim is tripartite:
- to help you learn about the PIC microcontroller,
- see some cool hardware/interfacing techniques, and
- discover the power of the PIC Micro Pascal language.
Why do I give PMP high marks? Several reasons.
- Pascal is highly structured and encourages sound coding practices.
- Hey, those local variables can't be beat!
- And unlike C, it is incredibly readable; source code flows almost like a story.
- PMP is highly optimized. It always creates small and/or fast executables.
- Procedures, functions, units and libraries make building complex projects from simpler ones sensible, logical and incremental.
- It compiles fast as hell, typically done by the time you lift your hand from the mouse.
- And again, it's free, yet does everything you'd expect from a commercial package.
What You'll Need
So, what are you waiting for? Latch onto a microcontroller (I've used the PIC16F88 throughout since it's commonly available, inexpensive, yet quite powerful), then download the PIC Micro Pascal package from the following link and get going!
There are a couple things to keep in mind as you commence your journey. First off, the download site, just mentioned, is a trifle scattered; you'll have to poke around a bit to find the download you want. Likewise for finding the manual.
Which version? All of the projects here have been tested with Version 2.0.6 which is quite steadfast. The newest version, 2.1.4, is still not shaken down completely, and moreover includes some syntactic changes which I haven't figured out yet. So, stick with the older of the two as you work through these exercises.
Go here to download PMP: http://www.pmpcomp.fr/
Install it on a Windows computer, then come back here to begin exploring with a number of cool projects. Also, I highly recommend printing out the manual and keeping a pencil handy. PMP is accessible, but deep!
And there is a forum there where you can ask questions, but I've noticed that the responses are often quite crabby if you don't know the protocol. Don't let it bother you too much! Some of the other users there are quite friendly and willing to help a newcomer along.
When first installing PMP, you have the additional hurdle of setting up the IDE, things like indicating default directories, connecting to the PIC burner, installing the assembler and so forth. The manual is a great help here, but so is plain old-fashioned experimenting. Believe me, it's worth it! And once you have that out of way, PMP really is a breeze to use.
About These Exercises
For each of these projects, you can download a schematic and the complete source code; links are provided on each page. These are stored in two separate public directories giving you free access. I would appreciate it, though, if you don't copy or distribute these files, but instead point others to this page.
For reference, the schematics may be found in Schematics and the zipped source code is in Source Code.
As for getting around, there's a pull-down menu bar at the top of this screen listing every project. If that's too detailed for you, then on the right you'll find the exercises organized by category. Notice that each project concludes with a link to the next so you can read them sequentially like a book if you want.
So have at it, and get ready for some genuine fun with the PIC in Pascal!
First Project: Blinking and Fading LEDs
The post was perfect and I always use your articles
ReplyDeleteدانلود تلگرام بدون فیلتر
I am from indonesia
ReplyDeleteHarimau Berenang
Hello, I put a request to get access to the source code and the schematics. Let me know if you will be able grant me the access.
ReplyDeleteHello? Is this site dead? I would REALLY like to get the code for your SN76477 exerciser for at least 6 months now to no avail. I really wonder- Has Thomas Henry pressed on from this mortal coil? I certainly hope not. There's no way I could write the code for this thing myself...
ReplyDeleteThank You and I have a nifty present: How Much Budget For House Renovation house renovation pictures
ReplyDelete