thanks soledad,
now ,the there adcs with six channel is working,but some of the adc results is lost,
in my project the adc period is 625us, with a 20ms PIT interrupt ISR,i read the ADC result,most of time, the read return is 32 results,but some times,the read return is 31 results,that is to say ,on result is lost.
my configuration is show below:
const ADC_INIT_CHANNEL_STRUCT adc3ch1_channel_param =
{
ADC3_SOURCE_AD17, /* physical ADC channel */
ADC_CHANNEL_MEASURE_LOOP | ADC_CHANNEL_START_TRIGGERED, /* runs continuously after IOCTL trigger */
1, /* number of samples in one run sequence */
0, /* time offset from trigger point in us */
625, /* period in us (= 625us ) */
0x10000, /* scale range of result (not used now) */
ADC_BUFFER_SIZE, /* circular buffer size (sample count) */
MY_TRIGGER, /* logical trigger ID that starts this ADC channel */
#if MQX_USE_LWEVENTS
// &evn,
// 0x01 /* mask of event to be set */
NULL
#endif
};
const ADC_INIT_CHANNEL_STRUCT adc3ch1_channel_param =
{
ADC3_SOURCE_AD16, /* physical ADC channel */
ADC_CHANNEL_MEASURE_LOOP | ADC_CHANNEL_START_TRIGGERED, /* runs continuously after IOCTL trigger */
1, /* number of samples in one run sequence */
300, /* time offset from trigger point in us */
625, /* period in us (= 625us ) */
0x10000, /* scale range of result (not used now) */
ADC_BUFFER_SIZE, /* circular buffer size (sample count) */
MY_TRIGGER, /* logical trigger ID that starts this ADC channel */
#if MQX_USE_LWEVENTS
// &evn,
// 0x01 /* mask of event to be set */
NULL
#endif
};