Hello i am trying to interface an lcd to a pic16f84a (the reason why i am using these is that i have a small quanity of them) Every time i try to get it running all i see are black squares on the display! I dont know what i am doing wrong? If someone who has had success with this could point me in the right direction i would apprciate it very much. i am posting my latest code so that comeone could point out my mistakes?
The black Bar's in one Line of the Display mean - Power is Present - Display is not initialized.
First thing i would do ist to check the connections from Controller to Display.
Data Direction and Ports in Hardware and Software fit's together?
Carry one of the used Ports special Functions that are activated? ( Like JTAG or Clock Out ).
Are the unused Data Lines Conected to GND ( 4 Bit Mode )?
Then check the frequency of the controller the times of your delays appends from that.
When that's all right, there can only be a Problem with your Software.
stevanb!! when you are calling Lcd_ins or Lcd_chr the working reg (w) has the command or data... as soon as you call "nano" you replace the data or command with 0x6... so that's ALL you ever send to the display.
so should i rework that subroutine or eliminate it completely? i read that the timing for lcd displays is important(thre display i am using is an optrex dmc-20171)