News:

;) This forum is the property of Proton software developers

Main Menu

Use a 44780 4x40 LCD

Started by Piero55, Apr 24, 2022, 01:35 PM

Previous topic - Next topic

Piero55

I'm trying to use a 4x40 LCD which is a double 2x40 with 2x44780. I made a switch for EN1 and EN2 with NAND ports but the first one I use, positron correctly initializes its 44780 and works fine. When I open the way for EN2 or the second 44780 it doesn't work because only the 44780 has been initialized with EN1. the question is the following: is it possible to manually initialize the second 44780 with some command? Sorry my English, I use a translator

keytapper

I'm following up that project.
So if the program tries to declare the same lines it won't take the second declares. The intent is to address two displays which are governed by the same lines except for the Enable pin. That should be decided at the program source.


'lcd module connections
Declare LCD_Interface 4
Declare LCD_Data4_Pin PORTB.4
Declare LCD_Data5_Pin PORTB.5
Declare LCD_Data6_Pin PORTB.6
Declare LCD_Data7_Pin PORTB.7
Declare LCD_RSPin PORTA.4
Declare LCD_ENPin PORTA.2
Declare LCD_Lines 2
Declare LCD_Data4_Pin PORTB.4
Declare LCD_Data5_Pin PORTB.5
Declare LCD_Data6_Pin PORTB.6
Declare LCD_Data7_Pin PORTB.7
Declare LCD_RSPin PORTA.4
Declare LCD_ENPin PORTB.0
Declare LCD_Lines 2
Declare LCD_DataUs 50
Declare LCD_CommandUs 50
Ignorance comes with a cost

RGV250

Have a look at post 7 https://protoncompiler.com/index.php/topic,704.msg5021.html#msg5021
I think that is like what you are looking for and it is from Les so it has to be good.

Bob

Piero55

very well, thanks for the link. I made the change for hardware management, inserting an assempler line to clear the BPF flag. We begin to see some results. Thanks
Peter

keytapper

Quote from: RGV250 on Apr 24, 2022, 05:16 PMHave a look at post 7
Thanks Bob, that's a similar case.
I think I had to look better
Ignorance comes with a cost