Hi all,
I am trying to use a glcd (ks1080) connected to a 16F887 (the board that is shipped with the pickit2).
After spending hours to find out why the code that is suppose to work doesn't work, I looked at the PORTB's behaviour :
if I do
(TRISB = 0)
bsf PORTB,5 ; this works, the pin5 = 1
bsf PORTB,6 ; pin6 = 1 BUT pin5 comes back to 0 !!!!
Anybody got any idea ?
Here is how it is connected to the glcd :
PORTD = D0..7
PORTB.1 = E
PORTB.2 = RW
PORTB.4 = RS
PORTB.5 = CS1
PORTE.0 = CS2
PORTE.1 = RST
Any idea ??
Thx and merry Xmas
I am trying to use a glcd (ks1080) connected to a 16F887 (the board that is shipped with the pickit2).
After spending hours to find out why the code that is suppose to work doesn't work, I looked at the PORTB's behaviour :
if I do
(TRISB = 0)
bsf PORTB,5 ; this works, the pin5 = 1
bsf PORTB,6 ; pin6 = 1 BUT pin5 comes back to 0 !!!!
Anybody got any idea ?
Here is how it is connected to the glcd :
PORTD = D0..7
PORTB.1 = E
PORTB.2 = RW
PORTB.4 = RS
PORTB.5 = CS1
PORTE.0 = CS2
PORTE.1 = RST
Any idea ??
Thx and merry Xmas