7 years, 5 months ago.

displaying the output in a 16 x 2 LCD

I have viewed my calculated answer in Hyperterminal and am using LCD1768. While i tried displaying the same output in the LCD nothing appears on the screen.The LCD is lit and all other statements work perfectly. What might be the possible reason?? Has it something to do with the baud rate? Please help!

2 Answers

7 years, 5 months ago.

I'm not sure what software you are using for the LCD. Is the wiring OK, can you get any text at all on the display? The LCD is rather slow and you cant update it too fast, you may not be able to read everything when you change the text too fast. However, the last written data should remain on the display unless you clear the screen again.

Accepted Answer

Nothing appears on the screen. I was trying a simple "hello world" program itself but it too failed to show me anything on screen. also I am doubtful about which pins in mbed board to be connected to the data pins of the LCD to get the display.

#include "mbed.h"
#include "TextLCD.h"

TextLCD g_lcd(p15, p16, p17, p18, p19, p20);  // RS, E, DB4, DB5, DB6, DB7

int main()
    g_lcd.locate(0, 0);
    g_lcd.printf( "Hellooo World!!!");
posted by sneha jay 25 Feb 2014

Please use the <<code>> and <</code>> tags around your posted code to keep it readable.

The cookbook page on LCDs should give you more info on how to connect the standard text LCDs to mbed. First make sure power and contrast voltage are OK. Then connect the correct mbed pins to the proper LCD pin. In your case mbed p15 should go to LCD pin 4 for RS etc Just to make sure that you have standard HD44780 display identify the exact make and type of the display. You then need to check the datasheet for the display and compare pinout with the table given on the cookbook page.

Give a shout when that doesnt work for you.

posted by Wim Huiskamp 27 Feb 2014
sneha jay
7 years, 4 months ago.

thanks a lot... it worked... :)