This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430F5659: How to Configure for LEVEL SENSITIVE interrupt ?

Part Number: MSP430F5659

Hello everyone ,

How to configure input  interrupt for both High to Low and Low to High on a pin (Level sensitive interrupt )?

Regards

Renjith

  • MSP430F5659 code example www.ti.com/.../slac539 should be the good reference on your thread.
  • Hi Xiaodong LI,

    i didn't find any example relevant to my needs.
    Actually i know how to configure an input pin on 'high to low' or 'Low to high'.
    My questions is that "Is it possible to detect both interrupt edges on a input pin ?"
    for edge selection we are setting or clearing PxIES bit.
    How to configure an input pin as a level sensitive interrupt ?

    Regards,
    Renjith
  • Point of terminology: "Level-sensitive" means it triggers continuously at a given high/low state. The words you're using describe "Edge-sensitive on both edges". I can't offhand think of a way to get Level-sensitive on a pin.

    There are two ways to do edge-sensitive-on-both-edges:
    1) Use a pin interrupt and reverse the sense of IES each time. (This sounds like what you're doing now.)
    2) Bring the signal into a timer (TAx.y) pin and use timer capture with CM=3 (both edges). (I'm pretty sure you don't even need to run the timer to make this work.) There's probably a timer-capture example in the Examples, though perhaps not this case. Just set CM=3 and test CCI to see which edge it was.
  • Hi Bruce,

    Thank You Very much for your Help !

    Regards,

    Renjith

**Attention** This is a public forum