\n

DAC

Peripheral Memory Blocks

address_offset : 0x0 Bytes (0x0)
size : 0x400 byte (0x0)
mem_usage : registers
protection : not protected

Registers

DAC_CR (CR)

DAC_DHR8R1 (DHR8R1)

DAC_DHR12R2 (DHR12R2)

DAC_DHR12L2 (DHR12L2)

DAC_DHR8R2 (DHR8R2)

DAC_DHR12RD (DHR12RD)

DAC_DHR12LD (DHR12LD)

DAC_DHR8RD (DHR8RD)

DAC_DOR1 (DOR1)

DAC_DOR2 (DOR2)

DAC_SR (SR)

DAC_CCR (CCR)

DAC_MCR (MCR)

DAC_SWTRGR (SWTRGR)

DAC_SHSR1 (SHSR1)

DAC_SHSR2 (SHSR2)

DAC_SHHR (SHHR)

DAC_SHRR (SHRR)

DAC_DHR12R1 (DHR12R1)

DAC_DHR12L1 (DHR12L1)


DAC_CR (CR)

DAC control register
address_offset : 0x0 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

DAC_CR DAC_CR read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 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 EN1 TEN1 TSEL10 TSEL11 TSEL12 TSEL13 WAVE1 MAMP1 DMAEN1 DMAUDRIE1 CEN1 HFSEL EN2 TEN2 TSEL20 TSEL21 TSEL22 TSEL23 WAVE2 MAMP2 DMAEN2 DMAUDRIE2 CEN2

EN1 : DAC channel1 enable This bit is set and cleared by software to enable/disable DAC channel1.
bits : 0 - 0 (1 bit)

TEN1 : DAC channel1 trigger enable
bits : 1 - 1 (1 bit)

TSEL10 : TSEL10
bits : 2 - 2 (1 bit)

TSEL11 : TSEL11
bits : 3 - 3 (1 bit)

TSEL12 : TSEL12
bits : 4 - 4 (1 bit)

TSEL13 : TSEL13
bits : 5 - 5 (1 bit)

WAVE1 : DAC channel1 noise/triangle wave generation enable These bits are set and cleared by software. Note: Only used if bit TEN1 = 1 (DAC channel1 trigger enabled).
bits : 6 - 7 (2 bit)

MAMP1 : DAC channel1 mask/amplitude selector These bits are written by software to select mask in wave generation mode or amplitude in triangle generation mode. = 1011: Unmask bits[11:0] of LFSR/ triangle amplitude equal to 4095
bits : 8 - 11 (4 bit)

DMAEN1 : DAC channel1 DMA enable This bit is set and cleared by software.
bits : 12 - 12 (1 bit)

DMAUDRIE1 : DAC channel1 DMA Underrun Interrupt enable This bit is set and cleared by software.
bits : 13 - 13 (1 bit)

CEN1 : DAC Channel 1 calibration enable This bit is set and cleared by software to enable/disable DAC channel 1 calibration, it can be written only if bit EN1=0 into DAC_CR (the calibration mode can be entered/exit only when the DAC channel is disabled) Otherwise, the write operation is ignored.
bits : 14 - 14 (1 bit)

HFSEL : HFSEL
bits : 15 - 15 (1 bit)

EN2 : DAC channel2 enable This bit is set and cleared by software to enable/disable DAC channel2.
bits : 16 - 16 (1 bit)

TEN2 : DAC channel2 trigger enable
bits : 17 - 17 (1 bit)

TSEL20 : TSEL20
bits : 18 - 18 (1 bit)

TSEL21 : TSEL21
bits : 19 - 19 (1 bit)

TSEL22 : TSEL22
bits : 20 - 20 (1 bit)

TSEL23 : TSEL23
bits : 21 - 21 (1 bit)

WAVE2 : DAC channel2 noise/triangle wave generation enable These bits are set/reset by software. 1x: Triangle wave generation enabled Note: Only used if bit TEN2 = 1 (DAC channel2 trigger enabled)
bits : 22 - 23 (2 bit)

MAMP2 : DAC channel2 mask/amplitude selector These bits are written by software to select mask in wave generation mode or amplitude in triangle generation mode. = 1011: Unmask bits[11:0] of LFSR/ triangle amplitude equal to 4095
bits : 24 - 27 (4 bit)

DMAEN2 : DAC channel2 DMA enable This bit is set and cleared by software.
bits : 28 - 28 (1 bit)

DMAUDRIE2 : DAC channel2 DMA underrun interrupt enable This bit is set and cleared by software.
bits : 29 - 29 (1 bit)

CEN2 : DAC Channel 2 calibration enable This bit is set and cleared by software to enable/disable DAC channel 2 calibration, it can be written only if bit EN2=0 into DAC_CR (the calibration mode can be entered/exit only when the DAC channel is disabled) Otherwise, the write operation is ignored.
bits : 30 - 30 (1 bit)


DAC_DHR8R1 (DHR8R1)

DAC channel1 8-bit right aligned data holding register
address_offset : 0x10 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

DAC_DHR8R1 DAC_DHR8R1 read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 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 DACC1DHR

DACC1DHR : DAC channel1 8-bit right-aligned data These bits are written by software which specifies 8-bit data for DAC channel1.
bits : 0 - 7 (8 bit)


DAC_DHR12R2 (DHR12R2)

DAC channel2 12-bit right aligned data holding register
address_offset : 0x14 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

DAC_DHR12R2 DAC_DHR12R2 read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 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 DACC2DHR

DACC2DHR : DAC channel2 12-bit right-aligned data These bits are written by software which specifies 12-bit data for DAC channel2.
bits : 0 - 11 (12 bit)


DAC_DHR12L2 (DHR12L2)

DAC channel2 12-bit left aligned data holding register
address_offset : 0x18 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

DAC_DHR12L2 DAC_DHR12L2 read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 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 DACC2DHR

DACC2DHR : DAC channel2 12-bit left-aligned data These bits are written by software which specify 12-bit data for DAC channel2.
bits : 4 - 15 (12 bit)


DAC_DHR8R2 (DHR8R2)

DAC channel2 8-bit right-aligned data holding register
address_offset : 0x1C Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

DAC_DHR8R2 DAC_DHR8R2 read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 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 DACC2DHR

DACC2DHR : DAC channel2 8-bit right-aligned data These bits are written by software which specifies 8-bit data for DAC channel2.
bits : 0 - 7 (8 bit)


DAC_DHR12RD (DHR12RD)

Dual DAC 12-bit right-aligned data holding register
address_offset : 0x20 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

DAC_DHR12RD DAC_DHR12RD read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 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 DACC1DHR DACC2DHR

DACC1DHR : DAC channel1 12-bit right-aligned data These bits are written by software which specifies 12-bit data for DAC channel1.
bits : 0 - 11 (12 bit)

DACC2DHR : DAC channel2 12-bit right-aligned data These bits are written by software which specifies 12-bit data for DAC channel2.
bits : 16 - 27 (12 bit)


DAC_DHR12LD (DHR12LD)

DUAL DAC 12-bit left aligned data holding register
address_offset : 0x24 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

DAC_DHR12LD DAC_DHR12LD read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 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 DACC1DHR DACC2DHR

DACC1DHR : DAC channel1 12-bit left-aligned data These bits are written by software which specifies 12-bit data for DAC channel1.
bits : 4 - 15 (12 bit)

DACC2DHR : DAC channel2 12-bit left-aligned data These bits are written by software which specifies 12-bit data for DAC channel2.
bits : 20 - 31 (12 bit)


DAC_DHR8RD (DHR8RD)

DUAL DAC 8-bit right aligned data holding register
address_offset : 0x28 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

DAC_DHR8RD DAC_DHR8RD read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 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 DACC1DHR DACC2DHR

DACC1DHR : DAC channel1 8-bit right-aligned data These bits are written by software which specifies 8-bit data for DAC channel1.
bits : 0 - 7 (8 bit)

DACC2DHR : DAC channel2 8-bit right-aligned data These bits are written by software which specifies 8-bit data for DAC channel2.
bits : 8 - 15 (8 bit)


DAC_DOR1 (DOR1)

DAC channel1 data output register
address_offset : 0x2C Bytes (0x0)
size : 32 bit
access : read-only
reset_value : 0x0
reset_Mask : 0x0

DAC_DOR1 DAC_DOR1 read-only 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 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 DACC1DOR

DACC1DOR : DAC channel1 data output These bits are read-only, they contain data output for DAC channel1.
bits : 0 - 11 (12 bit)


DAC_DOR2 (DOR2)

DAC channel2 data output register
address_offset : 0x30 Bytes (0x0)
size : 32 bit
access : read-only
reset_value : 0x0
reset_Mask : 0x0

DAC_DOR2 DAC_DOR2 read-only 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 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 DACC2DOR

DACC2DOR : DAC channel2 data output These bits are read-only, they contain data output for DAC channel2.
bits : 0 - 11 (12 bit)


DAC_SR (SR)

DAC status register
address_offset : 0x34 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

DAC_SR DAC_SR read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 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 DMAUDR1 CAL_FLAG1 BWST1 DMAUDR2 CAL_FLAG2 BWST2

DMAUDR1 : DAC channel1 DMA underrun flag This bit is set by hardware and cleared by software (by writing it to 1).
bits : 13 - 13 (1 bit)
access : read-write

CAL_FLAG1 : DAC Channel 1 calibration offset status This bit is set and cleared by hardware
bits : 14 - 14 (1 bit)
access : read-only

BWST1 : DAC Channel 1 busy writing sample time flag This bit is systematically set just after Sample & Hold mode enable and is set each time the software writes the register DAC_SHSR1, It is cleared by hardware when the write operation of DAC_SHSR1 is complete. (It takes about 3LSI periods of synchronization).
bits : 15 - 15 (1 bit)
access : read-only

DMAUDR2 : DAC channel2 DMA underrun flag This bit is set by hardware and cleared by software (by writing it to 1).
bits : 29 - 29 (1 bit)
access : read-write

CAL_FLAG2 : DAC Channel 2 calibration offset status This bit is set and cleared by hardware
bits : 30 - 30 (1 bit)
access : read-only

BWST2 : DAC Channel 2 busy writing sample time flag This bit is systematically set just after Sample & Hold mode enable and is set each time the software writes the register DAC_SHSR2, It is cleared by hardware when the write operation of DAC_SHSR2 is complete. (It takes about 3 LSI periods of synchronization).
bits : 31 - 31 (1 bit)
access : read-only


DAC_CCR (CCR)

DAC calibration control register
address_offset : 0x38 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

DAC_CCR DAC_CCR read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 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 OTRIM1 OTRIM2

OTRIM1 : DAC Channel 1 offset trimming value
bits : 0 - 4 (5 bit)

OTRIM2 : DAC Channel 2 offset trimming value
bits : 16 - 20 (5 bit)


DAC_MCR (MCR)

DAC mode control register
address_offset : 0x3C Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

DAC_MCR DAC_MCR read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 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 MODE1 MODE2

MODE1 : DAC Channel 1 mode These bits can be written only when the DAC is disabled and not in the calibration mode (when bit EN1=0 and bit CEN1 =0 in the DAC_CR register). If EN1=1 or CEN1 =1 the write operation is ignored. They can be set and cleared by software to select the DAC Channel 1 mode: DAC Channel 1 in normal Mode DAC Channel 1 in sample & hold mode
bits : 0 - 2 (3 bit)

MODE2 : DAC Channel 2 mode These bits can be written only when the DAC is disabled and not in the calibration mode (when bit EN2=0 and bit CEN2 =0 in the DAC_CR register). If EN2=1 or CEN2 =1 the write operation is ignored. They can be set and cleared by software to select the DAC Channel 2 mode: DAC Channel 2 in normal Mode DAC Channel 2 in sample & hold mode
bits : 16 - 18 (3 bit)


DAC_SWTRGR (SWTRGR)

DAC software trigger register
address_offset : 0x4 Bytes (0x0)
size : 32 bit
access : write-only
reset_value : 0x0
reset_Mask : 0x0

DAC_SWTRGR DAC_SWTRGR write-only 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 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 SWTRIG1 SWTRIG2

SWTRIG1 : DAC channel1 software trigger This bit is set by software to trigger the DAC in software trigger mode. Note: This bit is cleared by hardware (one APB1 clock cycle later) once the DAC_DHR1 register value has been loaded into the DAC_DOR1 register.
bits : 0 - 0 (1 bit)

SWTRIG2 : DAC channel2 software trigger This bit is set by software to trigger the DAC in software trigger mode. Note: This bit is cleared by hardware (one APB1 clock cycle later) once the DAC_DHR2 register value has been loaded into the DAC_DOR2 register.
bits : 1 - 1 (1 bit)


DAC_SHSR1 (SHSR1)

DAC Sample and Hold sample time register 1
address_offset : 0x40 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

DAC_SHSR1 DAC_SHSR1 read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 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 TSAMPLE1

TSAMPLE1 : DAC Channel 1 sample Time (only valid in sample & hold mode) These bits can be written when the DAC channel1 is disabled or also during normal operation. in the latter case, the write can be done only when BWSTx of DAC_SR register is low, If BWSTx=1, the write operation is ignored.
bits : 0 - 9 (10 bit)


DAC_SHSR2 (SHSR2)

DAC Sample and Hold sample time register 2
address_offset : 0x44 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

DAC_SHSR2 DAC_SHSR2 read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 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 TSAMPLE2

TSAMPLE2 : DAC Channel 2 sample Time (only valid in sample & hold mode) These bits can be written when the DAC channel2 is disabled or also during normal operation. in the latter case, the write can be done only when BWSTx of DAC_SR register is low, if BWSTx=1, the write operation is ignored.
bits : 0 - 9 (10 bit)


DAC_SHHR (SHHR)

DAC Sample and Hold hold time register
address_offset : 0x48 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

DAC_SHHR DAC_SHHR read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 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 THOLD1 THOLD2

THOLD1 : DAC Channel 1 hold Time (only valid in sample & hold mode) Hold time= (THOLD[9:0]) x T LSI
bits : 0 - 9 (10 bit)

THOLD2 : DAC Channel 2 hold time (only valid in sample & hold mode). Hold time= (THOLD[9:0]) x T LSI
bits : 16 - 25 (10 bit)


DAC_SHRR (SHRR)

DAC Sample and Hold refresh time register
address_offset : 0x4C Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

DAC_SHRR DAC_SHRR read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 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 TREFRESH1 TREFRESH2

TREFRESH1 : DAC Channel 1 refresh Time (only valid in sample & hold mode) Refresh time= (TREFRESH[7:0]) x T LSI
bits : 0 - 7 (8 bit)

TREFRESH2 : DAC Channel 2 refresh Time (only valid in sample & hold mode) Refresh time= (TREFRESH[7:0]) x T LSI
bits : 16 - 23 (8 bit)


DAC_DHR12R1 (DHR12R1)

DAC channel1 12-bit right-aligned data holding register
address_offset : 0x8 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

DAC_DHR12R1 DAC_DHR12R1 read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 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 DACC1DHR

DACC1DHR : DAC channel1 12-bit right-aligned data These bits are written by software which specifies 12-bit data for DAC channel1.
bits : 0 - 11 (12 bit)


DAC_DHR12L1 (DHR12L1)

DAC channel1 12-bit left aligned data holding register
address_offset : 0xC Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

DAC_DHR12L1 DAC_DHR12L1 read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 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 DACC1DHR

DACC1DHR : DAC channel1 12-bit left-aligned data These bits are written by software which specifies 12-bit data for DAC channel1.
bits : 4 - 15 (12 bit)



Is something missing? Is something wrong? can you help correct it ? Please contact us at info@chipselect.org !

This website is sponsored by EmbeetleEmbeetle, an IDE designed from scratch for embedded software developers.