Multiple trigger ADC Channels with PE

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Multiple trigger ADC Channels with PE

796 次查看
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 项奖励
回复
1 回复

663 次查看
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 项奖励
回复