S32k324 ADC Interupt

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

S32k324 ADC Interupt

跳至解决方案
2,954 次查看
HBH
Contributor II

How to configure Interrupt for all pins in ADC0 instance

Configuring CIMR0 and CIMR1 will enable interrupt for ADC0?

标记 (1)
0 项奖励
回复
1 解答
2,845 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@HBH

For CIMR0 & 1 register.

Specifies whether a completed conversion of a precision input flags an EOC interrupt.

Specifies whether a completed conversion of an external input flags an EOC interrupt.

For example: normal conversion mode.

        At the end of each conversion, the result is stored in corresponding register(PCDRn/ICDRn/ECDRn),

the EOC flag is set and End of Conversion(EOC) interrupt is issued(if enabled in MSKEOC).

       After the last conversion in the chain is complete, the ECH flag is set and End of Chain(ECH) interrupt is issued(if enabled in MSKECH).

So answer is yes, but you may need enable MSKEOC or MSKECH too for normal conversion mode.

在原帖中查看解决方案

0 项奖励
回复
3 回复数
2,921 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@HBH

ADC channels are divided into 3 groups - Precision, Standard and External

Senlent_0-1694758752137.png

CIMR0,CIMR1 & CIMR2

0 项奖励
回复
2,911 次查看
HBH
Contributor II

Can we enable Interrupt for all ADC0 pins with CIMR0 and CIMR1 at once, if only precision and standard are used?

0 项奖励
回复
2,846 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@HBH

For CIMR0 & 1 register.

Specifies whether a completed conversion of a precision input flags an EOC interrupt.

Specifies whether a completed conversion of an external input flags an EOC interrupt.

For example: normal conversion mode.

        At the end of each conversion, the result is stored in corresponding register(PCDRn/ICDRn/ECDRn),

the EOC flag is set and End of Conversion(EOC) interrupt is issued(if enabled in MSKEOC).

       After the last conversion in the chain is complete, the ECH flag is set and End of Chain(ECH) interrupt is issued(if enabled in MSKECH).

So answer is yes, but you may need enable MSKEOC or MSKECH too for normal conversion mode.

0 项奖励
回复