Problem with 16x2 LCD and stm

Ahmad's picture

Offline

Joined: Mar 25, 2020

Replies: 0
Problem with 16x2 LCD and stm
March 25, 2020 - 1:52pm

Hello to all friends.
I'm having problems with the 16x2 lcd in keil compiler.
The program for this purpose is as follows:

LCD_begin8BIT(GPIO_TypeDef* PORT_RS_E, uint16_t RS, uint16_t E, GPIO_TypeDef* PORT_LSBs0to4, uint16_t D0, uint16_t D1, uint16_t D2, uint16_t D3, GPIO_TypeDef* PORT_MSBs4to7, uint16_t D4, uint16_t D5, uint16_t D6, uint16_t D7);

But I don't fully understand these commands.
Help me for example.
thank you

Muhammad Umar's picture

Offline

Joined: Apr 09, 2020

Replies: 55
16*2 LCD
May 15, 2020 - 5:02pm

Similar to the Arduino IDE, where we use lcd.begin(16,2), here in Keil compiler, the LCD is initialized and there mentioned low significant bits and as well as the most significant bits. As in 16 x 2 LCD, there are 8 data pins from D0 to D7 the low significant are D0 to D3 and similarly most significant D4 to D7. Here I would like to recommend you to connect with the SSLA platform, from where you can get further assistance about your queries from their technical support team.

Technical Shahzad's picture

Offline

Joined: May 23, 2020

Replies: 48
LCD & STM Problem
May 27, 2020 - 3:54pm

Similar to the Arduino IDE, where we use lcd.begin(16,2), here in Keil compiler, the LCD is initialized and there mentioned low significant bits and as well as the most significant bits. As in 16 x 2 LCD, there are 8 data pins from D0 to D7 the low significant are D0 to D3 and similarly most significant D4 to D7. Here I would like to recommend you to connect with the Sierra Software Ltd. platform, from where you can get further assistance about your queries from their technical support team.