Graphical Displays with PBP3


Results 1 to 40 of 115

Threaded View

  1. #11
    Join Date
    May 2013
    Location
    australia
    Posts
    2,656


    Did you find this post helpful? Yes | No

    Default 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

Similar Threads

  1. Replies: 3
    Last Post: - 1st January 2021, 21:28
  2. problem using Graphical LCD
    By Mostafa in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 18th July 2007, 18:15
  3. Graphical LCDs
    By T.Jackson in forum General
    Replies: 5
    Last Post: - 14th May 2007, 06:29
  4. Vb 6.0 Graphical plug in
    By rocky79 in forum Serial
    Replies: 0
    Last Post: - 8th March 2006, 18:42
  5. Graphical user interface
    By rocky79 in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 15th October 2005, 12:25

Members who have read this thread : 26

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts