16.4.2 Independent trigger with single LFSR 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 เป็น “01” ด้วย the same LFSR mask value ใน the
MAMPx[3:0] bits
• โหลด the dual DAC channel data ลงใน the desired DHR register (DHR12RD, DHR12LD or DHR8RD)
เมื่อ a DAC channel1 trigger มาถึง, the LFSR1 counter, ด้วย the same mask, จะถูกเพิ่มไปยัง the DHR1 register และผลรวมจะถูกส่งถ่ายลงใน DAC_DOR1 (three APB1 clock cycles ต่อมา). จากนั้น the LFSR1 counter จะถูกอัฟเดต.
เมื่อ a DAC channel2 trigger มาถึง, the LFSR2 counter, ด้วย the same mask, จะถูกเพิ่มไปยัง the DHR2 register และผลรวมจะถูกส่งถ่ายลงใน DAC_DOR2 (three APB1 clock cycles ต่อมา). จากนั้น the LFSR2 counter จะถูกอัฟเดต.