Prototype program of AD and DA using classes in UIT_ADDA. This program uses interrupt of ADC for ST Nucleo F401RE. UIT_ADDA のクラスを使った AD および DA のためのプログラムの雛形.ADC の割り込みを使うバージョン.ST Nucleo F401 用.
Diff: main.cpp
- Revision:
- 3:4d766c291dba
- Parent:
- 1:e5e7a45f0cd6
- Child:
- 4:c195f4d49c91
--- a/main.cpp Wed Oct 22 09:02:22 2014 +0000 +++ b/main.cpp Thu Oct 23 00:07:19 2014 +0000 @@ -14,8 +14,8 @@ using namespace Mikami; 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 +ADC_Intr adc_(A0, FS_, A1, A2); // for AD +DAC_MCP4922 myDac_; // for DA uint16_t a2_ = 0; uint16_t a21_ = 0;