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.

Using an interrupt to enable another interrupt

Status
Not open for further replies.

electronicnoob

Junior Member level 1
Joined
Jul 4, 2019
Messages
19
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
142
Hi, is it advisable to use an interrupt to turn on another interrupt?

I'm trying to use 2 CCP (capture mode) interrupt, CCP1 and CCP2 to measure the time difference between 2 pulses on the PIC16f887 microcontroller. I'm trying to use CCP1 to turn on the interrupt for CCP2. Is this method advisable or will it cause error in the ISR?

Thanks in advance
 

Hi,

yes, possible. But I doubt it makes sense.

with "turn on another interrupt" you mean "to enable another interrupt"...
But ( I may be mistaken) the capture registers get updated regardless of interrupt_enable.
The interrupt - when enabled - just causes the ISR to run.

In detail it depends on your signals timing .. and on your idea.

Klaus
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top