arup
Member level 2
pic16f876 lcd
Dear Sir,
I am using 16x2 lcd module (HY-1602F6 printed on LCD MODULE PCB) with PIC16F876A.I am using PORTB.My connection is as follows:
EN -> RB3
RS -> RB2
R/W - > gnd(i want only write operation)
DB7......DB4(LCD data pin 11 to 14) -> PB7...PB4
Other LCD pins are as usual.
Crystal : 20MHz
After executing lcd routine :
My lcd display is not what i wanted to.I have seen only block of black characters.
Same lcd code(with little change i.e sending data with lower port bits) i have tested for other board where control lines were(RS,EN) from PORTA and DATA LINES were RD3...RD0. and crystal 4MHz And it's working perfectly OK.
I have attached the lcd code for review.Pls can anybody give me solution to this issue??
init_LCD() -> lcd initialization routine
putch() -> writting one char on lcd.this calls another routine called
lcd_write()
attached files are in .txt format - init.txt and lcd.txt
rgds,
Arup
Dear Sir,
I am using 16x2 lcd module (HY-1602F6 printed on LCD MODULE PCB) with PIC16F876A.I am using PORTB.My connection is as follows:
EN -> RB3
RS -> RB2
R/W - > gnd(i want only write operation)
DB7......DB4(LCD data pin 11 to 14) -> PB7...PB4
Other LCD pins are as usual.
Crystal : 20MHz
After executing lcd routine :
My lcd display is not what i wanted to.I have seen only block of black characters.
Same lcd code(with little change i.e sending data with lower port bits) i have tested for other board where control lines were(RS,EN) from PORTA and DATA LINES were RD3...RD0. and crystal 4MHz And it's working perfectly OK.
I have attached the lcd code for review.Pls can anybody give me solution to this issue??
init_LCD() -> lcd initialization routine
putch() -> writting one char on lcd.this calls another routine called
lcd_write()
attached files are in .txt format - init.txt and lcd.txt
rgds,
Arup