2012-01-17 07:34 AM
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-lcd2012-11-07 12:35 PM
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); #endifHD44780SetE(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.2012-11-07 04:34 PM
Ok, so leave
#define LCD_DATA 0x0FUL
2012-11-08 12:59 AM
ok with this compile without error. But the display show nothing.