Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Detecting how much time for external interrupts in MPC5746C from NXP

Status
Not open for further replies.

ahmedsaber

Junior Member level 1
Joined
Mar 11, 2013
Messages
19
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Al Jizah, Egypt
Activity points
1,449
Hello All,

I'm trying to measure the time of an external event staying outside this controller MPC5746C.

This controller supports only the detection of the external interrupt on either the rising or the falling edge.

Assume that I configured a pin to be used within the SUIL2 module to detect an external event"SUIL2 module is the responsible for the external interrupts handling"

I configured this pin to be by default at low level, once the external event is present it will pull up the pin level to be at high level



I configured an ISR to be fired on the rising edge of this pin level, so once the external event is present I got the ISR, which I will serve till it ends.

may be the external event lasts for one seconds or two or whatever, may be it will lasts even after the ISR is served.

And I will not get the ISR again because there is no additional edges as the pin level kept at high level



So how can I detect the end of the external event ?

" knowing that I can't also read the pin level within the software because it must be configured as GPIO to be able to read it's value while it is configured to be an external events detector pin"

Thanks a lot
 

knowing that I can't also read the pin level within the software because it must be configured as GPIO to be able to read it's value while it is configured to be an external events detector pin
Is it so? Sounds strange for a modern microcontroller. You may consider to change the pin configuration on the fly.
 

You may consider to change the pin configuration on the fly.

I configured the ISR to be triggered with the rising edge and within the ISR changed the configuration to be triggered on the falling edge hoping to catch the second edge of the same pulse, but I didn't get the ISR again , I'm not sure why
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top