解決済! 解決策の投稿を見る。
 
					
				
		
 Robin_Shen
		
			Robin_Shen
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hi Raghahanuma,
This fault is not caused by NVIC_EnableIRQ(PORTA_IRQn);,
This is because the clock gate for PORTA is not enabled, but you accessed PORTA->PCR[14].
Please enable the clock gate of PORTA.
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.
-------------------------------------------------------------------------------
 
					
				
		
 JackITB
		
			JackITB
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		NVIC_SetPendingIRQ(PORTA_IRQn);
After the clock issue is addressed,
why is that being used?
That will force the PORTA IRQ to fire and I2C is not yet configured.
The Accel itself will generate an IRQ when it is ready, after everything is correctly configured.
Tried everything still not getting the output!
 
					
				
		
 Robin_Shen
		
			Robin_Shen
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		No output from INT1 or I2C?
NVM! The problem was that I didn't route the interrupt back to port A 14 so it didn't throw up any output now its working fine. thanks for your contribution.
 
					
				
		
 Robin_Shen
		
			Robin_Shen
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hi Raghahanuma,
This fault is not caused by NVIC_EnableIRQ(PORTA_IRQn);,
This is because the clock gate for PORTA is not enabled, but you accessed PORTA->PCR[14].
Please enable the clock gate of PORTA.
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.
-------------------------------------------------------------------------------
Thanks well that solved the fault but still not getting the output. will work on it and update
