Prototype program of AD and DA using classes in UIT_ADDA. This program does not use interrupt of ADC for ST Nucleo F401RE. UIT_ADDA のクラスを使った AD および DA のためのプログラムの雛形.ADC の割り込みは使わないバージョン.ST Nucleo F401 用.
Dependencies: UIT_ACM1602NI UIT_ADDA mbed
Diff: main.cpp
- Revision:
- 3:14136cf84042
- Parent:
- 1:b4af5a0ad127
- Child:
- 4:9cace8ecbf02
--- a/main.cpp Wed Oct 22 09:01:57 2014 +0000 +++ b/main.cpp Thu Oct 23 00:10:19 2014 +0000 @@ -2,7 +2,7 @@ // 割り込みを使わずに AD DA を行う場合の雛形 // Analog Input : A0 // Analog Output: MCP4922 using SPI -// 2014/10/20, Copyright (c) 2014 MIKAMI, Naoki +// 2014/10/23, Copyright (c) 2014 MIKAMI, Naoki //-------------------------------------------------------------- #include "mbed.h" @@ -15,8 +15,8 @@ using namespace Mikami; const int FS_ = 10000; // Sampling frequency: 10 kHz -ADC_Base adc_(A0, FS_); // for AD -DAC_MCP4922 myDac_(DAC_MCP4922::DAC_A); // for DA +ADC_Base adc_(A0, FS_); // for AD +DAC_MCP4922 myDac_; // for DA int main() {