Jump to content
The_YongGrand

Very Basic HD44780 driver for Stellaris LaunchPad

Recommended Posts

Here's a very basic HD44780 driver for Stellaris Launchpad.

 

Supports up to 20x4 LCD and a full PORTB register is used. Due to the nature of the GPIOPinWrite function which uses masking and whatnots, extra code on the driver will be written in the future to accomodate such functions.

 

Uses two files: hd44780_lp.c and hd44780_lp.h

 

An example is in the attachment. It's called "lab2" because I fooled around with the Stellaris Launchpad Workbook earlier.

 

Note: Please refer to online tutorials on the HD44780 connections. :)

 

Comments are greatly appreciated!

 

post-325-14264605153082_thumb.jpg

lab2_revised.zip

Share this post


Link to post
Share on other sites

Thanks! Put up some pics :)

Moving this to "Code Vault"

 

Thanks. Added a main pic. This one uses a 20x4 LCD and I added a few phrases to fill up the screen. :)

 

Edit: To those who have downloaded and tested the code just to find boring dark boxes on the screen, I made a careless mistake in the header file. I've fixed the header file again - please download again. Apologies for the inconvenience.

Share this post


Link to post
Share on other sites

I've just try to use your driver with my display.

 

Something went wrong.

I need a little bit help/hint.

 

I assume that display is OK since it is working well with arduino.

 

Hello there,

 

Is it the latest "lab2" you have downloaded? Because the older one doesn't work.

 

Plus, are the connections to the Launchpad tight? Sometimes loose connections will cause the LCD not to start. :)

Share this post


Link to post
Share on other sites

Unfortunately still display doesn't work.

 

One additional question. Where do you connect RW pin of the LCD? Is it just floating?

 

Edit: I've just grab another 16x2 LCD and there is exactly the same effect. Maybe then it is some kind of settings in your Code Composer? Did you set something in your project what could be not set automatically after import?

Share this post


Link to post
Share on other sites

Hi,

 

I have a hard time understand the pins assignment on the launch pad (first time user), Can you help?

 

For example:

 

 

#define RS GPIO_PIN_0 Is this conect to PD0 ????

#define E GPIO_PIN_1 Is this conect to PD1 ????

#define D4 GPIO_PIN_4 ??

#define D5 GPIO_PIN_5 ??

#define D6 GPIO_PIN_6 ??

#define D7 GPIO_PIN_7 ??

 

Thanks for your help.

Share this post


Link to post
Share on other sites

Hi,

 

I have a hard time understand the pins assignment on the launch pad (first time user), Can you help?

 

For example:

 

 

#define RS GPIO_PIN_0 Is this conect to PD0 ????

#define E GPIO_PIN_1 Is this conect to PD1 ????

#define D4 GPIO_PIN_4 ??

#define D5 GPIO_PIN_5 ??

#define D6 GPIO_PIN_6 ??

#define D7 GPIO_PIN_7 ??

 

Thanks for your help.

 

I don't have one of these LCDs but at the top he says Full port B used.. So I would read those as GPIO_PIN_1 is PB1 and so on..

Share this post


Link to post
Share on other sites

Hi All ---

 

Managed to get the LCD driver working -- Thanks for the module !

 

> In the LCD module, can you just print one or two characters, then move the cursor to a new location and put another character?

 

I am considering using this driver to display temperatures.

 

Have made more progress in 4 days with Stellaris than a couple of months with STM32.

 

Thanks to all those who worked hard integrating Stellaris with Linux and Eclipse.

 

--Gary

Share this post


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...