I have connected RA4 to Vcc through 10K register on PIC16F84A. This RA4 was connected base, Vcc - LED - 330 ohm - collector of C3202. RA0 - RA3 was connected to LCD DB4-DB7.
the following code lights LED.
ORG 0 BSF 03H,5 ; BANK 1 CLRF PORTA BCF 03H,5 ; BANK 0 BSF PORTA,4 GOTO $
but when I access other RA ports, the LED goes out. The following code does not lights LED.
ORG 0 BSF 03H,5 ; BANK 1 CLRF PORTA BCF 03H,5 ; BANK 0 BSF PORTA,4 BSF PORTA,0 ;==> just inserted this code GOTO $
What's wrong? What should I do for the LED light on while accessing other RA ports?
- QHHong