Reference DAC usage requires application ownership. For semaphore allocation in TI software, see Section 20.3.3.3.
The System CPU can use the peripheral in TI-RTOS power modes Active and Idle. In this case, set AUX_SYSIF:PEROPRATE.ANAIF_DAC_OP_RATE to BUS_RATE.
The System CPU can use the peripheral in Standby TI-RTOS power mode. In this case, the System CPU must set AON_PMCTL.AUXSCECLK.PD_SRC to SCLK_LF and switch between Low-Power and Power-Down operational modes. The following sequence is required:
- Set AUX_SYSIF:PEROPRATE.ANAIF_DAC_OP_RATE to SCE_RATE.
- Set AUX_SYSIF:OPMODEREQ to LP.
- Set the required AUX_ANAIF:DACVALUE.
- Configure AUX_ANAIF:DACCTL:
- Set DAC_PRECHARGE_EN to desired value.
- Set DAC_VOUT_SEL to desired value.
- Set AUX_ANAIF:DACCTL.DAC_BUFFER_EN to 0.
- Set AUX_ANAIF:LPMBIASCTL to 1.
- Wait 15 µs.
- Set AUX_ANAIF:DACSMPLCFG0.CLKDIV to 0.
- Configure AUX_ANAIF:DACSMPLCFG1:
- Set H_PER to 1.
- Set L_PER to 0.
- Set SETUP_CNT to 0.
- Set HOLD_INTERVAL to 0.
- Set AUX_ANAIF:DACSMPLCTL to 1 to enable sample clock generation.
- Set AUX_ANAIF:DACSMPLCFG1.H_PER to 0.
- Wait for the required time to charge the S-H capacitor to the requested voltage.
- Set AUX_SYSIF:OPMODEREQ to PDLP.
- Enter sleep and wait for interrupt.