Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed F446_AD_DA_Multirate
Diff: main.cpp
- Revision:
- 5:aff3a2d4b41f
- Parent:
- 4:ea5c1ccf1c31
- Child:
- 6:2199a6874b78
--- a/main.cpp Tue Jun 05 23:35:43 2018 +0000
+++ b/main.cpp Fri Jun 15 13:33:41 2018 +0000
@@ -4,7 +4,7 @@
//
// 処理の内容:AD 変換器からの入力をそのまま DA 変換器に出力する
//
-// 2018/06/06, Copyright (c) 2018 MIKAMI, Naoki
+// 2018/06/15, Copyright (c) 2018 MIKAMI, Naoki
//----------------------------------------------------------------------
#include "F446_Multirate.hpp"
@@ -25,10 +25,11 @@
{
//------------------------------------------------------------
// ここにディジタルフィルタ等の処理を記述する
- float yn = myAdDa_.Input(); // これは入力信号に何も処理しない例
-// wait_us(94); // 標本化周波数が 10 kHz の場合,
- // 94 μs 以下の実行時間の信号処理であれば OK
+ float xn = myAdDa_.Input(); // 入力
+// wait_us(93); // 標本化周波数が 10 kHz の場合,
+ // 93 μs 以下の実行時間の信号処理であれば OK
+ float yn = xn; // これは入力信号に何も処理しない例
+ myAdDa_.Output(yn); // 出力
//------------------------------------------------------------
- myAdDa_.Output(yn); // 出力
}
}