i written a program to display using JHD 162A LCD.
i using MikroC Compiler and i quite sure that my program do nt have any error.
but after i download the program into PIC and run it, it shows black box at the 1st row of my LCD. it remain unchanged even i remove my PIC.
this is my circuit and the code i write, is there any problem or any configuration need to be done that i have left?
Change the MCLR resistor to a 5k+ AND put a small delay BEFORE you call your lcdinit routine... 1k will charge too fast and your LCD wont have time to settle.
there is a mistake in handling the Vee pin of the display. it is for contrast
generally this pin should have a voltage around 0.7 to 1V wrt gnd. People use a 10K preset across supply connecting the variable pin to Vee pin. It is adjusted to get best contrast. otherwise one can comfortably use 2 resistors as shown below.
The newer version of MikroC PRO and the EasyPIC 5 and 6 development boards use 6 PORTB pins for the LCD (not PORTD). You should check your version of MikroC, and the way you have set up the LCD in the code.
Unless you have a good reason I would use the 6 PORTB pins as used on all the new MikroE development boards, and use the MikroC internal libraries to drive the LCD as it makes it very easy.