Nucleo-F446 によるグラフィック・イコライザ.DA変換器にデータを送る際は 4 倍にアップ・サンプリング.

Dependencies:   mbed SerialTxRxIntr F446_AD_DA_Multirate

Files at this revision

API Documentation at this revision

Comitter:
MikamiUitOpen
Date:
Thu Jan 31 12:40:34 2019 +0000
Parent:
5:a4f15be9afb7
Commit message:
7

Changed in this revision

F446_AD_DA_Multirate.lib Show annotated file Show diff for this revision Revisions of this file
SerialTxRxIntr.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
main.hpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r a4f15be9afb7 -r 7dd696fe86c8 F446_AD_DA_Multirate.lib
--- a/F446_AD_DA_Multirate.lib	Sun Oct 07 04:31:25 2018 +0000
+++ b/F446_AD_DA_Multirate.lib	Thu Jan 31 12:40:34 2019 +0000
@@ -1,1 +1,1 @@
-http://os.mbed.com/users/MikamiUitOpen/code/F446_AD_DA_Multirate/#a14d7f0bc3f5
+https://os.mbed.com/users/MikamiUitOpen/code/F446_AD_DA_Multirate/#9429fb179c38
diff -r a4f15be9afb7 -r 7dd696fe86c8 SerialTxRxIntr.lib
--- a/SerialTxRxIntr.lib	Sun Oct 07 04:31:25 2018 +0000
+++ b/SerialTxRxIntr.lib	Thu Jan 31 12:40:34 2019 +0000
@@ -1,1 +1,1 @@
-http://os.mbed.com/users/MikamiUitOpen/code/SerialTxRxIntr/#190d94fba10d
+https://os.mbed.com/users/MikamiUitOpen/code/SerialTxRxIntr/#8f6e9351f313
diff -r a4f15be9afb7 -r 7dd696fe86c8 main.cpp
--- a/main.cpp	Sun Oct 07 04:31:25 2018 +0000
+++ b/main.cpp	Thu Jan 31 12:40:34 2019 +0000
@@ -3,7 +3,7 @@
 //
 //  PC 側のプログラム: F446_GraphicEqualizer 
 //
-//  2018/10/07, Copyright (c) 2018 MIKAMI, Naoki
+//  2019/01/31, Copyright (c) 2019 MIKAMI, Naoki
 //----------------------------------------------------------------------
 
 #include "main.hpp"
@@ -76,4 +76,3 @@
         //------------------------------------------------------------       
     }
 }
-
diff -r a4f15be9afb7 -r 7dd696fe86c8 main.hpp
--- a/main.hpp	Sun Oct 07 04:31:25 2018 +0000
+++ b/main.hpp	Thu Jan 31 12:40:34 2019 +0000
@@ -3,27 +3,27 @@
 // 使いたい場合,ここでフィルタの係数を定義し,それを F446_Multirate のオブ
 // ジェクトを実体化する際に,引数として渡す.
 //
-//  2018/06/11, Copyright (c) 2018 MIKAMI, Naoki
+//  2019/01/31, Copyright (c) 2019 MIKAMI, Naoki
 //----------------------------------------------------------------------
 
 #include "F446_Multirate.hpp"
 #include "SerialRxTxIntr.hpp"
 #include "GrEqParamsCalculator.hpp"
+using namespace Mikami;
 
 // マルチレート処理用の補間フィルタの係数
 // 低域通過フィルタ
 // 連立チェビシェフ特性
 // 次数    : 8 次
-// 標本化周波数:176.00 kHz
+// 標本化周波数:176.40 kHz
 // 遮断周波数 : 20.00 kHz
 // 通過域のリップル: 0.50 dB
 // 阻止域の減衰量 :40.00 dB
-const Biquad::Coefs HK_SM_[] = {
-    {1.459046E+00f, -5.819992E-01f,  2.333893E-01f, 1.0f},  // 1段目
-    {1.481588E+00f, -8.172556E-01f, -1.240760E+00f, 1.0f},  // 2段目
-    {1.494779E+00f, -9.473534E-01f, -1.442644E+00f, 1.0f},  // 3段目
-    {1.502186E+00f, -9.896300E-01f, -1.482309E+00f, 1.0f}}; // 4段目
-const float G0_SM_ = 4*1.756776E-02f;   // 利得定数
+const Biquad HK_SM_[] = {
+    Biquad(1.460326E+00f, -5.827534E-01f,  2.285060E-01f, 1.0f),  // 1段目
+    Biquad(1.483366E+00f, -8.175905E-01f, -1.243800E+00f, 1.0f),  // 2段目
+    Biquad(1.496830E+00f, -9.474507E-01f, -1.445014E+00f, 1.0f),  // 3段目
+    Biquad(1.504313E+00f, -9.896493E-01f, -1.484535E+00f, 1.0f)}; // 4段目
+const float G0_SM_ = 4*1.752428E-02f;   // 利得定数
 const int ORDER_SM_ = 8;    // 次数
-
-const int FS_ = 44100;  // 入力の標本化周波数: 44.1 kHz
+const int FS_ = 44100;      // 入力の標本化周波数: 44.1 kHz
diff -r a4f15be9afb7 -r 7dd696fe86c8 mbed.bld
--- a/mbed.bld	Sun Oct 07 04:31:25 2018 +0000
+++ b/mbed.bld	Thu Jan 31 12:40:34 2019 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/a7c7b631e539
\ No newline at end of file
+https://os.mbed.com/users/mbed_official/code/mbed/builds/3a7713b1edbc
\ No newline at end of file