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

    Well, I moved E and RS to RB0 and RB1 ... it still works.

    You might try turning that LED around and see if PORTB.0 will drive the output both ways.
    It could be that half of the output stage is toasted.

    And for the config error, you just need to comment the default configs in the .inc file.
    See this page ... http://melabs.com/support/config_defaults.htm
    DT

  2. #2
    Join Date
    May 2010
    Posts
    9


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Darrel Taylor View Post
    It could be that half of the output stage is toasted.
    Thanks again, Darrel.

    You will no doubt be chuffed to hear that your prognosis was 100% correct.
    I tried your LED suggestion and can confirm that PortB.0 was indeed dead - both ways. I've just taken delivery of some new '877s. Your LCD_AnyPin and all Ports are now working perfectly.

    I think I owe you an apology for sending you all around the houses in the first place; I really should have had the noodle to check that port with a LED before bothering you. For what it's worth, I'm sorry for wasting your time, but I do appreciate you coming back just the same.

    From myself, and on behalf of all the other members here, top thanks to you for sharing your work, and top thanks for sharing your much-appreciated know-how.

    Thanks also for the heads-up regarding the Config thing.

  3. #3
    Join Date
    Nov 2005
    Location
    Perth, Australia
    Posts
    429


    Did you find this post helpful? Yes | No

    Default

    Is there something I can do that will make LCD_AnyPin work with PBPL?

    This is the test code im using.

    Code:
    LCD_DB4         VAR PORTA.4
    LCD_DB5         VAR PORTA.2
    LCD_DB6         VAR PORTA.3
    LCD_DB7         VAR PORTB.0
    LCD_RS          VAR PORTA.0
    LCD_E           VAR PORTA.1
    LCD_Lines       CON 2    
    LCD_DATAUS      CON 50 
    LCD_COMMANDUS   CON 2000
    
    INCLUDE "LCD_AnyPin.pbp"
    
    LCDOut $FE,1,$FE,2,"Hello World!"
    
    END
    It compiles and works fine with regular PBP, but I get this error when I use PBPL:

    Code:
    ERROR: (HighJacked-LCDOUT Not found in PBPPIC??.LIB)
    Any ideas? I suspect I'll need to edit another PBP file, but i'm not sure.
    "I think fish is nice, but then I think that rain is wet, so who am I to judge?" - Douglas Adams

  4. #4
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Kamikaze47 View Post
    Is there something I can do that will make LCD_AnyPin work with PBPL?
    Any ideas? I suspect I'll need to edit another PBP file, but i'm not sure.
    You are right. You need to edit pbppi18l.lib as you did pbppic18.lib, and it should work. Don't forget to save a copy, just in case.
    http://www.scalerobotics.com

  5. #5
    Join Date
    Nov 2005
    Location
    Perth, Australia
    Posts
    429


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by scalerobotics View Post
    You are right. You need to edit pbppi18l.lib as you did pbppic18.lib, and it should work. Don't forget to save a copy, just in case.
    Thanks scalerobotics. That worked
    "I think fish is nice, but then I think that rain is wet, so who am I to judge?" - Douglas Adams

  6. #6
    sinoteq's Avatar
    sinoteq Guest


    Did you find this post helpful? Yes | No

    Default Highjack time :)

    Hi
    I am running out of pins so it is time to implement LCD_Anypin but I have a question. Do I need the standard PBP defines also? You know the DEFINE LCD_REG, DEFINE LCD_BITS and so on.

    I want to interface a 4 lines 16 characters display to my project using a 4 bit databus.
    My guess is I need DEFINE LCD_BITS 4 and DEFINE LCD_LINES 4


    This will be the second DT code I include, the fist one is of course DT-Interrupts and I bet LCD_Anypin will be equally usefull.

  7. #7
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Read the sample code and comments here
    http://www.picbasic.co.uk/forum/show...3345#post43345

    1 = 2
    2 = 4
    Dave
    Always wear safety glasses while programming.

  8. #8
    Join Date
    Jan 2009
    Posts
    78


    Did you find this post helpful? Yes | No

    Default pic16F1933 and LCD_AnyPin

    Quote Originally Posted by Kamikaze47 View Post
    Is there something I can do that will make LCD_AnyPin work with PBPL?

    This is the test code im using.

    Code:
    LCD_DB4         VAR PORTA.4
    LCD_DB5         VAR PORTA.2
    LCD_DB6         VAR PORTA.3
    LCD_DB7         VAR PORTB.0
    LCD_RS          VAR PORTA.0
    LCD_E           VAR PORTA.1
    LCD_Lines       CON 2    
    LCD_DATAUS      CON 50 
    LCD_COMMANDUS   CON 2000
    
    INCLUDE "LCD_AnyPin.pbp"
    
    LCDOut $FE,1,$FE,2,"Hello World!"
    
    END
    It compiles and works fine with regular PBP, but I get this error when I use PBPL:

    Code:
    ERROR: (HighJacked-LCDOUT Not found in PBPPIC??.LIB)
    Any ideas? I suspect I'll need to edit another PBP file, but i'm not sure.
    I have the same problem (ERROR: (HighJacked-LCDOUT Not found in PBPPIC??.LIB) with a 16F1933 using pbp2.60 ... are there any other things wich have to be changed into the libraries ?

    Best Regards,
    Bogdan

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


    Did you find this post helpful? Yes | No

    Default

    Each family of PIC's has it's own library.

    PBPPIC14.lib is for the normal 14-bit cores (12, 16F).
    PBPPIC18.lib is for the 18F's.
    PBPPI18L.lib is for 18F's with PBPL (longs).
    And PBPPI14E.lib is the enhanced 14-bit cores.

    The HighJack routines should be installed in the corresponding .lib file for the PIC you want to use LCD_AnyPin with.

    Once again ... make a copy of the file before editing it !!!!
    DT

  10. #10
    Join Date
    Jan 2009
    Posts
    78


    Did you find this post helpful? Yes | No

    Default fixed

    Thank You,
    I was changing the PBPPIC14.LIB instead of the PBPPI14E.LIB .... NOW IS FINE

    once again Thank You

  11. #11
    Join Date
    Jan 2009
    Posts
    78


    Did you find this post helpful? Yes | No

    Default LCDOUT for other LCD controllers than HD44780

    Do you think is a way to use LCDOUT (using LCD_AnyPin) to a HD66717 lcd module considering the diferences from HD44780 ?

    HD44780 vs HD66717.pdf

  12. #12
    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
    Each family of PIC's has it's own library.

    PBPPIC14.lib is for the normal 14-bit cores (12, 16F).
    PBPPIC18.lib is for the 18F's.
    PBPPI18L.lib is for 18F's with PBPL (longs).
    And PBPPI14E.lib is the enhanced 14-bit cores.

    The HighJack routines should be installed in the corresponding .lib file for the PIC you want to use LCD_AnyPin with.

    Once again ... make a copy of the file before editing it !!!!

    For PIC16F737, I am getting "ERROR: (HighJacked-LCDOUT Not found in PBPPIC??.LIB"

    The HighJack routine is in all the files needed.

    What am I missing?

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

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


    Did you find this post helpful? Yes | No

    Default Re: LCD_AnyPin.pbp

    Do you have more than 1 installation of PBP?
    MCS or MPLAB may be looking at a different folder.

    Or the routines may be inserted in the wrong lines of the .lib file.
    DT

Members who have read this thread : 3

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