S32k324 ADC Interupt

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
2,928件の閲覧回数
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,819件の閲覧回数
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,895件の閲覧回数
Senlent
NXP TechSupport
NXP TechSupport

Hi@HBH

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

Senlent_0-1694758752137.pngSenlent_0-1694758752137.png

CIMR0,CIMR1 & CIMR2

0 件の賞賛
返信
2,885件の閲覧回数
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,820件の閲覧回数
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 件の賞賛
返信