• AVR Freaks

Hot!Noob looking for XC8 peripheral C Code libraries for 18F series

Author
t1d
Senior Member
  • Total Posts : 129
  • Reward points : 0
  • Joined: 2015/01/26 15:49:24
  • Location: 0
  • Status: offline
2019/09/18 23:00:57 (permalink)
0

Noob looking for XC8 peripheral C Code libraries for 18F series

Particularly for a clone 2004 LCD Display with an assumed HD44780 IC using 8-pin configuration.
 
I have done my homework and searched and searched. I am either using the wrong terminology or don't know the right terminology to use.
 
I think the 18F series would be using the Legacy Libraries for this application. So, is this what I need?

post edited by t1d - 2019/09/18 23:02:04

Attached Image(s)

#1

8 Replies Related Threads

    ric
    Super Member
    • Total Posts : 23819
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: Noob looking for XC8 peripheral C Code libraries for 18F series 2019/09/18 23:24:40 (permalink)
    +1 (1)
    There's plenty of example code, but no prebuilt libraries, because of the multitude of different ways the LCD can be connected to the PIC.
     

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #2
    t1d
    Senior Member
    • Total Posts : 129
    • Reward points : 0
    • Joined: 2015/01/26 15:49:24
    • Location: 0
    • Status: offline
    Re: Noob looking for XC8 peripheral C Code libraries for 18F series 2019/09/18 23:40:56 (permalink)
    0
    ric
    There's plenty of example code, but no prebuilt libraries, because of the multitude of different ways the LCD can be connected to the PIC.
    Thanks, Ric. You are helping me work on this, over at your place. I keep seeing references to these libraries. They are used in code. They are said to be Microchip libraries, but no link is given. LCD.c, LCD.h, XLCD, etc...


    #3
    ric
    Super Member
    • Total Posts : 23819
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: Noob looking for XC8 peripheral C Code libraries for 18F series 2019/09/18 23:47:04 (permalink)
    0
    They may call them libraries, but they are actually code you have to include in your project, and edit to suit how you have connected your LCD.
    I think you'll find them in the old PLIB libraries. Download a copy of XC8 v1.34 from the archive to get the whole thing.
    https://www.microchip.com/development-tools/pic-and-dspic-downloads-archive
     

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #4
    t1d
    Senior Member
    • Total Posts : 129
    • Reward points : 0
    • Joined: 2015/01/26 15:49:24
    • Location: 0
    • Status: offline
    Re: Noob looking for XC8 peripheral C Code libraries for 18F series 2019/09/18 23:57:30 (permalink)
    0
    Yes, they have also been called PLIB. Great! Thank you!
    Any tips for using it with the latest versions of MPLab X v5.+ and XC8?
    #5
    vloki
    Jo, alla!
    • Total Posts : 6806
    • Reward points : 0
    • Joined: 2007/10/15 00:51:49
    • Location: Germany
    • Status: offline
    Re: Noob looking for XC8 peripheral C Code libraries for 18F series 2019/09/19 00:01:11 (permalink)
    +1 (1)
    t1dunn
    I keep seeing references to these libraries. They are used in code. They are said to be Microchip libraries, but no link is given. LCD.c, LCD.h, XLCD, etc...

    You may install the old PLIB, to get and can use the source files.
    The lib itself can not be used with newer compiler versions than v1.34!
    XLCD functions are in the installation folder ../sources/plib18/plib/XLCD.
     
    There are plenty of alternative libraries. I posted one here
    If you get compiler errors I can post the actual version that I use with XC8 C99

    Uffbasse !
    #6
    t1d
    Senior Member
    • Total Posts : 129
    • Reward points : 0
    • Joined: 2015/01/26 15:49:24
    • Location: 0
    • Status: offline
    Re: Noob looking for XC8 peripheral C Code libraries for 18F series 2019/09/19 01:45:56 (permalink)
    0
    vloki
    You may install the old PLIB, to get and can use the source files.
    The lib itself can not be used with newer compiler versions than v1.34!
    XLCD functions are in the installation folder ../sources/plib18/plib/XLCD.

     Well, that is a very important tip. Thank you.
    vloki
    There are plenty of alternative libraries. I posted one here
    If you get compiler errors I can post the actual version that I use with XC8 C99
    I would very much appreciate the C99 updated version. I'm sure others would to. Please and thank you.


    #7
    vloki
    Jo, alla!
    • Total Posts : 6806
    • Reward points : 0
    • Joined: 2007/10/15 00:51:49
    • Location: Germany
    • Status: offline
    Re: Noob looking for XC8 peripheral C Code libraries for 18F series 2019/09/20 03:50:37 (permalink)
    0
    t1dunn
    I would very much appreciate the C99 updated version. I'm sure others would to.

    Ok, tried to update the lcd_config.h to get it compatible with actual version of lcd lib.
    and posted a new version...

    Uffbasse !
    #8
    t1d
    Senior Member
    • Total Posts : 129
    • Reward points : 0
    • Joined: 2015/01/26 15:49:24
    • Location: 0
    • Status: offline
    Re: Noob looking for XC8 peripheral C Code libraries for 18F series 2019/09/20 12:05:00 (permalink)
    0
    vloki
    Ok, tried to update the lcd_config.h to get it compatible with actual version of lcd lib.
    and posted a new version...
    Got it, Vloki. Thank you!


    #9
    Jump to:
    © 2019 APG vNext Commercial Version 4.5