Cutoff frequency variable LPF by IIR 6th-order Butterworth filter for ST Nucleo F401RE.

Dependencies:   UIT_IIR_Filter UIT_ACM1602NI UITDSP_ADDA mbed UIT_AQM1602

Revision:
3:4086d5ad6e7a
Parent:
1:e9b451a71ebf
Child:
4:460f2285dd87
--- a/main.cpp	Mon Nov 10 10:05:03 2014 +0000
+++ b/main.cpp	Wed Nov 12 10:58:32 2014 +0000
@@ -3,14 +3,13 @@
 //      A0: Signal to be filtered
 //      A2: Value which controls cutoff frequency
 //
-// 2014/11/10, Copyright (c) 2014 MIKAMI, Naoki
+// 2014/11/12, Copyright (c) 2014 MIKAMI, Naoki
 //--------------------------------------------------------------
 
 #include "mbed.h"
 
 #include "ADC_Interrupt.hpp"    // for ADC using interrupt
 #include "DAC_MCP4922.hpp"      // for DAC MCP4922
-#include "ScfClockTim3.hpp"     // for clock supplied to SCF
 #include "ACM1602NI.hpp"        // for LCD display
 
 #include "BilinearDesignLH.hpp" // for design of IIR filter
@@ -55,7 +54,7 @@
 int main()
 {
     const int ORDER = 6;
-    ScfClockTim3(1000000);      // cutoff frequency: 10 kHz
+    myDac_.ScfClockTim3(1000000);   // cutoff frequency: 10 kHz
 
     BiliearDesign lpfDsgn(ORDER, FS_, BiliearDesign::LPF);
     Acm1602Ni lcd;  // objetc for display using LCD