数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

AN2182 数据表(PDF) 13 Page - STMicroelectronics

部件名 AN2182
功能描述  Filters using the ST10 DSP library
PDF  18 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  STMICROELECTRONICS [STMicroelectronics]
网页  http://www.st.com
标志 STMICROELECTRONICS - STMicroelectronics

AN2182 数据表(HTML) 13 Page - STMicroelectronics

Back Button AN2182 Datasheet HTML 9Page - STMicroelectronics AN2182 Datasheet HTML 10Page - STMicroelectronics AN2182 Datasheet HTML 11Page - STMicroelectronics AN2182 Datasheet HTML 12Page - STMicroelectronics AN2182 Datasheet HTML 13Page - STMicroelectronics AN2182 Datasheet HTML 14Page - STMicroelectronics AN2182 Datasheet HTML 15Page - STMicroelectronics AN2182 Datasheet HTML 16Page - STMicroelectronics AN2182 Datasheet HTML 17Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 13 / 18 page
background image
AN2182
Implementation example using the ST10 DSP library
13/18
The following flowchart summarizes the software implementation of the low-pass filter:
Figure 9.
Low-pass filter flowchart
1.
Please refer to the technical note ST10 DSP library for a detailed description of the FIR structure used and its
fields.
2.
If the filter’s order is 14, 15 input samples are needed to compute an output. A circular buffer is used to store
the 15 input samples of the input signal. The size of the circular buffer is 2 x (filter’s order +1), which is 30 in this
example. An input sample is stored twice in the circular buffer: at buffer[i] and buffer[i + filter’s order +1] where
0<= i<= filter’s order.
3.
The ST10F27x ADC converts analog voltages between 0 and 5V into 10-bit digital values. The inputs for the
fir_q15_q15_q15 should be fractional. To normalize these samples, they are shifted to the left.
4.
The FIR function delivers a fractional output coded on 16 bits(Q1.15). The DAC realized with the ST10F27x is
an 8-bit one.
PWM initialization (PP0 = 0xFF)
FIR structure initialization(1)
ADC initialization
Circular buffer initialization(2)
PWMIR = 1
Clear PWMIR
Trigger ADC conversion
ADCIR = 1
ADCIR = 0
Update the circular buffer with (ADDAT << 5)(3)
Apply the filter->Output
PW0 = PP0 +1 - (Output >> 7)(4)
No
No
A
B



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com