Other Parts Discussed in Thread: SYSCONFIG
I am expecting low current consumption after DAC_close() but no luck.
Voltage reference source set with sysconfig to VDDS. Output pin is not connected to any external.
Here is my sample code:
static DAC_Handle dacHandle0;
DAC_Params dacParams;
DAC_init();
DAC_Params_init(&dacParams);
Task_sleep(15000 * (1000/Clock_tickPeriod));
//Current = Approx. 6 microAmps
while(1){
dacHandle0 = DAC_open(CONFIG_DAC_PRESSURE_REF, &dacParams);
DAC_enable(dacHandle0);
DAC_setVoltage(dacHandle0, 500000);
Task_sleep(10000 * (1000/Clock_tickPeriod));
//Current = Approx. 650 microAmps
DAC_disable(dacHandle0);
DAC_close(dacHandle0);
Task_sleep(10000 * (1000/Clock_tickPeriod));
// Current = Approx. 550 microAmps. Why not 6 microAmps? Any suggestions to find out?
}