ADC trigger interrupt s32K144

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

ADC trigger interrupt s32K144

Jump to solution
720 Views
IuliaB
Contributor I

Hello! Im trying to configure ADC trigger interrupt for my board but I dont understand 

S32_NVIC->ICPR[1] = 1 << (39 % 32); /* Register ADC0 interrupt */

S32_NVIC->ISER[1] = 1 << (39 % 32); /* Enable ADC0 interrupt */

S32_NVIC->IP[39] = 0xA0; /* priority is 10 */

Why do we use those number value or what do they represent to set there?

Labels (1)
0 Kudos
1 Solution
696 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi IuliaB,

Please refer to the "7.2.3 Determining the bitfield and register location for configuring a particular interrupt" of S32K1xx MCU Family - Reference Manual

Determining the bitfield and register location for configuring a particular interrupt.png


Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

View solution in original post

0 Kudos
1 Reply
697 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi IuliaB,

Please refer to the "7.2.3 Determining the bitfield and register location for configuring a particular interrupt" of S32K1xx MCU Family - Reference Manual

Determining the bitfield and register location for configuring a particular interrupt.png


Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos