Shop OBEX P1 Docs P2 Docs Learn Events
What are the possible sources of interrupts for SX28? — Parallax Forums

What are the possible sources of interrupts for SX28?

basicstampedebasicstampede Posts: 214
edited 2008-09-05 12:52 in General Discussion
Hello.· I am learning about INT.· What are the possible sources of interrupt?·
Can anyone point the way to codes showing how the possible sources of interrupt is used in real code?
So far, I've seen·code to use the RTCC internal clock to call INT.
But I have not seen code on INT based on RB pin change.·
·

Comments

  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2008-09-05 12:07
    Here is a nice thread about using external interrupts.
    http://forums.parallax.com/showthread.php?p=741829

    regards peter
  • basicstampedebasicstampede Posts: 214
    edited 2008-09-05 12:43
    Thanks Peter, I'll study that.
    So the only sources of INT are: 1. RTCC and 2. RB? No other sources of INT?

    Regarding RB, can I choose to trigger INT when say a) on rising edge of RB.0 b) falling edge of RB.0 c) when RB.0 is high d) RB.0 is low. All 4 of these are possible?
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2008-09-05 12:52
    INT can be triggered on RB rising edge or falling edge, not on level.
    There is also the RTCC input pin that can trigger an interrupt.

    regards peter
Sign In or Register to comment.