AnsweredAssumed Answered

HVP-KV46F150 Evaluation Board ADC Configuration Issues

Question asked by wang xuan on May 26, 2018
Latest reply on Jun 10, 2018 by Hui_Ma

Hi,

/* Channel assignment */
/* S0 S1 S2 S3 S4 S5 S6 S7 */
/* A0 */
ADC_CLIST1 = 0x3210;
ADC_CLIST2 = 0x7654;

/* S8 S9 S10 S11 S12 S13 S14 S15 */
/* B0 B0 */
ADC_CLIST3 = 0xBA98;
ADC_CLIST4 = 0xFEDC;

 

/* Enable samples 0, 1, 8, 9 */
ADC->SDIS = ADC_SDIS_DS(0xFCFC);

 

In addition

/* phase current AD channel assignment for HVP-KV46F150M board
*
* required format "MLIB_ShL_F16(ADC channel number,ADC channel list shift)"
*
*/
this->uw16AdcAchanIa = (UWord16)(MLIB_ShL_F16(2,0)); //ANA2 -> Iph_A
this->uw16AdcAchanIc = (UWord16)(MLIB_ShL_F16(3,0)); //ANA3 -> Iph_C
this->uw16AdcBchanIb = (UWord16)(MLIB_ShL_F16(10,0)); //ANB2 -> Iph_B
this->uw16AdcBchanIc = (UWord16)(MLIB_ShL_F16(11,0)); //ANB3 -> Iph_C

 

If I want to detect the three-phase current, why should I enable samples 0, 1, 8, 9? And why is 0xFCFC?

 

 

Best regards!

wang xuan

Outcomes