LCD OPERATION ERROR

General discussion on mikroBasic PRO for ARM.
Post Reply
Author
Message
vladh52
Posts: 13
Joined: 22 Sep 2018 07:29

LCD OPERATION ERROR

#1 Post by vladh52 » 09 Mar 2023 12:43

Hello everyone, I decided to study Basic in relation to stm32 controllers. And at the very beginning I ran into a problem that I can't solve in any way. The thing is, I have a debugging board on which the STM32F407ZE controller is installed. I decided to master the connection of the controller to the LCD. For this I have a WEH002004blpp5n display. I usually model all my practical examples in Proteus. But since there is no such controller in Proteus now, I decided to separate with a controller close in parameters, i.e. STM32F401VC. As a result, the computer model performs everything as I wanted, but the live circuit does not work correctly! This inequality lies in the fact that the output of characters on the screen goes in the opposite direction, i.e. if letters should usually be written from left to right, then in my case they are written from right to left and instead of the inscription – "STM32F401", it is written – "104F23MTS". Why is this happening. What is interesting is the same story with "mikroC PRO for ARM". Everything is correct in the model, but in the "live" scheme – on the contrary.
Here is the code with the model in Proteus
LCD_STM32F401_2.rar
(182.63 KiB) Downloaded 29 times

AntiMember
Posts: 135
Joined: 02 Jan 2020 19:00

Re: LCD OPERATION ERROR

#2 Post by AntiMember » 10 Mar 2023 18:54

Lcd_Init() ' Initialize LCD
Delay_ms(500)
// Lcd_Cmd(_LCD_CLEAR) ' Clear display
Lcd_Cmd(0x08)
Lcd_Cmd(0x17)
Lcd_Cmd(0x01)
Lcd_Cmd(0x0C)
Delay_ms(100)
Lcd_Cmd(0x06)
Lcd_Cmd(_LCD_CURSOR_OFF) ' Cursor off
LCD_Out(1,1,"STM32F401") ' Write text in first row
WS0010_rev_003.pdf
(1.13 MiB) Downloaded 33 times

vladh52
Posts: 13
Joined: 22 Sep 2018 07:29

Re: LCD OPERATION ERROR

#3 Post by vladh52 » 11 Mar 2023 02:42

AntiMember, thank you so much for the specified error. Otherwise, I already wanted to blame the compiler. This is the second time I've had trouble with this display. I need to read the description of working with this display more carefully. Thanks!

Post Reply

Return to “mikroBasic PRO for ARM General”