PIC18F45K20 and HD44780 LCD Display

Thread Starter

Brownout

Joined Jan 10, 2012
2,390
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!
 

ErnieM

Joined Apr 24, 2011
8,377
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" "
 
Top