Hey, I am trying to trigger the interrupt using external hardware such as 555 timer to trigger it at regular interval. The 555 timer has a time period of 60sec and duty cycle of 50%. I want to trigger the interrupt on the rising edge so that interrupt is called every 60 sec but interrupt remains triggered only for half the cycle........what should i do??????
This would be a good starting point:
but interrupt remains triggered only for half the cycle........what should i do??????
Perhaps you need more .................. and ???????????????????????????
The interrupt happens, like a doorbell ringing. That happens on the RISING edge, the FALLING edge, both edges (CHANGE). There is nothing in the interrupt that cares how long the pin will be HIGH or LOW. What you (think you) need to do needs to be done a different way.
what should i do?
Post your code (in tags).
Pete
Anshul_01:
interrupt remains triggered only for half the cycle
If the interrupt remains triggered, you're doing it wrong. The interrupt should only trigger on transitions.
Why are you using interrupts and external signal generators at all? If you want something to happen every 60 seconds, just code your sketch so that it happens every 60 seconds.
PeterH:
Why are you using interrupts and external signal generators at all? If you want something to happen every 60 seconds, just code your sketch so that it happens every 60 seconds.
You got there just before me .................... (.... to keep @PaulS happy
)
...R
I just want to know why the interrupt is not occurring every 60 sec even though i have set the period to 60 sec and duty cycle to 50% of my astable multivibrator and even i have set the interrupt to occur on rising edge.
I just want to know why the interrupt is not occurring every 60 sec
And we just want to see your code that you have not posted.
What board are you using and which pin is the 555 connected to ?