Character LCD ( Help !)
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2012-01-17 07:34 AM
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
Labels:
- Labels:
-
LCD-LTDC
12 REPLIES 12
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2012-11-07 12:35 PM
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); #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.Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2012-11-07 04:34 PM
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..
Up vote any posts that you find helpful, it shows what's working..
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2012-11-08 12:59 AM
Posted on November 08, 2012 at 09:59
ok with this compile without error. But the display show nothing.

- « Previous
-
- 1
- 2
- Next »