ks0107b init
it's driver ic is KS0107b and KS0108b ,
I HAVE TESTED THAT WAYS , I CONNECTED A 10uF CAPACITOR BETWEEN RSTBpin AND GROUND , A 10 Kohm RESISTOR BETWEEN RSTBpin AND VCC , THEN I WROTE THIS PROGRAMM TO CHECK THE STATUS OF LCD , BUT LED DOESN'T TURN ON !!!
CS1 EQU P3.0
CS2 EQU P3.1
EN EQU P3.3
RW EQU P3.4
RS EQU P3.5
JMP 040H
ORG 040H
MOV P1,#0FFH
MOV P3,#11110111B
MOV P2,#0FFH
CHECK: CLR EN
CLR RS
SETB RW
SETB EN
NOP
NOP
NOP
CLR EN
NOP
NOP
NOP
MOV A,P1
JB ACC.7,CHECK
JB ACC.4,CHECK
CLR P2.0
AJMP $
END.
Added after 2 hours 43 minutes:
after a lot of search , i found this file :
www.8052.com/codelib/glcd2.rar
in that project , he didn't use read status or any read function from LCD !!!
and he connected reset pin to VCC without any CAP or resitor ...
it helped me a lot ,
thanks to you all and to that project maker , Hossein vismeh from IRAN .
Added after 2 hours 2 minutes:
at last i found my own program problem , it was just because of using 3 nop between SETB EN and CLR EN and MOV A,P1 !!!!!
i teted it many times and in all result was :
problem is because of using 3 nop between ....
but i don't understand why ???