stm32 /stm32wl3 /STM32WL33 /DAC /CR

Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text

Interpret as CR

31 2827 2423 2019 1615 1211 87 43 0 0 0 0 0 0 0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 (EN)EN 0 (BON)BON 0 (TEN)TEN 0TSEL0WAVE 0MAMP0 (DMAEN)DMAEN 0 (DMAUDRIE)DMAUDRIE 0 (CMPEN)CMPEN 0 (VCMEN)VCMEN 0 (VCMON)VCMON

Description

CR register

Fields

EN

EN: DAC channel enable This bit is set and cleared by software to enable/disable DAC

channel.

0: DAC channel disabled

1: DAC channel enabled

BON

BON: DAC channel output buffer enable. This bit is set and cleared by software to

enable/disable DAC channel output buffer.

0: DAC channel output buffer disabled

1: DAC channel output buffer enabled

TEN

TEN: DAC channel trigger enable This bit is set and cleared by software to enable/disable

DAC channel trigger.

0: DAC channel trigger disabled and data written into the DAC_DHR register are transferred

one APB0 clock cycle later to the DAC_DOR register

1: DAC channel trigger enabled and data from the DAC_DHR register are transferred three

APB0 clock cycles later to the DAC_DOR register

Note: When software trigger is selected, the transfer from the DAC_DHR

register to the DAC_DOR register takes only one APB0 clock cycle.

TSEL

TSEL[2:0]: DAC channel trigger selection These bits select the external event used to trigger

DAC channel.

000: Timer 16 TRGO event

001: PA8 pin event from SYSCFG

010 to 011: Reserved

111: Software trigger

Only used if bit TEN = 1 (DAC channel trigger enabled).

WAVE

WAVE[1:0]: DAC channel noise/triangle wave generation enable These bits are set and

cleared by software.

00: wave generation disabled

01: Noise wave generation enabled

1x: Triangle wave generation enabled

Note: Only used if bit TEN = 1 (DAC channel trigger enabled).

MAMP

MAMP[3:0]: DAC channel mask amplitude selector These bits are written by software to

select mask in wave generation mode or amplitude in triangle generation mode.

0000: Unmask bit0 of LFSR triangle amplitude equal to 1

0001: Unmask bits[1:0] of LFSR triangle amplitude equal to 3

0010: Unmask bits[2:0] of LFSR triangle amplitude equal to 7

0011: Unmask bits[3:0] of LFSR triangle amplitude equal to 15

0100: Unmask bits[4:0] of LFSR triangle amplitude equal to 31

greater than or equal to 0101: Unmask bits[5:0] of LFSR triangle amplitude equal to 63

DMAEN

DMAEN: DAC channel DMA enable This bit is set and cleared by software.

0: DAC channel DMA mode disabled

1: DAC channel DMA mode enabled

DMAUDRIE

DMAUDRIE: DAC channel DMA Underrun Interrupt enable This bit is set and cleared by

software.

0: DAC channel DMA Underrun Interrupt disabled

1: DAC channel DMA Underrun Interrupt enabled

CMPEN

CMPEN: DAC channel output to COMP INMINUS enable. This bit is set and cleared by

software.

0: DAC channel output to COMP INMINUS disabled

1: DAC channel output to COMP INMINUS enabled

VCMEN

VCMEN: DAC channel output to VCM BUFFER enable. This bit is set and cleared by

software.

0: DAC channel output to VCM BUFFER disabled

1: DAC channel output to VCM BUFFER enabled

VCMON

VCMON: VCMBUFF power-up. This bit is set and cleared by software.

0: VCM BUFFER OFF

1: VCM BUFFER ON

Links

()