Multiple trigger ADC Channels with PE

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

Multiple trigger ADC Channels with PE

414 Views
norbertoj
Contributor III

Hello!!!

I want to check 4 adc channels if they arrive a X value and that these produce an interruption. I was reading that EnableInChanTrigger and EnableAutoCompare can help me; However, when I want to configure my second channel in this trigger mode, it gives me ERR_BUSY. I don't know what I'm doing wrong.

I'm using Processor Expert with MK60DN512VLQ10 microcontroller.

BR

Norberto Jiménez

0 Kudos
1 Reply

281 Views
marek_neuzil
NXP Employee
NXP Employee

Hello Norberto,

I am sorry but the ADC device on MK60DN512VLQ10 support selection of one channel only, i.e. you cannot enable automatic compare for two and more channels concurrently. You must select (switch) channels subsequently.

If you need to configure 4 channels, set automatic compare value and wait for interrupt you must emulate this functionality by own application code. The ADC device does not support this functionality.

Best Regards,

Marek Neuzil

0 Kudos