cancel
Showing results for 
Search instead for 
Did you mean: 

How to access ADC value on GTM/MCS

JAYLOU
Associate II

How to read ADC conversion results on the GTM/MCS.

Here is my code:

MCS side:

AN8  = __brd(0x00005440);
AN9  = __brd(0x0000544C);
AN16 = __brd(0x00005480);
AN17 = __brd(0x00005488);
AN26 = __brd(0x000054D0);
AN27 = __brd(0x000054D8);
AN40 = __brd(0x00005540);
AN41 = __brd(0x00005548);
 
CPU 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){ 

}

 
0 REPLIES 0