![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
FIR filter of symmetric coefficiemts for ST Nucleo F401RE.
Diff: main.cpp
- Revision:
- 3:89bae16a8d2c
- Parent:
- 1:93d2771b8797
- Child:
- 5:b81eb5e88546
diff -r b09cd94aa8c7 -r 89bae16a8d2c main.cpp --- a/main.cpp Wed Oct 22 09:05:56 2014 +0000 +++ b/main.cpp Thu Oct 23 00:21:13 2014 +0000 @@ -2,7 +2,7 @@ // FIR フィルタ,係数の対称性を利用する構造 // Analog Input : A0 // Analog Output: MCP4922 using SPI -// 2014/10/21, Copyright (c) 2014 MIKAMI, Naoki +// 2014/10/23, Copyright (c) 2014 MIKAMI, Naoki //-------------------------------------------------------------- #include "mbed.h" @@ -14,9 +14,9 @@ using namespace Mikami; -const int FS_ = 12000; // Sampling frequency: 12 kHz -ADC_Base adc_(A0, FS_); // for AD -DAC_MCP4922 myDac_(DAC_MCP4922::DAC_A); // for DA +const int FS_ = 12000; // Sampling frequency: 12 kHz +ADC_Base adc_(A0, FS_); // for AD +DAC_MCP4922 myDac_; // for DA int main() {