Digital Analog Converter
Features
- Configurable 12- or 8 bit resolution.
- Left or right alignment of input data.
- External trigger options.
- DMA / interrupt support.
Configuration Register
DAC_CR
ENx | 0 | Disable DAC channel x (reset state) | ||
1 | Enable DAC channel x | |||
TENx | 0 | Disable Trigger of channel x (reset state) | ||
1 | Enable Trigger of channel x | |||
TSELx | 000 | Trigger: TIM6 TRGO event (reset state) | 100 | Trigger: TIM2 TRGO event |
001 | Trigger: TIM8 TRGO event | 101 | Trigger: TIM4 TRGO event | |
010 | Trigger: TIM7 TRGO event | 110 | Trigger: EXTI line 9 | |
011 | Trigger: TIM5 TRGO event | 111 | Trigger: software | |
DMAENx | 0 | Disable DMA of channel x (reset state) | ||
1 | Enable DMA of channel x |
Status Register
DAC_SR
DMAUDRx | 0 | No DMA underrun error of channel x occured |
1 | DMA underrun error of channel x occured |
* Writing 1 to clear flag.