Professional Documents
Culture Documents
inc"
;**** Definicion de variables ****
decre equ
incre equ
0x00
goto Inicio
;********vector de interrupciones******************
org
0x04
RETFIE
; **** Programa Principal
Inicio bsf
BCF
STATUS,RP0 ; Banco 1
STATUS,RP1 ; Banco 1
bsf
bsf
bcf
TRISC,2
bcf
movlw
movwf
bsf
STATUS,RP0 ; Banco 1
movlw
0XBA
movwf
PR2
bcf
STATUS,RP0 ; Banco 0
clrf CCPR1L
; LO MOVEMOS AL PR2
; Ciclo de trabajo 0%
bcf
CCP1CON,CCP1X
bcf
CCP1CON,CCP1Y
bsf
bsf
CCP1CON,CCP1M2
gotoIncrementa
gotoBucle
Incrementa incf
CCPR1L,1
gotoBucle
Decrementa decf
CCPR1L,1
gotoBucle
return
end
; Regresa de la subrutina.-