Class library for internal ADC and DAC connected by SPI. This library support clock generator using TIM3 for switched-capacitor filter to smooth output signal of DAC. This library includes derivative class to support interrupt occured in end of AD conversion. Validated for ST Nucleo F401RE, F411RE. 内蔵 ADC と,SPI 接続の DAC のためのクラスライブラリ.DAC の出力信号を平滑化するためのスイッチトキャパシタフィルタ用のクロックは TIM3 を使用.ST Nucleo F401RE,F411RE で動作を確認.

Dependents:   UITDSP_ADDA_Example UIT2_MovingAv_Intr UIT2_VariableFIR UIT2_VowelSynthesizer ... more

Revision:
5:ff25db28bc64
Parent:
2:0cf4cc40ee02
Child:
7:14cdca8b48f8
--- a/DAC_MCP4922Dual.hpp	Mon Mar 16 23:59:24 2015 +0000
+++ b/DAC_MCP4922Dual.hpp	Thu Mar 26 12:41:31 2015 +0000
@@ -1,6 +1,6 @@
 //------------------------------------------------------
 // Class for dual channel DAC in MCP4922
-// 2015/02/03, Copyright (c) 2015 MIKAMI, Naoki
+// 2015/03/26, Copyright (c) 2015 MIKAMI, Naoki
 //------------------------------------------------------
 
 #ifndef DAC_MCP4922_DUAL_HPP
@@ -43,6 +43,10 @@
             while (IsBusy()) {}
             Ldac();
         }
+
+    private:
+        void Wait()     // Little wait
+        {   __NOP(); __NOP(); __NOP(); }
     };
 }
 #endif  // DAC_MCP4922_DUAL_HPP