I too tie the R/W line low and wait long enough. that way, I need to use on= ly 6 wires for data and that makes wiring much easier (most of my projects = have LCD as panel mount where as PCB sits deeper inside). All my projects are on 28-SOIC PIC18F 2455/25K50, and in some of the projec= ts, I need all pins I can get my hands on( With 25K50, i get 2 more pins fo= rmerly used by crystal) I wonder why the standard 16x2 char LCDs still dont have a I2C interface...= probably nobody wants to respin the HD44xxx. As for actual pins, i always use macros (ex: #define LCD_DATA_4 LATBbits.= LATB2 ) in the .c file so that there is no change in .c file when i decide = to reassign pins to LCD. I use my own pure* C routines written long ago that has been very easily po= rted to LPC21xx/ AVR without any hassle. * pure =3D no chip or compiler dependent code....essentially, the .c file i= s full of macros -Mahesh -------------------------------------------- On Tue, 17/3/15, Denny Esterline wrote: Subject: Re: [PIC] Interfacing a 2x16 LCD, using MPLAB-X and XC8, on a PIC= 18F To: "Microcontroller discussion list - Public." Date: Tuesday, 17 March, 2015, 7:35 PM =20 I've written my own routines for this several times for different processors, it's not overly complicated. if you choose the "tie the R/W line low and simply wait long enough" route, (which I've done) do note that the "long enough" portion is temperature dependent - it takes longer when cold. =20 Also, when you're deciding which pins to control it with... You can control it with any pins, but it's a fair bit simpler if you use four (or eight) pins from the same port in order - much less bit manipulation. I've done it with pins scattered all over when I had too, it can be done. Now it's number three on my PCB design checklist. (right behind Do you have mounting holes? and There's nothing on the PGC/PGD lines) =20 -Denny --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist =20 --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .