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?
Solved! Go to Solution.
 
					
				
		
 Robin_Shen
		
			Robin_Shen
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		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
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.
-------------------------------------------------------------------------------
 
					
				
		
 Robin_Shen
		
			Robin_Shen
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		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
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.
-------------------------------------------------------------------------------
