Close

My Target Display... Finally

A project log for Universal Glucometer

Did your test strips just get more expensive? Has the drug store run out of strips for YOUR meter? Like to be able to use any test strip?

tom-meehanTom Meehan 07/24/2016 at 02:510 Comments

I've been going back and forth on whether to use an HD44780 16x2 LCD or a Nokia 5110 LCD (which is what I want to use in the final device) while developing code. Testing an HD44780 was not to difficult and I thought it might be even easier since there is some support for these in the XC8 compiler. Looking further, I found that while XC8 has drivers for these displays the drivers are for the PIC18 series not the PIC16 that I'm using.

So, I went back to looking at how I could interface the Nokia 5110 LCD's and came across Nokia 5110 Example C source – PIC16F . It's actually written in C using the XC8 compiler and is designed for the PIC16F series.

My first few attempts at modifying the code failed (it wouldn't even compile). After thinking about it, reading more, working through some lessons on using XC8, I finally had some inspiration (since I understood the code a bit better) and finally got it to work.

After I clean up the code a bit, and add in additional comments, I post it up on the Github project page

Discussions