giangpoh
Newbie level 4
hitachi 2x16
Good day,
I writing a driver for my 2x16 Hitachi LCD using a PIC Microcontroller. There are some problems that I observed from my LCD setup.
First, I need to turn the variable resistor from maximum to minimum connected from ground to pin 3 of LCD module everytime I power up my LCD. Does anyone know how to sustain the contrast of the LCD without tuning the resistance?
Secondly. I noticed that the data lines for the LCD are not not receive the data correctly. Sometimes there are extra charecters shown on the LCD, sometimes the output is wrong. Is it something to do with the delay in my programming?
I hope u guys can provide me some website or sample C code for 4bits as well as 8bits LCD initialization.
Thanks alot.
Good day,
I writing a driver for my 2x16 Hitachi LCD using a PIC Microcontroller. There are some problems that I observed from my LCD setup.
First, I need to turn the variable resistor from maximum to minimum connected from ground to pin 3 of LCD module everytime I power up my LCD. Does anyone know how to sustain the contrast of the LCD without tuning the resistance?
Secondly. I noticed that the data lines for the LCD are not not receive the data correctly. Sometimes there are extra charecters shown on the LCD, sometimes the output is wrong. Is it something to do with the delay in my programming?
I hope u guys can provide me some website or sample C code for 4bits as well as 8bits LCD initialization.
Thanks alot.