Programming the PIC16F819 on an LCD03 adapter using a PICkit 2

I was looking around the office for a PIC16F microcontroller to try out some sample code, but I couldn’t find any lying around. My colleague Richard Hayes gave me a little circuit board which is an adapter for serial to HD44780 (that’s the widely used Hitachi LCD display interface). It uses a PIC16F819 to do the conversion for serial to the LCD interface and Richard reckoned that one five-pin block of pin connections contained everything needed to program using a PICkit 2. I haven’t actually programmed it yet, but it looks like he’s right.

The adapter board has “LCD03” written on it and although I can’t find the exact model online, it looks like it’s an older version of the LCD05 adapter shown at the bottom of this page. Whenever I’ve seen one of these LCD03 modules before it has always been attached to an LCD display, like the one shown below which I’ve just come across on my desk.

LCD03 adapter board attached to Hitachi LCD module

I’ll update this post once I’ve programmed the PIC, but for the time being these are the connections for the PICkit 2:

Diagram showing connections between PIC18F819 circuit board and PICkit 2

Link to editable Inkscape SVG version of connection diagram.

Once I had soldered a 5-pin header onto the LCD03 board, this is how I connected it to the PICkit 2:

PICkit 2 connected to PIC16F819 on LCD03 adapter board

To check that the connection was working, I used the PICkit 2 software application to try to read the contents of the PIC’s program memory. As shown below, although the connection was successful, the program memory could not be read because “code protect” is enabled. It remains to be seen whether the chip can still be programmed.

Screenshot of PICkit 2 software application with PIC16F819 connected

This entry was posted in Uncategorized and tagged , , , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s