⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xydata_linenoiseiir.s

📁 该文件包含30F的电机控制程序
💻 S
字号:
;START_HEADER
;
; dsPIC30F6014 Demo Source File
; (c) Copyright 2005 Microchip Technology, All rights reserved
;
; --------------------------------------------------------------------------
; File Revision History:
; --------------------------------------------------------------------------
;
; $Log: xydata_LineNoiseIIR.s,v $
; Revision 1.3  2005/04/04 23:37:46  VasukiH
; Updated comments in header
;
; Revision 1.2  2005/04/04 23:13:24  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 , Elliptic, 9 Second Order Sections
;    Passband Ripple:                   0.001 dB
;    Stopband Ripple:                   100 dB
;    Passband Cutoff Frequencies:       200 Hz and 3850 Hz
;    Stopband Cutoff Frequencies:       100 Hz and 3990 Hz
;    Sampling Frequency :               8000 Hz
; 3. The filter coefficients are stored in X-Data Memory and accessed
;    via the X-AGU
; 4. These coefficients have been designed for use in the Transpose filter only
;
;END_HEADER


.equ LineNoiseIIRNumSections, 9


;
; Allocate and initialize filter coefficients


.global LineNoiseIIRCoefs

.section        .xdata, data, xmemory
LineNoiseIIRCoefs:

.hword  0x360B  ; b( 1,0)/2
.hword  0x93F5  ; b( 1,1)/2
.hword  0x6AC1  ; a( 1,1)/2
.hword  0x360B  ; b( 1,2)/2
.hword  0xD29F  ; a( 1,2)/2
.hword  0x3898  ; b( 2,0)/2
.hword  0x712B  ; b( 2,1)/2
.hword  0x9016  ; a( 2,1)/2
.hword  0x3898  ; b( 2,2)/2
.hword  0xCE8D  ; a( 2,2)/2
.hword  0x3A6C  ; b( 3,0)/2
.hword  0x8B50  ; b( 3,1)/2
.hword  0x7499  ; a( 3,1)/2
.hword  0x3A6C  ; b( 3,2)/2
.hword  0xC996  ; a( 3,2)/2
.hword  0x3C11  ; b( 4,0)/2
.hword  0x780B  ; b( 4,1)/2
.hword  0x8863  ; a( 4,1)/2
.hword  0x3C11  ; b( 4,2)/2
.hword  0xC758  ; a( 4,2)/2
.hword  0x3801  ; b( 5,0)/2
.hword  0x9043  ; b( 5,1)/2
.hword  0x7A37  ; a( 5,1)/2
.hword  0x3801  ; b( 5,2)/2
.hword  0xC462  ; a( 5,2)/2
.hword  0x3E2E  ; b( 6,0)/2
.hword  0x7C31  ; b( 6,1)/2
.hword  0x841E  ; a( 6,1)/2
.hword  0x3E2E  ; b( 6,2)/2
.hword  0xC352  ; a( 6,2)/2
.hword  0x23A0  ; b( 7,0)/2
.hword  0xB8F7  ; b( 7,1)/2
.hword  0x7D78  ; a( 7,1)/2
.hword  0x23A0  ; b( 7,2)/2
.hword  0xC147  ; a( 7,2)/2
.hword  0x3F65  ; b( 8,0)/2
.hword  0x7E94  ; b( 8,1)/2
.hword  0x81AB  ; a( 8,1)/2
.hword  0x3F65  ; b( 8,2)/2
.hword  0xC0F6  ; a( 8,2)/2
.hword  0x650F  ; b( 9,0)/2
.hword  0x0000  ; b( 9,1)/2
.hword  0xFCAE  ; a( 9,1)/2
.hword  0x9AF1  ; b( 9,2)/2
.hword  0x28CF  ; a( 9,2)/2



; Allocate states buffers in (uninitialized) Y data space

.section        .ydata, data, ymemory

LineNoiseIIRStates1:
.hword  0x0000
.hword  0x0000
.hword  0x0000
.hword  0x0000
.hword  0x0000
.hword  0x0000
.hword  0x0000
.hword  0x0000
.hword  0x0000


LineNoiseIIRStates2:
.hword  0x0000
.hword  0x0000
.hword  0x0000
.hword  0x0000
.hword  0x0000
.hword  0x0000
.hword  0x0000
.hword  0x0000
.hword  0x0000

; ..............................................................................
; Allocate and intialize filter structure

.section        .data
.global         _LineNoiseIIRFilter

_LineNoiseIIRFilter:
.hword  LineNoiseIIRNumSections-1
.hword  LineNoiseIIRCoefs
.hword  0xFF00
.hword  LineNoiseIIRStates1
.hword  LineNoiseIIRStates2
.hword  0x0000


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -