Class library for internal ADC and DAC connected by SPI. ADC is triggered by TIM2. 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. Slave select of SPI for DAC is generated using TIM4. Validated for ST Nucleo F401RE, F411RE. New version. 内蔵 ADC と,SPI 接続の DAC のためのクラスライブラリ.ADC の変換開始トリガは TIM2 で発生.DAC の出力信号を平滑化するためのスイッチトキャパシタフィルタ用のクロックは TIM3 を使用.DAC の SPI 用スレーブ選択信号は TIM4 で発生.ST Nucleo F401RE,F411RE で動作を確認.新バージョン
Dependents: UIT2_MovingAverage UIT2_AllpassReverb UIT2_CombReverb UIT2_FIR_LPF_Symmetry ... more
Diff: ADC_Base.hpp
- Revision:
- 7:6a9c1633dd90
- Parent:
- 5:651809e96a2d
- Child:
- 8:f933fcd30408
diff -r 6989472e84c4 -r 6a9c1633dd90 ADC_Base.hpp --- a/ADC_Base.hpp Mon Nov 10 06:51:18 2014 +0000 +++ b/ADC_Base.hpp Tue Nov 11 10:04:00 2014 +0000 @@ -4,7 +4,7 @@ // If you use this class on Nucleo F411, // initialization of the class must be done // in main() routine. -// 2014/10/10, Copyright (c) 2014 MIKAMI, Naoki +// 2014/11/11, Copyright (c) 2014 MIKAMI, Naoki //------------------------------------------------------ #ifndef ADC_BASE_HPP @@ -17,9 +17,11 @@ class ADC_Base { private: - // Using mbed library for ADC + // Following object of AnalogIn class will be + // initialized by menber initializer AnalogIn adc_; - // Default constructor is not defined in AnalogIn class + // Following two objects of AnalogIn class will be + // initailized by regular excutable statements AnalogIn* adc2_; AnalogIn* adc3_;