S32k324 ADC Interupt

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

S32k324 ADC Interupt

Jump to solution
2,910 Views
HBH
Contributor II

How to configure Interrupt for all pins in ADC0 instance

Configuring CIMR0 and CIMR1 will enable interrupt for ADC0?

Tags (1)
0 Kudos
Reply
1 Solution
2,801 Views
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.

View solution in original post

0 Kudos
Reply
3 Replies
2,877 Views
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 Kudos
Reply
2,867 Views
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 Kudos
Reply
2,802 Views
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 Kudos
Reply