L002EH:
CALL 0006H
BTFSC PORTB, 1
BTFSS PORTA, 1
GOTO L002EH
CALL 0006H
BTFSC PORTB, 1
BTFSS PORTA, 1
GOTO L002EH
CALL 0006H
BTFSC PORTB, 1
BTFSS PORTA, 1
GOTO L002EH
MOVLW 07H
TRIS PORTA
CLRF PORTA
MOVLW 0BH
MOVWF 08H
CLRF 09H
BSF PORTA, 3
NOP
NOP
BCF PORTA, 3
CALL 0000H
BSF PORTA, 3
NOP
NOP
BCF PORTA, 3
CALL 0000H
BSF PORTA, 3
NOP
NOP
BCF PORTA, 3
BCF PORTB, 6
BSF PORTB, 7
CALL 0000H
我是新手,刚看pic单片机,单片机是pic16f54。程序中call 0006H,是什么意思,是调用B端口吗?
CALL 0006H
BTFSC PORTB, 1
BTFSS PORTA, 1
GOTO L002EH
这段怎么在这个子程序中出现三次,有啥作用?
CALL 0000H
BSF PORTA, 3
NOP
NOP
BCF PORTA, 3
这段,对A3端口先置1,后又置0。到底是置1还是置0啊?
请高手指点一二。 |