LCD_AnyPin.pbp


+ Reply to Thread
Results 1 to 40 of 113

Thread: LCD_AnyPin.pbp

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default Re: LCD_AnyPin.pbp

    The library file used with the PIC16F737 is PBPPIC14.lib
    If it compiles for other 16F's like an 877a then I don't see a reason for it to not compile for the 737.

    Do you have any LCDOUT commads in your program? Or are you trying to compile the include by itself?

    If there are no LCDOUT statements, the HighJack routines will not be included.
    DT

  2. #2
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default Re: LCD_AnyPin.pbp

    Quote Originally Posted by Darrel Taylor View Post
    The library file used with the PIC16F737 is PBPPIC14.lib

    If there are no LCDOUT statements, the HighJack routines will not be included.
    There is the issue.

    In fact, it was among my notes, but I missed it.

    Problem solved.

    Thank you Darrel.
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

  3. #3
    Join Date
    Feb 2011
    Posts
    14


    Did you find this post helpful? Yes | No

    Default Re: LCD_AnyPin.pbp

    Is it possible to take this 1 step further and support LCDs with 2 Enable pins?

  4. #4
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Yes, we've done that.

    If you don't need to scatter the data bus pins, you can do it with this ...
    http://www.picbasic.co.uk/forum/show...=2388#post2388

    Or if the data bus need to be scattered, there's this thread ...

    In particular post #35, but read the whole thread.
    http://www.picbasic.co.uk/forum/showthread.php?t=7596
    DT

  5. #5
    Join Date
    Jul 2011
    Posts
    14


    Did you find this post helpful? Yes | No

    Default Re: LCD_AnyPin.pbp

    Hi,

    I have try with succes the library but I have a strange error. I have compiled this simple part of code:

    Code:
    LCD_DB4         var PORTB.1
    LCD_DB5         vAR PORTB.2
    LCD_DB6         VAR PORTB.3
    LCD_DB7         VAR PORTB.4
    LCD_RS          VAR PORTB.5
    LCD_E           VAR PORTC.5
    LCD_LINES       CON 1
    LCD_DATAUS      CON 50
    LCD_COMMANDUS   CON 1500
    OSC             con 20
    
    TRISA.0 = 1
    TRISB = 0
    TRISC = 0
    
    INCLUDE "LCD_AnyPin.pbp"
    
    pause 500
    lcdout $FE,1
    pause 250
    
    Main:
        lcdout $FE, $80, "Abcdef"
    Ever:
        high PORTA.1
        PAUSE 500
        LOW PORTA.1
        PAUSE 500
    GOTO Ever
    When I run this I see odd things like "AAdfg" or " dAfg" etc etc. I think that is a timing error, you have suggestion for this kind of error?

    Thank you (and sorry for my bad english).

  6. #6
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default Re: LCD_AnyPin.pbp

    What is this "OSC con 20" doing in there?
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

  7. #7
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,133


    Did you find this post helpful? Yes | No

    Default Re: LCD_AnyPin.pbp

    Also use these:

    Code:
    DEFINE LCD_COMMANDUS 2000
    DEFINE LCD_DATAUS 100
    NOT these:
    Code:
    LCD_DATAUS      CON 50
    LCD_COMMANDUS   CON 1500
    Ioannis

Members who have read this thread : 11

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