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:
4:03c4518de836
Child:
6:9deca4a06c8c
diff -r 03c4518de836 -r ff25db28bc64 ADC_BuiltIn.hpp
--- a/ADC_BuiltIn.hpp	Mon Mar 16 23:59:24 2015 +0000
+++ b/ADC_BuiltIn.hpp	Thu Mar 26 12:41:31 2015 +0000
@@ -1,7 +1,7 @@
 //------------------------------------------------------
 // Class for ADC using TIM2 trigger -- Header
 //
-// 2015/03/14, Copyright (c) 2015 MIKAMI, Naoki
+// 2015/03/26, Copyright (c) 2015 MIKAMI, Naoki
 //------------------------------------------------------
 
 #ifndef ADC_BUILTIN_HPP
@@ -51,8 +51,8 @@
         // Constructor
         //      pin1:       Pin Name for input as A0, A1, etc.
         //      frequency:  Sampling frequency
-        //      pin2:       If use 2nd channel set this parameter
-        //      pin3:       If use 3rd channel set this parameter
+        //      pin2:       If use 2nd channel, set this parameter
+        //      pin3:       If use 3rd channel, set this parameter
         ADC_BuiltIn(PinName pin1, int frequency,
                  PinName pin2 = NC, PinName pin3 = NC);  
         
@@ -78,8 +78,6 @@
         // Software start
         virtual void SoftStart()
         { myAdc_->CR2 |= ADC_CR2_SWSTART; }
-        
-        uint32_t ReadSQR3() { return myAdc_->SQR3; }
     };
 }
 #endif  // ADC_BUILTIN_HPP