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.
Tool/software: Code Composer Studio
Hi,
I would like to know one more information about if GPIO pin configured as External interrupt with Both Edge rise and Edge fall. If interrupt comes how to find the whether it is edge raise or edge fall?
Thank you.
Regards,
Upender
Hi Upender,
Upender Reddy said:If interrupt comes how to find the whether it is edge raise or edge fall?
This depends on what Polarity bit is configured as in XINTnCR register.
Regards,
Gautam
Hi Gautam,
Yes that depends on polarity bit of XINTnCR register. I have configured interrupt for both edge raise and edge fall in XINTnCR register.
I have two questions.
1)If interrupt happened due to edge raise or edge fall, will it go to same ISR vector address?
2)Once interrupt generated and I have entered in ISR here I would like to know interrupt generated because of edge raise or edge fall? reason behind this is I have to measure pulse width(Edge fall to edge raise time)...I don't have option to use ECap...etc to find pulse width.
Please clarify.
Thank you.
Regards,
Upender Reddy M
Upender Reddy said:1)If interrupt happened due to edge raise or edge fall, will it go to same ISR vector address?
Yup, offcourse. For XINT1 its 0xD46
Upender Reddy said:2)Once interrupt generated and I have entered in ISR here I would like to know interrupt generated because of edge raise or edge fall? reason behind this is I have to measure pulse width(Edge fall to edge raise time)...I don't have option to use ECap...etc to find pulse width.
Which edge triggered the interrupts - well finding that is not possible. Instead you can configure 2 External interrupts each with rising and falling edge triggers respectively.
Regards,
Gautam