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:
4:063b26cc467a
Parent:
2:8cbfd28344db
Child:
5:fd3e47335bfa
--- a/main.cpp	Wed Oct 22 12:47:03 2014 +0000
+++ b/main.cpp	Thu Oct 23 00:12:36 2014 +0000
@@ -3,7 +3,7 @@
 //      Analog Input : A0
 //      Analog Output: MCP4922 using SPI
 //      A2: used for control volume of output
-// 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_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;