clrf PORTA ; I/O Bits Off movlw 7 movwf CMCON0 movf STATUS, w ; Set RP0 Bit to w iorlw 1 << 5 movwf STATUS clrf ANSEL ^ 0x80 ; All Bits Digital movlw b'001111' ; RA4/RA5 Digital Outputs movwf TRISA ^ 0x80 movf STATUS, w ; Clear RP0 andlw 0xFF ^ (1 << 5) movwf STATUS
Loop: ; Return here after toggle clrf Dlay + 1 ; High 8 bits for delay clrf Dlay ; Low 8 bits for delay DlayLoop: movlw 1 ; Decrement Inside Loop subwf Dlay, f movf STATUS, w ; Z Bit Flag Check andlw 1 << 2 ; Check Bit 2 addwf PCL, f ; Add to program counter goto DlayLoop ; Zero, loop around nop nop nop movlw 1 ; Decrement Outside loop subwf Dlay + 1, f movf STATUS, w ; Check Z Bit andlw 1 << 2 addwf PCL, f goto DlayLoop nop nop nop
DH forumlarında vakit geçirmekten keyif alıyor gibisin ancak giriş yapmadığını görüyoruz.
Üye Ol Şimdi DeğilÜye olduğunda özel mesaj gönderebilir, beğendiğin konuları favorilerine ekleyip takibe alabilir ve daha önce gezdiğin konulara hızlıca erişebilirsin.