Haris- You should be able to adapt the code to your uses. Remember, you have to initialize the LCD so that it will recognise nibble commands, this requires the initialization code, and the specific order is important. The other thing that messes people up is the bias for the display. Different displays need different biases, so it is good to adjust this until you can see the LCD working. Here is some generic code for the Piclist archives: http://www.piclist.com/techref/microchip/4bitlcd.src --- looks like you would have to do some (major) renovations here, but check out the other code at: http://www.piclist.com/techref/microchip/ios.htm. Also, send your present code to the list, and we can help you get it going. David "Haris I. Volos" wrote: > Hi! > > I am a beginner in PIC and I have built a specific circuit that features a > 16x2 LCD which is connected to a 16F877 pic running at 4MHz. The data > bits(DB4-7) are connected to the Lower nibble of PORTB(0:3) and the control > lines to PORTE, RE0 to E, RE1 to R/W and RE2 to RS. As you might already > realize I want to use the LCD in the 4bit mode. The Higher nibble of port B > will be used as inputs > > I have spend hours of reading datasheets, internet pages how to use the lcd > and I didn't see light to the tunnel. I have also tried to use ready made > routines but because they were abstracts from largest projects I didn't > manage to so modify them in order to make my lcd to work. > > I would be grateful if you can sent me the minimal code required to just > display a single character on the LCD to verify that is working, also that > will give me a very good starting point to proceed further my own to > implement more complicated functions of the LCD. > > Thanks in advance, > > Haris Volos > Electrical Eng. Student > > -- > http://www.piclist.com hint: To leave the PICList > mailto:piclist-unsubscribe-request@mitvma.mit.edu -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu