16.4.4 Independent trigger with single triangle generation
เพื่อกำหนดค่า the DAC ใน conversion mode นี้, ลำดับดังต่อไปนี้ถูกต้องการ :
• เซ็ต the two DAC channel trigger enable bits TEN1 และ TEN2
• กำหนดค่าแหล่งทริกที่แตกต่างกันโดยการเซ็ตค่าที่แตกต่างกันใน the TSEL1[2:0] และ TSEL2[2:0] bits
• กำหนดค่า the two DAC channel WAVEx[1:0] bits เป็น “1x” และ the same maximum amplitude value ใน the
MAMPx[3:0] bits
• โหลด the dual DAC channel data ลงใน the desired DHR register (DAC_DHR12RD, DAC_DHR12LD or
DAC_DHR8RD)
เมื่อ a DAC channel1 trigger มาถึง, the DAC channel1 triangle counter, ด้วย the same triangle amplitude, ถูกเพิ่มไปยัง the DHR1 register และผลรวมจะถูกส่งถ่ายลงใน DAC_DOR1 (three APB1 clock cycles ต่อมา). The DAC channel1 triangle counter จากนั้นจะถูกอัฟเดต.
เมื่อ a DAC channel2 trigger มาถึง, the DAC channel2 triangle counter, ด้วย the same triangle amplitude, ถูกเพิ่มไปยัง the DHR2 register และผลรวมจะถูกส่งถ่ายลงใน DAC_DOR2 (three APB1 clock cycles ต่อมา). The DAC channel2 triangle counter จากนั้นจะถูกอัฟเดต.