Prototype program of AD and DA using classes in UIT_ADDA. This program uses interrupt of ADC. Second channnel input is used to control volume of output for ST Nucleo F401RE. UIT_ADDA のクラスを使った AD および DA のためのプログラムの雛形.ADC の割り込みを使うバージョン.2番目のチャンネルの ADC の入力は,出力信号の大きさをコントロールするために使う.ST Nucleo F401 用.
Dependencies: UIT_ACM1602NI UIT_ADDA mbed
Revision 2:8cbfd28344db, committed 2014-10-20
- Comitter:
- MikamiUitOpen
- Date:
- Mon Oct 20 09:28:53 2014 +0000
- Parent:
- 1:43a38eaed0fc
- Child:
- 3:e482411a261f
- Commit message:
- 2
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Mon Oct 20 08:01:48 2014 +0000 +++ b/main.cpp Mon Oct 20 09:28:53 2014 +0000 @@ -14,7 +14,7 @@ using namespace Mikami; -const int FS_ = 10000; // Sampling frequency: 24 kHz +const int FS_ = 10000; // Sampling frequency: 10 kHz ADC_Intr adc_(A0, FS_, A1, A2); // for AD DAC_MCP4922 myDac_(DAC_MCP4922::DAC_A); // for DA