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

Files at this revision

API Documentation at this revision

Comitter:
MikamiUitOpen
Date:
Thu Oct 23 00:12:36 2014 +0000
Parent:
3:e482411a261f
Child:
5:fd3e47335bfa
Commit message:
5

Changed in this revision

UIT_ADDA.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/UIT_ADDA.lib	Wed Oct 22 12:47:03 2014 +0000
+++ b/UIT_ADDA.lib	Thu Oct 23 00:12:36 2014 +0000
@@ -1,1 +1,1 @@
-http://developer.mbed.org/users/MikamiUitOpen/code/UIT_ADDA/#2a3b4ed3eb58
+http://developer.mbed.org/users/MikamiUitOpen/code/UIT_ADDA/#77bc5550dc10
--- 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;