2024-10-18 02:33 AM
How to read ADC conversion results on the GTM/MCS.
Here is my code:
MCS side:
GTMINT.EXT_ADC_SEL.B.MCS_ADC_SEL_EN = 0;
GTMINT.EXT_ADC_SEL.B.MCS0_ADC_SEL= 0;
GTMINT.EXT_ADC_SEL.B.MCS0_ADC_SEL= 1;
GTMINT.EXT_ADC_SEL.B.MCS0_ADC_SEL= 2;
GTMINT.EXT_ADC_SEL.B.MCS0_ADC_SEL= 3;
GTMINT.EXT_ADC_SEL.B.MCS_ADC_SEL_EN = 1;
while(GTMINT.EXT_ADC_SEL.B.MCS_ADC_EN_ACK == 0){
}