Content originally posted in LPCWare by mshrestha789 on Wed Aug 20 08:04:29 MST 2014
Hello friends,
Here's more detail of what I did. I used clock setup from lpcopen. And in the first descriptor entry I halt it and generated interrupt. Here's the descriptor entry table:
Chip_HSADC_SetupDescEntry(LPC_ADCHS_CMSIS, 0, 0, (HSADC_DESC_CH(HSADC_CHANNEL) | HSADC_DESC_HALT | HSADC_DESC_INT | HSADC_DESC_MATCH(HSADC_DESCRIPTOR_TIME) | HSADC_DESC_THRESH_A | HSADC_DESC_RESET_TIMER));
Then when I trigger ADC using RTOS task with port tick 1, I could get up to the speed of 20 MSPS. But when I used timer interrupt, even if I generated timer interrupt at 2 MHz rate, I couldn't get more than 1 MSPS speed of ADC.