PIC18F45K20 and HD44780 LCD Display

Discussion in 'Programmer's Corner' started by Brownout, Feb 4, 2013.

  1. Brownout

    Thread Starter Well-Known Member

    Jan 10, 2012
    2,375
    998
    Has anyone married these components? I know if I searh for a couple hours, I'll find a thread on this. But I'm cutting corners and just asking. If so, can details be posted? I am especially in interested in any C18 code.

    The next phase of my battery monitor and controller is to get the parameters displayed in a more reasonable form. Now, they are just in a bar graph form. Ideally, I'd like to be able to see the information from about 10 feet away. But to keep things simple, I'm looking at a quick fix -- using the HD44780 for further development.

    Thanks!
     
  2. ErnieM

    AAC Fanatic!

    Apr 24, 2011
    7,392
    1,605
    If you search your very own hard drive you will find them here:

    ..\Program Files\Microchip\mplabc18\v3.40\src\pmc_common\XLCD

    and here:

    ..\Program Files\Microchip\mplabc18\v3.40\h

    You'll need to adjust the pins in the dot h. Some delays must also be defined:

    extern void DelayFor18TCY(void); // 500nS delay
    extern void DelayPORXLCD(void); // DelayMs(15)
    extern void DelayXLCD(void); // DelayMs(5)


    These can be made for the most part by using an " #include "TimeDelay.h" "
     
  3. Brownout

    Thread Starter Well-Known Member

    Jan 10, 2012
    2,375
    998
    Well, I'll be damn. I'll look for those this evening.
     
Loading...