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:
Fri Dec 19 06:14:36 2014 +0000
Parent:
9:4e80323d041b
Child:
11:34d9ef22c0ce
Commit message:
11

Changed in this revision

UIT_ACM1602NI.lib Show annotated file Show diff for this revision Revisions of this file
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
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- a/UIT_ACM1602NI.lib	Thu Nov 27 08:47:43 2014 +0000
+++ b/UIT_ACM1602NI.lib	Fri Dec 19 06:14:36 2014 +0000
@@ -1,1 +1,1 @@
-http://developer.mbed.org/users/MikamiUitOpen/code/UIT_ACM1602NI/#0936ba74019a
+http://developer.mbed.org/users/MikamiUitOpen/code/UIT_ACM1602NI/#b911485a6f4d
--- a/UIT_ADDA.lib	Thu Nov 27 08:47:43 2014 +0000
+++ b/UIT_ADDA.lib	Fri Dec 19 06:14:36 2014 +0000
@@ -1,1 +1,1 @@
-http://developer.mbed.org/users/MikamiUitOpen/code/UIT_ADDA/#a764fe59d343
+http://developer.mbed.org/users/MikamiUitOpen/code/UIT_ADDA/#f2b8af192558
--- a/main.cpp	Thu Nov 27 08:47:43 2014 +0000
+++ b/main.cpp	Fri Dec 19 06:14:36 2014 +0000
@@ -1,9 +1,10 @@
 //--------------------------------------------------------------
 // 割り込みを使って AD DA を行う場合の雛形2(入力:2 チャンネル)
-//      Analog Input : A0
+//      Analog Input : A0, A3 (A1: not used)
+//              A3 is used to cotrol volume of output signal
 //      Analog Output: MCP4922 using SPI
 //      A2: used for control volume of output
-// 2014/11/20, Copyright (c) 2014 MIKAMI, Naoki
+// 2014/12/19, Copyright (c) 2014 MIKAMI, Naoki
 //--------------------------------------------------------------
 
 #include "ADC_Interrupt.hpp"    // for ADC using interrupt
@@ -39,7 +40,7 @@
 
 int main()
 {
-    myDac_.ScfClockTim3(420000);      // cutoff frequency: 4.2 kHz
+    myDac_.ScfClockTim3(420000);    // cutoff frequency: 4.2 kHz
     adc_.SetIntrVec(AdcIsr);    // Assign ISR for ADC interrupt
 
     while (true)
--- a/mbed.bld	Thu Nov 27 08:47:43 2014 +0000
+++ b/mbed.bld	Fri Dec 19 06:14:36 2014 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/031413cf7a89
\ No newline at end of file
+http://mbed.org/users/mbed_official/code/mbed/builds/4fc01daae5a5
\ No newline at end of file