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:
- 8:f933fcd30408
- Parent:
- 7:6a9c1633dd90
- Child:
- 9:72fe42a4323c
diff -r 6a9c1633dd90 -r f933fcd30408 ADC_Base.hpp --- a/ADC_Base.hpp Tue Nov 11 10:04:00 2014 +0000 +++ b/ADC_Base.hpp Wed Nov 12 08:56:31 2014 +0000 @@ -40,8 +40,8 @@ // for normalize static const float AMP_ = 1.0f/2048.0f; - ADC_TypeDef* const myAdc_; - + ADC_TypeDef* const myAdc_; + // Wait until completion of AD conversion void WaitDone() { while((myAdc_->SR & ADC_SR_EOC) == RESET); }