Jump to content
43oh

Recommended Posts

HI

I got a nokia 5510 from sparkfun that i wanted to play around with but i cant find and libraries for the msp

specifically. does anyone have one or do i need to work on one from other libarys?

Thanks,Chris

 

I have one of these LCDs though on a different board. I wrote a "library" for it.

 

Put the 2 files in your project directory, Alter the #defines in PCD8544.c to reflect your pins (LCD_SCE etc), in your projects main source file #include "PCD8544.h" in your main() call LCD_init() to setup the lcd, then you can use LCD_gotoXY, LCD_writeString, LCD_writeChar etc.

 

This was my first "non blinky light" code written for the MSP and I haven't gone back to tidy/refactor but it works. It uses bit banging not the hardware SPI so there are many things that could be tidied up/optimised. Im also including a lil proggie that displays Temp/Vcc and ADC readings for Pin 1.3 and displays the results on the LCD. This code is a quick hack to test the library/get to know some of the ADC so don't take the code in it as anything other than a test framework.

 

Hope this helps.

 

Dan

 

Zipped source files :ADC_and_LCD.zip

 

P.S. I added the file as a zip file as the board disallows files with a .h extension

Link to post
Share on other sites
  • 1 year later...
  • 3 months later...
  • 4 months later...

 

I have one of these LCDs though on a different board. I wrote a "library" for it.

 

Put the 2 files in your project directory, Alter the #defines in PCD8544.c to reflect your pins (LCD_SCE etc), in your projects main source file #include "PCD8544.h" in your main() call LCD_init() to setup the lcd, then you can use LCD_gotoXY, LCD_writeString, LCD_writeChar etc.

 

This was my first "non blinky light" code written for the MSP and I haven't gone back to tidy/refactor but it works. It uses bit banging not the hardware SPI so there are many things that could be tidied up/optimised. Im also including a lil proggie that displays Temp/Vcc and ADC readings for Pin 1.3 and displays the results on the LCD. This code is a quick hack to test the library/get to know some of the ADC so don't take the code in it as anything other than a test framework.

 

Hope this helps.

 

Dan

 

Zipped source files :attachicon.gifADC_and_LCD.zip

 

P.S. I added the file as a zip file as the board disallows files with a .h extension

 

man, you're code is very cool !

Link to post
Share on other sites
  • 8 months later...
  • 8 months later...

Excellent code. I spent about half a day trying to interface a Nokia 5110 display to a TI MSP-EXP430F5438 board (with Bluetopia BT code) using SPI interface with no success. Before dusting off the O'scope to try to troubleshoot I gave your code a try and it worked the first time!

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...