Hi, i'm totally new to PIC. I start to learn it for my project. I would need some helps, below is some parts of my coding:
movlw D'4'
movwf J
movwf K
dec:
decfsz J,f
goto readbit
goto led_off
readbit:
btfsc PORTA,J
goto loop2
goto dec
What i want to ask is that could i actually compare the signal from port with the J that i have decrease as 'btfsc PORTA,J'?
I try to simulate but the result is different so i wonder where i have make mistake or what i have not consider into my coding.
Really need help asap!!! Thanks!!!
movlw D'4'
movwf J
movwf K
dec:
decfsz J,f
goto readbit
goto led_off
readbit:
btfsc PORTA,J
goto loop2
goto dec
What i want to ask is that could i actually compare the signal from port with the J that i have decrease as 'btfsc PORTA,J'?
I try to simulate but the result is different so i wonder where i have make mistake or what i have not consider into my coding.
Really need help asap!!! Thanks!!!