ORG 0000H NOP XSH1 NOP BSF STATUS,5 ;选体1 MOVLW 00H MOVWF TRISC ;C为输出 MOVWF TRISB BCF STATUS,5 ;选体0 MOVWF PORTC ;C口输出为0 MOVLW 05H MOVWF PORTB CALL DELAY1S XSH2 MOVLW 01H MOVWF PORTC CALL DELAY1S MOVLW 00H MOVWF PORTC CALL DELAY1S GOTO XSH2 DELAY1S MOVLW 06H MOVWF 20H LOOP1 MOVLW 0EBH MOVWF 21H LOOP2 MOVLW 0ECH MOVWF 22H LOOP3 DECFSZ 22H,1 GOTO LOOP3 DECFSZ 21H,1 GOTO LOOP2 DECFSZ 20H,1 GOTO LOOP1 RETURN END 我在MPLAB上模拟仿真好后烧到IC中不能运行,并且晶振也不起振,请各位高手指点(第一次用PIC16F877A,硬件保证是正确的,只要PORTC.0的LED闪而已,晶振4M) |