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
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.