> routines for putting strings or characters on the screen I doubt if you will gain much from 8 bit mode What can save much more time is using the R/W pin and busy flag,Īllowing the command termination much earlier than the typical times. Indeed when compared with the command execution times (37us for eachĭata byte and most commands, and 1.52ms for "Clear Screen" and "Home With 8 bit mode you gain 1us for each byte transfered, which is not much > up? I seem to have found the details before finding any > So my question is, has anyone seen a good user guide to > /opt/microchip/xc8/v1.33/sources/pic18/plib/XLCD which I > include xlcd.h, but then I'm not too clear about getting > Microchip, rather than write my own, at this stage.
> It seems logical to use the pre-written LCD library code > for now until I can prove any advantage to using 4. > Talking to the display can be done using 4 or 8 bits. > 2x16 LCD character display, compatible with > Hi, I'm right at the start of trying to drive a generic > Subject: Interfacing a 2x16 LCD, using MPLAB-X and > To: Microcontroller discussion list - Public. Routines for putting strings or characters on the screen I doubt if you will gain much from 8 bit modeĪnd extra pins tend to be useful. I wrote it following the original HD44780 datasheet. It is very stable and offer someĪdvantages over many other available on the Internet. > up? I seem to have found the details before finding any kind of manual. > So my question is, has anyone seen a good user guide to setting all this > /opt/microchip/xc8/v1.33/sources/pic18/plib/XLCD which I guess I'd call, > include xlcd.h, but then I'm not too clear about getting the job done. > It seems logical to use the pre-written LCD library code provided by > 2x16 LCD character display, compatible with HD44780/KS0066/KS0070B etc. > Hi, I'm right at the start of trying to drive a generic ST7066U-based On Tue, at 12:09 +0000, Matt Rhys-Roberts wrote: Their code tends to beĬonditionalized for a number of PICs and demo boards, and wading throughĪll the #ifdef's can be a real challenge. You can probably learn a lot from other people's code. You will be better off understanding what you have. It isn't a very hard problem, and over the longer term, Once you get things working, then adjust to the times in So I would suggest get the HD44780 datasheet, do what it says, but start This can actually be convenient sometimes, but can also be a real pain. One I have has multiple addresses for some positions on the display. MicrochipĪpparently uses a number of different displays on this board, but the Surprised to find some of these in the LCD on my Explorer 16. Library written against these can cause confusing results. Random LCD might not work with the one you happen to have.Īlso, some LCDs have some extra features that aren't in the HD44780. If you have code written against the HD44780 datasheet it ought There is a wide difference in speed between different Usually it is a lot simpler just to do it yourself, althoughįor an LCD, I'm sure there are plenty of good libraries out there.īeware, though. I've never been that thrilled with the Microchip libraries, especiallyįor 8 bit. There used to be some pretty good stuff on the Internet about LCDs, but The R/W line low and simply wait long enough. The LCD has the ability to tell you when it is done, but most folks tie For four bits you do need to go through some convoluted Simply put the character on the data lines and toggle theĮnable line. However, most modern LCDs don't need any initialization if you are usingĨ bits. Typically LCDs are operated using the 4 bit interface to save pins. Up? I seem to have found the details before finding any kind of manual. So my question is, has anyone seen a good user guide to setting all this opt/microchip/xc8/v1.33/sources/pic18/plib/XLCD which I guess I'd call, Include xlcd.h, but then I'm not too clear about getting the job done. Microchip, rather than write my own, at this stage. It seems logical to use the pre-written LCD library code provided by I'm using 8 bitsįor now until I can prove any advantage to using 4. Talking to the display can be done using 4 or 8 bits. Hi, I'm right at the start of trying to drive a generic ST7066U-basedĢx16 LCD character display, compatible with HD44780/KS0066/KS0070B etc.