I am writing to a 7segment LED display with a 16F627A and believe I might be experiencing a Read Modify Write problem, some segments will not turn off.
If I use a pullup resistor on the output the segments will turn off. It seems like the output pin is being read as an input.
I turned off analog comparators and set TRISA = %00001100 and
TRISB = %00000010.
Any suggestions how should I modify controlling the outputs?
X0 is my variable that has the segment pattern and I write
each output pin. Hardware serial port uses portB.1 & portB.2
and prevents writing a word to the entire portB.
PORTB.0 = X0.0 ' Send segments to LED
PORTA.4 = X0.1
PORTA.6 = X0.2
PORTB.3 = X0.3
PORTB.4 = X0.4
PORTB.5 = X0.5
PORTB.6 = X0.6
PORTB.7 = X0.7
Thanks,
Mark
Bookmarks