Advertisement
Guest User

Untitled

a guest
Oct 14th, 2019
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <pic18f4580.inc>
  2.  
  3.     org 0
  4.  
  5. MAIN:
  6.     BCF TRISD,0     ; CONFIGURE PORT AS OUTPUT
  7.  
  8. FAINT:
  9.     BSF PORTD,0     ; POSITVE CYCLE
  10.     CALL DELAY
  11.     BCF PORTD,0     ; NEGATIVE CYCLE
  12.     CALL DELAY
  13.     CALL DELAY
  14.     GOTO FAINT
  15. END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement