View difference between Paste ID: AQYM5pVV and
SHOW:
|
|
- or go back to the newest paste.
1 | - | |
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 |