microcontroller_basics
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | microcontroller_basics [2013/08/13 12:13] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== Basic Microcontroller Programming Using PIC ===== | ||
+ | |||
+ | {{: | ||
+ | |||
+ | Due to popular demand, I'm working on a short, basic class on Assembly-language programming for the PIC microcontroller. | ||
+ | |||
+ | ==== When is it? ==== | ||
+ | |||
+ | Thursday, May 12th, 7pm to whenever. | ||
+ | |||
+ | |||
+ | ==== What is the point? ==== | ||
+ | |||
+ | By taking this class (which will probably be two meetings, around 2 hours each), you will learn the basics of PIC ASM using the [[http:// | ||
+ | |||
+ | Most of you will find that working in PIC is an easy and quick way to solve a lot of control tasks, but getting started can be really infuriating. It seems like no matter how much reading you do, there is always one more thing that doesn' | ||
+ | |||
+ | If you haven' | ||
+ | |||
+ | Another great thing about the PIC is the pricing. Most chips are about 2 dollars, and you can get a really nice USB programmer for about 40 bucks. | ||
+ | |||
+ | |||
+ | ==== What you need to bring ==== | ||
+ | |||
+ | I'll be using my laptop and the projector to get you through the basics. | ||
+ | |||
+ | 1) A computer capable of running a PIC IDE. I'm using an ancient laptop and MPLab runs just fine for me. | ||
+ | |||
+ | 2) Some software, available for free | ||
+ | |||
+ | For PCs (Wintels, whatever), use [[http:// | ||
+ | |||
+ | There are good tools available for 68K Macs running OS9. Anything newer than that, and you're looking at command-line utilities. There is always emulation, but I have nothing of value to say about that. Maybe you can try looking at [[http:// | ||
+ | |||
+ | 3) Some Paper and a pencil would be nice. | ||
+ | |||
+ | |||
+ | |||
+ | ==== Sample Code ==== | ||
+ | |||
+ | Here is some sample code that you can play with once you have installed MPLab. I wrote it for simplicity and straightforwardness, | ||
+ | |||
+ | [[http:// | ||
+ | |||
+ | [[http:// | ||
+ | |||
+ | [[http:// | ||
+ | |||
+ | [[http:// | ||
+ | |||
+ | [[http:// | ||
+ | |||
+ | Note: I have recently noticed that some of these might have some tiny errors in them. They' | ||
+ | |||
+ | ==== Additional Information ==== | ||
+ | |||
+ | Microchip has LOTS of online data, so feel free to check it out beforehand. | ||
+ | |||
+ | [[http:// | ||
+ | |||
+ | [[http:// | ||
+ | |||
+ | [[http:// | ||
+ | |||
+ | We will have to share programmers. I have donated my old RS-232 Olimex to the lab, and there is also a PICKit2 there, or so I have been told. I also bought a [[http:// | ||
+ | |||
+ | {{:pic programmer.jpg}} | ||
+ | |||
+ | |||
+ | ==== The Latest: ==== | ||
+ | |||
+ | The class is happening, finally. | ||
+ | |||
+ | |||
+ | ==== Dev Board ==== | ||
+ | |||
+ | **--Dev boards will not be available for the class, but if you are interested, we can have a weekend build. | ||
+ | |||
+ | Dealing with electronics isn't very interesting if you can't get your hands dirty, so, I spent some time building a basic development board for the class. | ||
+ | |||
+ | Everything together costs about 10 bucks a board. (It turns out that all those dimes add up fast.) If you want to pay me back, that would be pretty cool. If you can't, that's cool, too. Don't sweat it. | ||
+ | |||
+ | The PCB version of the dev board is finished. | ||
+ | |||
+ | {{: | ||
+ | |||
+ | As soon as the boards are in, I'll assemble some kits and you can come in and build your dev board. | ||
+ | |||
+ | The eagle files are [[http:// | ||
microcontroller_basics.txt · Last modified: 2013/08/13 12:13 by 127.0.0.1