Filtro digital pic16f88
;Practica final Señales y sistemas
;filtro de una señal con 2 a la N numero de muestras
;Realizado porOliver Barrera Castellanos, estudiante del 7mo semestre de ing. Electrónica del Instituto Tecnológico
;de veracruz para la materia de Señales y sistemas.
;Maestro José Antonio Hernandez Reyes;contacto en oli_kuma@hotmail.com
;------------------------------------------------------------------------------------------
list p=16f88 ; list directive to define processor
#include; processor specific variable definitions
__CONFIG _CONFIG1, _CP_OFF & _CCP1_RB0 & _DEBUG_OFF & _CPD_OFF & _LVP_OFF & _BODEN_OFF & _MCLR_OFF & _PWRTE_ON & _WDT_OFF & _INTRC_IO__CONFIG _CONFIG2, _IESO_OFF & _FCMEN_OFF
#include
CBLOCK 0X20
CONT_SUMA_N,REG_SUMA_N,REG_SUMA_N2,LONGITUD_VECTOR_N,CONT_DIV_N,CONT_DIV_N_TEMP,
POSICION_VECTOR,TEST
ENDC
CBLOCK 0x2FVECTOR_N, ;Registro que guarda el orden, tamaño del vector
ENDC
#DEFINE IN PORTA,2
;******************************************************************************************
ORG 0x000; processor reset vector
goto Inicio ; go to beginning of program
ORG 0x04
; goto RSI
;--------------------------- INICIO DEL PROGRAMA-------------------------------------------
Inicio
bsf STATUS,RP0 ; ### SELECT BANK 1
;----------------------------Configura Oscilador Interno------------------------------------
;configure OSCCON - OSCILLATOR CONTROL REGISTER
; bit 7 Unimplemented
; bit 6-4 IRCF: Internal RC Oscillator Frequency Select bits
; bit 3 OSTS: Oscillator Start-upTime-out Status bit
; bit 2 IOFS: INTOSC Frequency Stable bit
; bit 1-0 SCS: Oscillator Mode Select bits
movlw B'01110000'
movwf OSCCON ; set 8 MHz...
Regístrate para leer el documento completo.