Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Nov 9th, 2010  |  syntax: ASM (NASM)  |  size: 0.46 KB  |  views: 97  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #include <p16F690.inc>
  2. __config (_INTRC_OSC_NOCLKOUT & _WDT_OFF & _PWRTE_OFF & _MCLRE_OFF & _CP_OFF & _BOR_OFF & _IESO_OFF & _FCMEN_OFF)
  3.  
  4. org 0
  5.  
  6. Start:
  7.         bsf             STATUS,RP0      ; Page 1
  8.         bcf             TRISC,0         ; C0 output
  9.         bcf             STATUS,RP0      ; Page 0
  10.         clrf            PORTC           ; init portc
  11.         bsf             STATUS,RP1      ; Page 3
  12.         clrf            ANSEL           ; digital I/O
  13.         bcf             STATUS,RP1      ; Page 0
  14.         bsf             PORTC,0         ; C0 on
  15.         goto            $               ; wait
  16.  
  17. end