Other Parts Discussed in Thread: TIDA-00648, DAC161S997, MSP430F5172, XTR115
Hello,
I cant set the Iout of DAC lower then 5mA or higher then 16mA.
const Timer_A_ContinuousModeConfig Fast_Mode = { TIMER_A_CLOCKSOURCE_SMCLK, // ACLK Clock Source TIMER_A_CLOCKSOURCE_DIVIDER_48, // ACLK/1 = 32.768khz TIMER_A_TAIE_INTERRUPT_ENABLE, // Enable Overflow ISR TIMER_A_DO_CLEAR // Clear Counter }; int main(){ MAP_Timer_A_configureContinuousMode(TIMER_A0_BASE, &Fast_Mode); MAP_Interrupt_enableSleepOnIsrExit(); MAP_Interrupt_enableInterrupt(INT_TA0_N); MAP_Timer_A_startCounter(TIMER_A0_BASE, TIMER_A_CONTINUOUS_MODE); Setup_DAC161 (DAC161_STD_ERR_CONFIG_MASKED, 0, 21800); while (1) { MAP_PCM_gotoLPM0(); } } void TA0_N_IRQHandler(void){ MAP_Timer_A_clearInterruptFlag(TIMER_A0_BASE); DAC161_Set_Out_Value((int)(x * 2730)); dacStatus = DAC161_Read_Status(); DAC161_Nop(); }