Professional Documents
Culture Documents
#include <xc.inc>
;Palabra de Configuración
; CONFIG
CONFIG FOSC = INTOSCIO ; Oscillator Selection bits (INTRC oscillator: I/O
function on RA6/OSC2/CLKOUT pin, I/O function on RA7/OSC1/CLKIN)
CONFIG WDTE = OFF ; Watchdog Timer Enable bit (WDT disabled)
CONFIG PWRTE = ON ; Power-up Timer Enable bit (PWRT enabled)
CONFIG MCLRE = OFF ; RA5/MCLR pin function select (RA5/MCLR pin
function is digital input, MCLR internally tied to VDD)
CONFIG BOREN = OFF ; Brown-out Reset Enable bit (BOD Reset disabled)
CONFIG LVP = OFF ; Low-Voltage Programming Enable bit (RB4/PGM pin
has digital I/O function, HV on MCLR must be used for programming)
CONFIG CPD = OFF ; Data Code Protection bit (Data memory code
protection off)
CONFIG CP = OFF ; Code Protection bits (Program memory code
protection off)
;Macros
BANCO0 MACRO
BCF STATUS,6
BCF STATUS,5
ENDM
BANCO1 MACRO
BCF STATUS,6
BSF STATUS,5
ENDM
BANCO2 MACRO
BSF STATUS,6
BCF STATUS,5
ENDM
BANCO3 MACRO
BSF STATUS,6
BSF STATUS,5
ENDM
;Vector de reset
PSECT code, delta=2, abs
org 0X00
goto main