| 数据搜索系统,热门电子元器件搜索 |
|
AN2182 数据表(PDF) 13 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN2182 数据表(HTML) 13 Page - STMicroelectronics |
|
13 / 18 page ![]() 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 |
|
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| 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 |