![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
IIR filter of cascade form using Biquad class for ST Nucleo F401RE.
Dependencies: UITDSP_ADDA mbed
Revision 7:ee6c82112718, committed 2015-09-04
- Comitter:
- MikamiUitOpen
- Date:
- Fri Sep 04 09:07:38 2015 +0000
- Parent:
- 6:a8cb3a877896
- Commit message:
- 8
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/UITDSP_ADDA.lib Fri Sep 04 09:07:38 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/MikamiUitOpen/code/UITDSP_ADDA/#543daa087bd5
--- a/UIT_ADDA.lib Sat Nov 15 06:20:51 2014 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -http://developer.mbed.org/users/MikamiUitOpen/code/UIT_ADDA/#c326d04aa6b8
--- a/main.cpp Sat Nov 15 06:20:51 2014 +0000 +++ b/main.cpp Fri Sep 04 09:07:38 2015 +0000 @@ -2,13 +2,11 @@ // IIR フィルタ,縦続形,float で演算, Biquad クラス利用 // Analog Input : A0 // Analog Output: MCP4922 using SPI -// 2014/11/12, Copyright (c) 2014 MIKAMI, Naoki +// 2015/07/03, Copyright (c) 2015 MIKAMI, Naoki //-------------------------------------------------------------- -#include "mbed.h" - -#include "ADC_Base.hpp" // for ADC not using interrupt -#include "DAC_MCP4922.hpp" // for DAC MCP4922 +#include "ADC_BuiltIn.hpp" // for ADC not using interrupt +#include "DAC_MCP4921.hpp" // for DAC MCP4921, MCP4922 #include "Biquad.hpp" // 2nd-ordered IIR filter using namespace Mikami; @@ -28,9 +26,9 @@ { 1.942552E+00f, -9.865720E-01f, -1.942961E+00f, 1.0E+00f}}; // 3段目 const float g0_ = 1.000028E-02f; // 利得定数 -const int FS_ = 12000; // Sampling frequency: 12 kHz -ADC_Base adc_(A0, FS_); // for AD -DAC_MCP4922 myDac_; // for DA +const int FS_ = 12000; // Sampling frequency: 12 kHz +ADC_BuiltIn adc_(A0, FS_); // for AD +DAC_MCP4921 myDac_; // for DA int main() {
--- a/mbed.bld Sat Nov 15 06:20:51 2014 +0000 +++ b/mbed.bld Fri Sep 04 09:07:38 2015 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed/builds/031413cf7a89 \ No newline at end of file +http://mbed.org/users/mbed_official/code/mbed/builds/ba1f97679dad \ No newline at end of file