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:
Wed Nov 12 09:09:57 2014 +0000
Parent:
4:063b26cc467a
Child:
6:7f7c922d5d6f
Commit message:
6

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 Oct 23 00:12:36 2014 +0000
+++ b/UIT_ACM1602NI.lib	Wed Nov 12 09:09:57 2014 +0000
@@ -1,1 +1,1 @@
-http://developer.mbed.org/users/MikamiUitOpen/code/UIT_ACM1602NI/#d8048b36d982
+http://developer.mbed.org/users/MikamiUitOpen/code/UIT_ACM1602NI/#7c6b2df4e60b
--- a/UIT_ADDA.lib	Thu Oct 23 00:12:36 2014 +0000
+++ b/UIT_ADDA.lib	Wed Nov 12 09:09:57 2014 +0000
@@ -1,1 +1,1 @@
-http://developer.mbed.org/users/MikamiUitOpen/code/UIT_ADDA/#77bc5550dc10
+http://developer.mbed.org/users/MikamiUitOpen/code/UIT_ADDA/#72fe42a4323c
--- a/main.cpp	Thu Oct 23 00:12:36 2014 +0000
+++ b/main.cpp	Wed Nov 12 09:09:57 2014 +0000
@@ -3,14 +3,13 @@
 //      Analog Input : A0
 //      Analog Output: MCP4922 using SPI
 //      A2: used for control volume of output
-// 2014/10/23, Copyright (c) 2014 MIKAMI, Naoki
+// 2014/11/12, Copyright (c) 2014 MIKAMI, Naoki
 //--------------------------------------------------------------
 
 #include "mbed.h"
 
 #include "ADC_Interrupt.hpp"    // for ADC using interrupt
 #include "DAC_MCP4922.hpp"      // for DAC MCP4922
-#include "ScfClockTim3.hpp"     // for clock supplied to SCF
 
 using namespace Mikami;
 
@@ -42,7 +41,7 @@
 
 int main()
 {
-    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 Oct 23 00:12:36 2014 +0000
+++ b/mbed.bld	Wed Nov 12 09:09:57 2014 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/552587b429a1
\ No newline at end of file
+http://mbed.org/users/mbed_official/code/mbed/builds/031413cf7a89
\ No newline at end of file