For LPC4370 HSADC, how to reduce the match time of descriptor #0 from 0x95 to 1?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

For LPC4370 HSADC, how to reduce the match time of descriptor #0 from 0x95 to 1?

649 Views
qqq
Contributor I

屏幕截图 2023-08-10 192902.png

 

Labels (2)
Tags (3)
0 Kudos
Reply
1 Reply

611 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

For the STATIC INLINE void Chip_HSADC_SetupDescEntry(LPC_HSADC_T *pHSADC, uint8_t table,
uint8_t descNo, uint32_t desc)
{
pHSADC->DESCRIPTOR[table][descNo] = desc;
}

it writes the DESCRIPTOR0_[0] register or DESCRIPTOR0_[1] reg..., the HSADC_DESC_MATCH(x) corresponds to the MATCH_VALUE bits, if you do not want to use the timer of HSADC, just set the bits as 0 with HSADC_DESC_MATCH(0). If the MATCH_VALUE bits is zero, it means that the ADC samples the channel in the descriptor immediately.

 

Hope it is helpful

BR

XiangJun Rong

 

xiangjun_rong_0-1691746394039.png

 

0 Kudos
Reply