Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pic 16 0.57 KB | None | 0 0
  1. include "P16F690.inc"
  2. is4sec equ 0x21
  3. is255sec equ 0x22
  4. is4milsec equ 0x23
  5. is255milsec equ 0x24
  6.  
  7. org 0x0000
  8.  
  9. bsf STATUS, RP0 ;
  10. clrf TRISC
  11. bcf STATUS, RP0;
  12.  
  13. movlw 1
  14. movwf PORTC
  15. Main
  16. bsf PORTC,1
  17. call second
  18. bcf PORTC,1
  19. call second
  20. goto Main
  21.  
  22. second
  23. movlw 4
  24. movwf is4sec
  25. loop4sec
  26. movlw 255
  27. movwf is255sec
  28. loop255sec
  29. movlw 4
  30. movwf is4milsec
  31. loop4milsec
  32. movlw 255
  33. movwf is255milsec
  34. loop255milsec
  35. decfsz is255milsec
  36. goto loop255milsec
  37. decfsz is4milsec
  38. goto loop4milsec
  39. decfsz is255sec
  40. goto loop255sec
  41. decfsz is4sec
  42. goto loop4sec
  43. return
  44.  
  45. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement