Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- LIST P=16f628
- RADIX HEX
- include "P16F628.INC" ;Definiciones de registros internos
- __config _BODEN_ON & _CP_OFF & _DATA_CP_OFF & _PWRTE_ON & _WDT_OFF & _LVP_OFF & _MCLRE_OFF & _INTRC_OSC_NOCLKOUT
- CBLOCK 0x20 ;Inicio de las variables. Será la primera dirección libre
- ;coloca aca tus registros separados por comas
- ENDC
- ORG 0
- goto inicio
- ORG 4 ;inicio de la subrutina de interrupcion
- ORG 5
- ;include "subrutina.lib" ; para incluir subrutinas y librerias
- include "retardos.inc"
- INICIO
- BANKSEL CMCON
- movlw b'00000111'
- movwf CMCON
- BANKSEL 0
- ;*******************************************************************************************
- ; Aqui comiensa el programa
- KErneL
- ;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
- ;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
- ;*******************************************************************************************
- goto KErneL
- ;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
- ; RUTINAS
- ;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
- goto $
- end ; fin de el codigo
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement