8-bit LCD interfacing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-11-29 4:38 AM
Hi everyone I'm rather new with programming with STM32 controllers and I am currently using NUCLEO-L432KC. Currently I'm facing a problem with HAL_GPIO_WritePin() function. I am interfacing with a 16x2 LCD and I am trying to write to the RS pin via the function I have mentioned, however I am facing a problem where the RS isn't being set to the desired value I am providing. I have provided the value like so: HAL_GPIO_WritePin(RS_GPIO_Port, RS_Pin, rs);
Where I have given rs = 0 but the function is setting the value as 1. I have also provided the photo of the RS pin configuration from the IOC file.
Solved! Go to Solution.
- Labels:
-
STM32CubeIDE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-12-03 7:49 AM
With data lines, they will be bidirectional as he's using W\ pin. So he will change the configuration of the data line pins each time he switches from read to write.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-12-03 7:55 AM
Hi SofLit,
i think he is happy if he has a "Hello World" on his Display.
Reading Data from the Display is the next level ;) in the programming game.
padawan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-12-03 7:59 AM - edited ‎2024-12-04 6:06 AM
@padawan wrote:
Reading Data from the Display is the next level ;) in the programming game.
Indeed but my comment was to warn him if he will intend to use read/write. To start he needs to start with Write operation (writing to the LCD).
PS: I remember long time ago when I was a student (21 years ago), I programmed this kind of LCD just by using switches for learning purposes ;) . Times have changed ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-12-04 2:05 AM
PS: I remember long time ago when I was a student (21 years ago), I programmed this kind of LCD just by using switches ;). Times have changed ...
Yes, the good old days, ;)
My first contact with these displays was in the last millennium with a PIC controller and in assembler.
padawn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-12-04 2:09 AM
@padawan wrote:
My first contact with these displays was in the last millennium with a PIC controller and in assembler
They used to be a staple of 8051 forums ...
A complex system designed from scratch never works and cannot be patched up to make it work.

- « Previous
- Next »