cancel
Showing results for 
Search instead for 
Did you mean: 

Character LCD ( Help !)

leventeyigel52
Associate II
Posted on January 17, 2012 at 16:34

Hi,

I'm using STM32 F103 microcontroller and 2x16 character lcd.I want to  display strings on it.(HD 44780 driver)

I'm new on ARM microcontrollers and i couldn't find a demo project for this lcd.

Who can help me about it ?

Is there any demo project  in this site ? Can you give me a link or adress ?

#character-lcd
12 REPLIES 12
joesoftware
Associate II
Posted on November 07, 2012 at 21:35

it doesn't work :(

I have some warning 1 is in this function:

/*************************************************************************

 * Function Name: HD44780WrIO

 * Parameters: Int32U Data

 * Return: none

 * Description: Write to HD44780 I/O

 *

 *************************************************************************/

void HD44780WrIO (Int32U Data)

{

  // Write Data

#if HD4780_WR > 0

GPIO_InitTypeDef  GPIO_InitStructure;

  HD44780SetRW(0);

  GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;

  GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP;

 

GPIO_InitStructure.GPIO_Pin = LCD_DATA << LCD_DATA_SHIFT;

  GPIO_Init(LCD_DATA_PORT, &GPIO_InitStructure);

#endif

  HD44780SetE(1);

  LCD_DATA_PORT->BSRR = (  Data  & 0xF) << LCD_DATA_SHIFT;

  LCD_DATA_PORT->BRR  = ((~Data) & 0xF) << LCD_DATA_SHIFT;

  HD44780_BUS_DLY();

  HD44780SetE(0);

}

#if HD4780_WR > 0

Warning says Warning[Pe069]: integer conversion resulted in truncation.

Damned display.

Posted on November 08, 2012 at 01:34

Ok, so leave

#define LCD_DATA 0x0FUL

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
joesoftware
Associate II
Posted on November 08, 2012 at 09:59

ok with this compile without error. But the display show nothing.