![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
IIR filter of 1st order for ST Nucleo F401RE.
Diff: main.cpp
- Revision:
- 2:ed56284ebeb7
- Parent:
- 0:22eafb1b3124
--- a/main.cpp Mon Nov 10 09:58:01 2014 +0000 +++ b/main.cpp Wed Nov 12 10:24:30 2014 +0000 @@ -2,14 +2,13 @@ // 1次の IIR フィルタ // Analog Input : A0 // Analog Output: MCP4922 using SPI -// 2014/10/29, Copyright (c) 2014 MIKAMI, Naoki +// 2014/11/12, Copyright (c) 2014 MIKAMI, Naoki //-------------------------------------------------------------- #include "mbed.h" #include "ADC_Base.hpp" // for ADC not using interrupt #include "DAC_MCP4922.hpp" // for DAC MCP4922 -#include "ScfClockTim3.hpp" // for clock supplied to SCF using namespace Mikami; @@ -19,7 +18,7 @@ int main() { - ScfClockTim3(500000); // cutoff frequency: 5 kHz + myDac_.ScfClockTim3(500000); // cutoff frequency: 5 kHz const float A1 = 0.8f; const float B0 = 1.0f - A1;