Re: Graphical Displays with PBP3
for parallel i/f the connections are as defined
'LCD defines begin here
' DEFINE LCD_BITS 4 'defines the number of data interface lines (4 or 8)
' DEFINE LCD_DREG PORTB 'defines the port where data lines are connected to
' DEFINE LCD_DBIT 0 'defines the position of data lines for 4-bit interface (0 or 4)
' DEFINE LCD_RSREG PORTB 'defines the port where RS line is connected to
' DEFINE LCD_RSBIT 6 'defines the pin where RS line is connected to
' DEFINE LCD_EREG PORTB 'defines the port where E line is connected to
' DEFINE LCD_EBIT 4 'defines the pin where E line is connected
' DEFINE LCD_COMMANDUS 1500 'defines the delay after LCDOUT statement
' DEFINE LCD_DATAUS 60 'delay in micro seconds
' DEFINE LCD_RWREG PORTB ' LCD read/write port
' DEFINE LCD_RWBIT 5 ' LCD read/write pin bit
' 'END of LCD DEFINES
for serial i/f the connections are the mssp sdi sdo sck pins plus what you pick for st7920_cs
the st7920_rst pin was not required in my tests.
for a 26k22 i used
'spi pins used
'st7920_rst var latc.0
st7920_cs var latc.1
'st7920_sck is latc.3
'st7920_sdi is latc.4
'st7920_sdo is latc.5
I'm having problems with the "st7920.pbpmod" code having duplicate subroutines???
there is no problem pbp just doesn't understand conditional compilation, ignore the warnings
Last edited by richard; - 20th September 2022 at 01:51.
Warning I'm not a teacher
Bookmarks