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

jaksonlee's picture

Offline

Joined: Nov 07, 2019

Replies: 124

LCD Display to STM32f103c8t6 microcontroller, i.e we will be Interfacing 16X2 LCD Display with STM32 Bluepill Microcontroller. The LCD display is an important component while interfacing any sensors and displaying the output value. The 16X2 Alphanumeric display is most popular display in Embedded Electronics System.
Here we will be programming STM32 via Arduino IDE and uploading the code to STM32 via bootloader method. You can also upload code using STLink Debugger or USB-TTL Converter. Before starting the LCD & STM32 interfacing you.

LCD (Liquid Crystal Display) screen is an electronic display module and find a wide range of applications. A 16×2 LCD display is very basic module and is very commonly used in various devices and circuits. A 16×2 LCD means it can display 16 characters per line and there are 2 such lines. In this LCD each character is displayed in 5×7 pixel matrix. This LCD has two registers, namely, Command and Data.

 

16x2 LCD Display

The command register stores the command instructions given to the LCD. A command is an instruction given to LCD to do a predefined task like initializing it, clearing its screen, setting the cursor position, controlling display etc. The data register stores the data to be displayed on the LCD. The data is the ASCII value of the character to be displayed on the LCD.

Muhammad Umar's picture

Offline

Joined: Apr 09, 2020

Replies: 55

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

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.