hantto
Member
Hello, i have coded a bit of code. It should read the portb inputs and hold the porta 2 low for 100ms if the b port was high, or high for 100ms if the portb was low. And it should continue and check every potb pin. Put for some reason it just switches on porta 2 if portb 4 is low. It doesn't continue to other ports.
Any help is mostly welcome!
Any help is mostly welcome!
Code:
Send
bcf portA, LedSend
movf Bit_temp, w
xorlw d'8'
btfsc status, z
clrf Bit_temp
btfss portB, Bit_temp
goto SendBit
call del100
incf Bit_temp, f
goto Send
SendBit
bsf portA, LedSend
call del100
incf Bit_temp, f
return