daily pastebin goal
3%
SHARE
TWEET

Untitled

a guest Dec 7th, 2017 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include  <p16f88.inc>
  2.  
  3.         goto main
  4.  
  5. init    nop                     ;do nothing
  6.         movlw   b'00000000'     ;move constante value to working register
  7.         movwf   PORTB           ;move value from working register to PORTB
  8.         clrf    PORTA           ;clear file PORTA because they are not used
  9.         bsf     STATUS, RP0     ;switch to RamBank1
  10.         movlw   b'00000000'    
  11.         movwf   TRISB           ;set Output
  12.         clrf    TRISA           ;set Output
  13.         bcf     STATUS, RP0     ;switch to RamBank0
  14.         return
  15.  
  16. main    nop
  17.         call    init            ;start subroutine
  18.        
  19. main_1  bsf     PORTB,3         ;switch on led
  20.         bcf     PORTB,3         ;switch off led
  21.         goto    main_1         
  22.  
  23.         END
RAW Paste Data
Pastebin PRO CHRISTMAS Special!
Get 60% OFF on Pastebin PRO accounts!
Top