Would you like to react to this message? Create an account in a few clicks or log in to continue.

You are not connected. Please login or register

HD44780 and floating RW pin

2 posters

Go down  Message [Page 1 of 1]

1HD44780 and floating RW pin Empty HD44780 and floating RW pin Thu Apr 14, 2022 12:35 am

n3645



In the simulator, HD44780 works fine with floating RW pin. In reality, it should be low or high, otherwise the state is undefined. I would have to test my LCD behavior, but I'm almost certain it will not be functional if the pin floating...



Last edited by arcachofo on Thu Apr 14, 2022 10:28 pm; edited 1 time in total (Reason for editing : Mark as unsolved (red color))

2HD44780 and floating RW pin Empty Re: HD44780 and floating RW pin Thu Apr 14, 2022 9:08 am

n3645



And another thing: grounding one or all D0-D3 pins will probably prevent correct initialization in 4-bit mode. And similar... Should be tested on real device, but in theory, these should be problematic parts.

3HD44780 and floating RW pin Empty Re: HD44780 and floating RW pin Thu Apr 14, 2022 7:31 pm

arcachofo

arcachofo

In the simulator, HD44780 works fine with floating RW pin. In reality, it should be low or high, otherwise the state is undefined. I would have to test my LCD behavior, but I'm almost certain it will not be functional if the pin floating...
Yes, in the simulator unconnected pins read low.
Simulating the behavior of floating pins is out of the scope of this simulator by now.

And another thing: grounding one or all D0-D3 pins will probably prevent correct initialization in 4-bit mode. And similar... Should be tested on real device, but in theory, these should be problematic parts.
I don't understand this one.

4HD44780 and floating RW pin Empty Re: HD44780 and floating RW pin Thu Apr 14, 2022 9:44 pm

n3645



For the second one, I have read somewhere that if use 4-bit mode, grounding unused pins D0-D3 may result in LCD initialization failure. Never tested this. Or, perhaps, that was related to another controller...

5HD44780 and floating RW pin Empty Re: HD44780 and floating RW pin Thu Apr 14, 2022 10:28 pm

arcachofo

arcachofo

For the second one, I have read somewhere that if use 4-bit mode, grounding unused pins D0-D3 may result in LCD initialization failure. Never tested this. Or, perhaps, that was related to another controller...
I didn't know about this.
Looks like RS, RW, D0-D7 have pullups, so if unconnected they should read High.
Then RW unconnected is not floating, it's High, so it's wrong in simulide.

6HD44780 and floating RW pin Empty Re: HD44780 and floating RW pin Thu Apr 14, 2022 10:41 pm

n3645



Perhaps for original HD44780, but for cheaper Chinese "clones", may be different...

Though, with these Chinese clones I had a problem during initialization, because of timing issue - they are much slower than original controller. I have barely found datasheet for that particular model from manufacturer, then I have noticed differences.

Perhaps is similar issue having pull ups or not on some pins.

7HD44780 and floating RW pin Empty Re: HD44780 and floating RW pin Thu Apr 14, 2022 11:42 pm

n3645



BTW, the LCD model I have, have "ST7066U or compatible" by datasheet (it is covered COB by epoxy). Thus, it is not quite clear, it should be mostly compatible with HD44780...

BTW, another thing in simulator is to show squares when power is on, until initialization finish correctly on original HD44780. On some clones that is not present...

8HD44780 and floating RW pin Empty Re: HD44780 and floating RW pin Fri Apr 15, 2022 4:37 am

arcachofo

arcachofo

Perhaps for original HD44780, but for cheaper Chinese "clones", may be different...
Well.. we should stick to original HD44780 datasheet.

BTW, another thing in simulator is to show squares when power is on, until initialization finish correctly on original HD44780.
Ok, I will have a look to this.

9HD44780 and floating RW pin Empty Re: HD44780 and floating RW pin Sat Apr 16, 2022 12:18 am

arcachofo

arcachofo

Pullups implemented at Rev 1081.

Now RW needs to be driven, floating RW will not work.

10HD44780 and floating RW pin Empty Re: HD44780 and floating RW pin Sun Apr 17, 2022 6:25 am

n3645



Seems that now LCD behavior is unstable. Previous project I tested with now randomly works, randomly show garbage or doesn't work at all on multiple power button hits...

This was in 4-bit LCD mode. Though, 8-bit mode doesn't work at all.

BTW, I have no idea how to attach here zip file with sim file and source...

11HD44780 and floating RW pin Empty Re: HD44780 and floating RW pin Sun Apr 17, 2022 8:43 am

arcachofo

arcachofo

Seems that now LCD behavior is unstable. Previous project I tested with now randomly works, randomly show garbage or doesn't work at all on multiple power button hits...

This was in 4-bit LCD mode. Though, 8-bit mode doesn't work at all.
I noticed, but I think that's a problem with AVRs.
I need some more testing to find the cause.

BTW, I have no idea how to attach here zip file with sim file and source...
https://simulide.forumotion.com/t383-how-to-add-pictures-and-attachnents-to-your-posts

12HD44780 and floating RW pin Empty Re: HD44780 and floating RW pin Sun Apr 17, 2022 8:52 am

n3645



It should work fine with AVRs, both 4-bit and 8-bit. Perhaps some modules may be disable, but never had some issue with.

Funny, I did not seen "Attach file" extension, it is on other half of the screen....
Attachments
HD44780 and floating RW pin AttachmentLCDTest8bit_lib.zip
You don't have permission to download attachments.
(4 Kb) Downloaded 2 times

13HD44780 and floating RW pin Empty Re: HD44780 and floating RW pin Sun Apr 17, 2022 9:08 am

arcachofo

arcachofo

Same than in my test: first time works, next times doesn't.

It is realted with RS input, first time it goes low at simulation start, next times it doesn't, even if not connected to LCD.
So I'm almost sure it is an AVR Pin issue.

14HD44780 and floating RW pin Empty Re: HD44780 and floating RW pin Sun Apr 17, 2022 9:21 am

n3645



Disable 8-bit and use 4-bit - first time may work when app is opened, second time will show garbage or nothing at all...

Some init values in simulator may missing, or timing is not correct...

Original driver auto-initialization on power on is in 8-bit, meaning it should work without init sequence...

15HD44780 and floating RW pin Empty Re: HD44780 and floating RW pin Sun Apr 17, 2022 9:39 am

arcachofo

arcachofo

First I have to solve the problem with AVR Pin, without this is not possible to test the LCD with AVRs.
HD44780 is working OK with PICs.

16HD44780 and floating RW pin Empty Re: HD44780 and floating RW pin Tue Apr 19, 2022 3:22 am

arcachofo

arcachofo

Problem with AVR Pin solved at Rev 1094.

Sponsored content



Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum