PROCESSOR 10F206 ; PIC10F206 Configuration Bit Settings ; Assembly source line config statements ; CONFIG CONFIG WDTE = OFF ; Watchdog Timer (WDT disabled) CONFIG CP = OFF ; Code Protect (Code protection off) CONFIG MCLRE = OFF ; Master Clear Enable (GP3/MCLR pin fuction is digital I/O, MCLR internally tied to VDD) // config statements should precede project file includes. #include <xc.inc> PSECT resetVect, class=CODE, delta=2 resetVect: PAGESEL main goto main PSECT CODE, delta=2 main: movlw 0b00001110 tris 6 nop movlw 0b11011111 option nop movlw 0b11110111 movwf 0x07 nop mainloop: nop blink: bsf GP0 movlw 53 call delay bcf GP0 movlw 53 call delay goto blink nop delay: movwf 0x12 out_out_loop: movwf 0x11 outer_loop: movwf 0x10 delay_loop: decfsz 0x10, 1 goto delay_loop decfsz 0x11, 1 goto outer_loop decfsz 0x12, 1 goto out_out_loop retlw 0 nop END resetVect |
russell11 給 大家:
我翻譯的〈羅生門〉全文免費公開中!
方格子
https://vocus.cc/article/66a54f4efd89780001e65ee1看更多我要大聲說昨天20:27