📄 xconst_ydata_linenoisefir.s
字号:
;START_HEADER
;
; dsPIC30F6014 Demo Source File
; (c) Copyright 2005 Microchip Technology, All rights reserved
;
; --------------------------------------------------------------------------
; File Revision History:
; --------------------------------------------------------------------------
;
; $Log: xconst_ydata_LineNoiseFIR.s,v $
; Revision 1.3 2005/04/04 23:38:00 VasukiH
; Updated comments in header
;
; Revision 1.2 2005/04/04 23:13:31 VasukiH
; Updates for MPLAB C30 v1.30 compatiblity
;
; Revision 1.1.1.1 2003/08/23 00:38:33 VasukiH
; First import of demo source into CVS Repository
;
;
;
; --------------------------------------------------------------------------
;
; Software and Development Tools Info:
; --------------------------------------------------------------------------
; Tool Version
; --------------------------------------------------------------------------
; MPLAB IDE 7.0
; MPLAB C30 Toolsuite 1.30
; dsPICDEM(TM) Processor Board 1.10
; --------------------------------------------------------------------------
;
; File Notes:
; 1. This file contains FIR filter coefficients and filter structure
; generated by the dsPIC Filter Design tool.
; 2. The filter characteristics are as follows:
; Filter Type:Band Pass , Kaiser Window - 273 coefficients
; Passband Ripple: 0.001 dB
; Stopband Ripple: 100 dB
; Passband Cutoff Frequencies: 300 Hz and 3800 Hz
; Stopband Cutoff Frequencies: 100 Hz and 3990 Hz
; Sampling Frequency : 8000 Hz
; 3. The filter coefficients are stored in Program Memory and accessed
; using PSV via the X-AGU
;
;END_HEADER
.equ LineNoiseFIRNumTaps, 273
; Allocate and initialize filter taps
.section .LineNoiseFIRconst, code
.align 1024
LineNoiseFIRTaps:
.hword 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
.hword 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
.hword 0x0000, 0x0000, 0x0000, 0x0000, 0x0001, 0x0001, 0x0001, 0x0002, 0x0001
.hword 0x0003, 0x0001, 0x0004, 0x0001, 0x0005, 0x0000, 0x0006, 0x0000, 0x0007
.hword 0xFFFE, 0x0007, 0xFFFC, 0x0006, 0xFFF8, 0x0005, 0xFFF4, 0x0003, 0xFFF0
.hword 0x0001, 0xFFED, 0x0000, 0xFFEA, 0xFFFE, 0xFFE8, 0xFFFD, 0xFFE9, 0xFFFE
.hword 0xFFED, 0x0000, 0xFFF4, 0x0002, 0xFFFE, 0x0006, 0x0009, 0x000B, 0x0018
.hword 0x000F, 0x0028, 0x0012, 0x0038, 0x0012, 0x0046, 0x000D, 0x0051, 0x0003
.hword 0x0057, 0xFFF4, 0x0056, 0xFFDE, 0x0050, 0xFFC2, 0x0042, 0xFFA2, 0x0030
.hword 0xFF80, 0x001B, 0xFF61, 0x0004, 0xFF47, 0xFFF1, 0xFF38, 0xFFE2, 0xFF37
.hword 0xFFDB, 0xFF48, 0xFFDD, 0xFF6D, 0xFFEA, 0xFFA7, 0x0000, 0xFFF4, 0x001D
.hword 0x0051, 0x003D, 0x00B9, 0x0059, 0x0126, 0x006A, 0x018D, 0x0067, 0x01E6
.hword 0x0049, 0x0228, 0x0008, 0x024C, 0xFFA1, 0x024A, 0xFF0E, 0x021F, 0xFE51
.hword 0x01CB, 0xFD6D, 0x0151, 0xFC6B, 0x00B8, 0xFB54, 0x0009, 0xFA35, 0xFF50
.hword 0xF91F, 0xFE9A, 0xF81F, 0xFDF3, 0xF746, 0xFD6A, 0xF6A1, 0xFD07, 0xF639
.hword 0xFCD4, 0x7614, 0xFCD4, 0xF639, 0xFD07, 0xF6A1, 0xFD6A, 0xF746, 0xFDF3
.hword 0xF81F, 0xFE9A, 0xF91F, 0xFF50, 0xFA35, 0x0009, 0xFB54, 0x00B8, 0xFC6B
.hword 0x0151, 0xFD6D, 0x01CB, 0xFE51, 0x021F, 0xFF0E, 0x024A, 0xFFA1, 0x024C
.hword 0x0008, 0x0228, 0x0049, 0x01E6, 0x0067, 0x018D, 0x006A, 0x0126, 0x0059
.hword 0x00B9, 0x003D, 0x0051, 0x001D, 0xFFF4, 0x0000, 0xFFA7, 0xFFEA, 0xFF6D
.hword 0xFFDD, 0xFF48, 0xFFDB, 0xFF37, 0xFFE2, 0xFF38, 0xFFF1, 0xFF47, 0x0004
.hword 0xFF61, 0x001B, 0xFF80, 0x0030, 0xFFA2, 0x0042, 0xFFC2, 0x0050, 0xFFDE
.hword 0x0056, 0xFFF4, 0x0057, 0x0003, 0x0051, 0x000D, 0x0046, 0x0012, 0x0038
.hword 0x0012, 0x0028, 0x000F, 0x0018, 0x000B, 0x0009, 0x0006, 0xFFFE, 0x0002
.hword 0xFFF4, 0x0000, 0xFFED, 0xFFFE, 0xFFE9, 0xFFFD, 0xFFE8, 0xFFFE, 0xFFEA
.hword 0x0000, 0xFFED, 0x0001, 0xFFF0, 0x0003, 0xFFF4, 0x0005, 0xFFF8, 0x0006
.hword 0xFFFC, 0x0007, 0xFFFE, 0x0007, 0x0000, 0x0006, 0x0000, 0x0005, 0x0001
.hword 0x0004, 0x0001, 0x0003, 0x0001, 0x0002, 0x0001, 0x0001, 0x0001, 0x0000
.hword 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
.hword 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
.hword 0x0000, 0x0000, 0x0000
; Allocate delay line in (uninitialized) Y data space
.section .ybss, bss, ymemory
.align 1024
LineNoiseFIRDelay: .space LineNoiseFIRNumTaps*2
; Allocate and intialize filter structure
.global _LineNoiseFIRFilter
.section .data
_LineNoiseFIRFilter:
.hword LineNoiseFIRNumTaps
.hword psvoffset(LineNoiseFIRTaps)
.hword psvoffset(LineNoiseFIRTaps)+LineNoiseFIRNumTaps*2-1
.hword psvpage(LineNoiseFIRTaps)
.hword LineNoiseFIRDelay
.hword LineNoiseFIRDelay+LineNoiseFIRNumTaps*2-1
.hword LineNoiseFIRDelay
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -