I am using the chip pic 16f627a
setting PORTA to inputs & PORTB to outputs >>
giving a high input to PORTA,0 >>
I used the btfsc(bit test skip if zero instruction) .. and the tested pin is set to '1' .. so the program shoudn't skip the ****** line
My problem is that the program skips the ****** instruction ,, and goes to the $$$$$$ instruction .. although the tested pin is set to high '1'
If any one knows where is the fault .. I am so gratefull![Smile :) :)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
setting PORTA to inputs & PORTB to outputs >>
Code:
bsf STATUS,PR0
movlw 0xFF
movwf TRISA
movlw 0x00
movwf TRISB
bcf STATUS,RP0
giving a high input to PORTA,0 >>
Code:
bsf PORTA,0
btfsc PORTA,0
******
$$$$$$
I used the btfsc(bit test skip if zero instruction) .. and the tested pin is set to '1' .. so the program shoudn't skip the ****** line
My problem is that the program skips the ****** instruction ,, and goes to the $$$$$$ instruction .. although the tested pin is set to high '1'
If any one knows where is the fault .. I am so gratefull