Hello, please check the attached code. We have configured CS, captrue timer, and ADC functions, but we found that the following configuration in adc_init will affect the accuracy of SMCLK.
TA1CTL = TASSEL__SMCLK | MC__UP | TACLR;
We tested the mg_sleep interface and flipped the P1.0 pin every 1S, but when the adc_init interface was called, the pin level was not changed according to the 1S time.but when adc_init interface is shielded, and the 1s time was normal.(Oscilloscope test P1.0)
We currently need to use the ADC function simultaneously in the current project, so please help confirm.
Please see the attachment for the project code. thanks.