谁能帮我看看这个语句什么意思.pic的INCLUDE "P16F877A.INC"TMR0B EQU 0C3HCOUNTER EQU 20HORG 000HNOPGOTO MAINORG 0004HBCF INTCON,T0IFDECFSZ COUNTERGOTO RTRLF PORTC,1MOVLW 0AHMOVWF COUNTERRT MOVLW TMR0BMOVWF TMR0RETFIEMAIN BSF STATUS,RP0MOV

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/03 03:32:25
谁能帮我看看这个语句什么意思.pic的INCLUDE
xo@LMa !&b9\!Ɨ0C tll,SZlmL ڹD}oӴϏ~q}|U͞ӚαwI{HmBejm m;`QiyM;U\ %xI̠wΠK>vI+7/ hh ^ɷ-@dV:^^ͽHdLd ê^7"ħ_=

谁能帮我看看这个语句什么意思.pic的INCLUDE "P16F877A.INC"TMR0B EQU 0C3HCOUNTER EQU 20HORG 000HNOPGOTO MAINORG 0004HBCF INTCON,T0IFDECFSZ COUNTERGOTO RTRLF PORTC,1MOVLW 0AHMOVWF COUNTERRT MOVLW TMR0BMOVWF TMR0RETFIEMAIN BSF STATUS,RP0MOV
谁能帮我看看这个语句什么意思.pic的
INCLUDE "P16F877A.INC"
TMR0B EQU 0C3H
COUNTER EQU 20H
ORG 000H
NOP
GOTO MAIN
ORG 0004H
BCF INTCON,T0IF
DECFSZ COUNTER
GOTO RT
RLF PORTC,1
MOVLW 0AH
MOVWF COUNTER
RT MOVLW TMR0B
MOVWF TMR0
RETFIE
MAIN BSF STATUS,RP0
MOVLW 00H
MOVWF TRISC
MOVLW 07H
MOVWF OPTION_REG
BCF STATUS,RP0
MOVLW B'10100000'
MOVWF INTCON
MOVLW B'00000001'
MOVWF PORTC
MOVLW 0AH
MOVWF COUNTER
MOVLW TMR0B
MOVWF TMR0
LOOP GOTO LOOP
END

谁能帮我看看这个语句什么意思.pic的INCLUDE "P16F877A.INC"TMR0B EQU 0C3HCOUNTER EQU 20HORG 000HNOPGOTO MAINORG 0004HBCF INTCON,T0IFDECFSZ COUNTERGOTO RTRLF PORTC,1MOVLW 0AHMOVWF COUNTERRT MOVLW TMR0BMOVWF TMR0RETFIEMAIN BSF STATUS,RP0MOV
这段程序实现的功能是:PORTC端口数据的循环左移,如果PORTC接的发光二极管,那就是流水灯.PORTC的初始值为0x01,间隔时间由TMR0中断控制.TMR0分频值为256,初始值为0C3H,中断10次移位一次.如果采用4M晶振,间隔时间为(100H - 0C3H) * 256 * 10微秒