Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
About how to use interrupt on Pinguino32
25-07-2013, 03:42 PM,
#1
About how to use interrupt on Pinguino32
Hi, reading this post I came to a doubt.
Is this control in ISR really necessary?
Code:
if (IFS0bits.T1IF)
The ISR should not be called each time ti event occur? So the control is useless?

Thank you for clearing my doubts

Paolo
Reply
26-07-2013, 09:29 AM,
#2
RE: About how to use interrupt on Pinguino32
I think you're right because in that particular case one vector (4) is equal to one interrupt (Timer1) but you could have one vector (31 for ex.) for several interrupts (SPI2 Fault, SPI2 Receive and SPI2 Transfer) then control would be necessary. It's only a good habit and it makes code more readable and understandable.

(25-07-2013, 03:42 PM)nessnuo Wrote: Hi, reading this post I came to a doubt.
Is this control in ISR really necessary?
Code:
if (IFS0bits.T1IF)
The ISR should not be called each time ti event occur? So the control is useless?

Thank you for clearing my doubts

Paolo
It is easier to complain than it is to do, but it is better to do than it is to complain.
Reply
26-07-2013, 12:04 PM,
#3
RE: About how to use interrupt on Pinguino32
OK, thank you for clearing my doubt Big Grin
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)