STM32F1 DAC

Started by tha, October 17, 2020, 08:36:45 AM

Previous topic - Next topic

tha



Bits 31:2 Reserved.
Bit 1 SWTRIG2: DAC channel2 software trigger
บิตนี้ถูกเซ็ตและเคลียร์โดย software เพื่อ enable/disable the software trigger.
     0: Software trigger disabled
     1: Software trigger enabled
Note: บิตนี้ถูก reset โดย hardware (one APB1 clock cycle ต่อมา) ทันทีที่ the DAC_DHR2 register value ถูกโหลดไปยัง the DAC_DOR2 register.

Bit 0 SWTRIG1: DAC channel1 software trigger
บิตนี้ถูกเซ็ตและเคลียร์โดย software เพื่อ enable/disable the software trigger.
     0: Software trigger disabled
     1: Software trigger enabled
Note: บิตนี้ถูก reset โดย hardware (one APB1 clock cycle ต่อมา) ทันทีที่ the DAC_DHR1 register value ถูกโหลดไปยัง the DAC_DOR1 register.

tha



Bits 31:12 Reserved.
Bit 11:0 DACC1DHR[11:0]: DAC channel1 12-bit right-aligned data
บิตเหล่านี้ถูกเขียนโดย software ซึ่งระบุ 12-bit data สำหรับ DAC channel1.

tha



Bits 31:16 Reserved.
Bit 15:4 DACC1DHR[11:0]: DAC channel1 12-bit left-aligned data
บิตเหล่านี้ถูกเขียนโดย software ซึ่งระบุ 12-bit data สำหรับ DAC channel1.
Bits 3:0 Reserved.


tha



Bits 31:8 Reserved.
Bits 7:0 DACC1DHR[7:0]: DAC channel1 8-bit right-aligned data
     บิตเหล่านี้ถูกเขียนโดย software ซึ่งระบุ 8-bit data สำหรับ DAC channel1.

tha


tha


tha


tha



ปล. ก็จบไปอีกตอน เอาอะไรต่อดีหล่ะ TIM1&TIM8 เลยนะ จะเอาอะไรก็บอกมา พรุ่งนี้ค่อยแปล