410 Views 6 Replies Last post: Nov 25, 2009 7:14 PM by hoang ph RSS
hoang ph Newbie 7 posts since
Nov 22, 2009
Currently Being Moderated

Nov 22, 2009 6:44 PM

External Interrupt SH7615

Hi everybody.

 

I'm using SH7615. My board uses external interrupt with IRL3 to IRL0 pins, with IRL mode and Auto-Vector Mode Interrupts.

 

My hardware was setup IRL3: IRL0 = 0101 , that means always has external interrupt with Vector number = 69 and Piority level = 10

 

My question is how to disable this external interrupt in SH7615, I read datasheet but I couldn't find the register describe this problem?

 

Best regard.

FrankL Apprentice 1,123 posts since
Mar 16, 2009
Currently Being Moderated
Nov 23, 2009 1:44 AM in response to: hoang ph
Re: External Interrupt SH7615


Just an idea. What happens if you set  the priority level in IPRC to 0 and select IRQ mode for the external interrupt pins by writing "1" to EXIMD in ICR register?

FrankL Apprentice 1,123 posts since
Mar 16, 2009
Currently Being Moderated
Nov 25, 2009 1:35 AM in response to: hoang ph
Re: External Interrupt SH7615

If you look at the interrupt sequence in chapter 5.4.1 you see that the CPU saves the status register SR before the value for the interrupt priority is written to I3:I0. When the interrupt exits it reloads the SR from the stack. So after you exit the interrupt routine you have the same value in I3:I0 as you had before the interrupt occured.

So no problem there.

FrankL Apprentice 1,123 posts since
Mar 16, 2009
Currently Being Moderated
Nov 25, 2009 6:03 AM in response to: hoang ph
Re: External Interrupt SH7615

This is normal after reset to disable all interrupts. The start-up code in resetprg.c calls an initialisation routine set_cr(value), which initialises I3:I0.

More Like This

  • Retrieving data ...

Bookmarked By (0)