超音波位置認識装置
/
ADC_DMA
AD変換をしている(DMA)
readme.txt@0:a621ce2e8838, 2018-07-17 (annotated)
- Committer:
- k0050288
- Date:
- Tue Jul 17 04:52:19 2018 +0000
- Revision:
- 0:a621ce2e8838
AD??(DMA)
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
k0050288 | 0:a621ce2e8838 | 1 | DMAでAD変換をするプログラム |
k0050288 | 0:a621ce2e8838 | 2 | |
k0050288 | 0:a621ce2e8838 | 3 | AD変換した値をSDカードにcsvで保存しています. |
k0050288 | 0:a621ce2e8838 | 4 | |
k0050288 | 0:a621ce2e8838 | 5 | 問題点(2018/07/13現在) |
k0050288 | 0:a621ce2e8838 | 6 | adc.cppの74行目 |
k0050288 | 0:a621ce2e8838 | 7 | |
k0050288 | 0:a621ce2e8838 | 8 | hdma_adc1.Init.Priority = DMA_PRIORITY_HIGH; |
k0050288 | 0:a621ce2e8838 | 9 | |
k0050288 | 0:a621ce2e8838 | 10 | DMA_PRIORITY_HIGH を DMA_PRIORITY_VERY_HIGH |
k0050288 | 0:a621ce2e8838 | 11 | にしてしまうとAD変換が行われない問題がある. |
k0050288 | 0:a621ce2e8838 | 12 | |
k0050288 | 0:a621ce2e8838 | 13 | DMA_PRIORITY_VERY_HIGH にすると変換速度が上がると思うけど… |
k0050288 | 0:a621ce2e8838 | 14 | DMA_PRIORITY_HIGH だと1.5MHzの変換速度を達成している. |