![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
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:
- 4:9cace8ecbf02
- Parent:
- 3:14136cf84042
- Child:
- 7:2b1c1c96e7f7
diff -r 14136cf84042 -r 9cace8ecbf02 main.cpp --- a/main.cpp Thu Oct 23 00:10:19 2014 +0000 +++ b/main.cpp Wed Nov 12 09:03:17 2014 +0000 @@ -2,14 +2,13 @@ // 割り込みを使わずに AD DA を行う場合の雛形 // Analog Input : A0 // Analog Output: MCP4922 using SPI -// 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 #include "ACM1602NI.hpp" // for LCD display using namespace Mikami; @@ -20,7 +19,7 @@ int main() { - ScfClockTim3(420000); // cutoff frequency: 4.2 kHz + myDac_.ScfClockTim3(420000); // cutoff frequency: 4.2 kHz while (true) {