Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
stm32:peripherals:dac [2016/03/01 13:19] – created feur | stm32:peripherals:dac [2022/12/28 08:14] (current) – ruan | ||
---|---|---|---|
Line 13: | Line 13: | ||
\\ | \\ | ||
- | ===== Programming Example ===== | + | |
===== Configuration Register ===== | ===== Configuration Register ===== | ||
+ | |||
+ | ==== DAC_CR ==== | ||
+ | |||
+ | \\ {{dac_reg_cr.svg}} \\ \\ | ||
+ | |||
+ | |< 100% 5em 5em 20em 5em >| | ||
+ | |ENx|0|Disable DAC channel x (reset state)||| | ||
+ | |::: | ||
+ | |TENx|0|Disable Trigger of channel x (reset state)||| | ||
+ | |::: | ||
+ | |TSELx|000|Trigger: | ||
+ | |::: | ||
+ | |::: | ||
+ | |::: | ||
+ | |DMAENx|0|Disable DMA of channel x (reset state)||| | ||
+ | |::: | ||
===== Status Register ===== | ===== Status Register ===== | ||
+ | |||
+ | ==== DAC_SR ==== | ||
+ | |||
+ | \\ {{dac_reg_sr.svg}} \\ \\ | ||
+ | |||
+ | |< 100% 5em >| | ||
+ | |DMAUDRx|0|No DMA underrun error of channel x occured| | ||
+ | |:::|1|DMA underrun error of channel x occured| | ||
+ | |||
+ | * Writing 1 to clear flag. \\ \\ | ||
===== Data Registers ===== | ===== Data Registers ===== | ||
+ | ==== DAC_DHR8Rx - DHR8R1, DHR8R2 and DHR8RD registers ==== | ||
+ | |||
+ | \\ {{dac_reg_dhr8r_.svg}} \\ \\ | ||
+ | |||
+ | ==== DAC_DHR12Rx - DHR12R1, DHR12R2 and DHR12RD registers ==== | ||
+ | |||
+ | \\ {{dac_reg_dhr12r_.svg}} \\ \\ | ||
+ | |||
+ | ==== DAC_DHR12Lx - DHR12L1, DHR12L2 and DHR12LD registers ==== | ||
+ | |||
+ | \\ {{dac_reg_dhr12l_.svg}} \\ \\ | ||
+ | |||
+ | ==== DAC_DORx - Data output register ==== | ||
- | ===== Legend ===== | + | \\ {{dac_reg_dor_.svg}} \\ \\ |
- | \\ {{legend.svg]] \\ \\ |