Sunday, January 7, 2007

It lives!

I've finally gotten the ICD2 programmer/debugger hooked up to the pc and a PIC. At first, nothing worked, but then I discovered that I had reversed the wiring-scheme from the ICD2 to the breadboard. Once I got that sorted out, everything worked fine.

Here is a picture of the breadboard with the PIC connected to the ICD2 (Note the weather-beaten batterypack on the right; it is at least fifteen years old, and is starting to show its age :-) :

And here is a picture of the PIC running in stand-alone mode.

All that this first program did was to blink the red LED on and off. Not very exiting, but it tells me that everything is set up correctly. I really like the MPLAB IDE software and the ICD2 debugger: You can specify breakpoints in your code, single-step through the program, watch/modify variables, etc, just as you can when debugging a pc-program in VisualStudio.

The next goals are:
- hooking up at least 8 LEDs (for debug output)
- hooking up some switches and a couple of pot-meters
- controlling a servo
- reading an ADC input port

0 comments: