speedEC
Full Member level 6
Dear All,
I have a problem to read Interrupt On Change while the device in software delay loop (using "for loop"). First, if I found any change in RB4-RB7 (IOC) pins, GREEN LED will be ON. if interrupt RB0 (INT0) occurred While GREEN LED is in ON Status, then ON another RED LED for 5 minutes and OFF the RED LED after 5 minutes. I have used "for loop" for 5 minutes delay. If any change in RB0 -RB7 found, while RED LED is in ON Status (in for loop), I have to come out from the "for loop" and OFF the Red LED. How can do that? I have tried but failed. I could not able to OFF the RED LED. Should I use tiimer instead of "for loop"?
thanks
pmk
I have a problem to read Interrupt On Change while the device in software delay loop (using "for loop"). First, if I found any change in RB4-RB7 (IOC) pins, GREEN LED will be ON. if interrupt RB0 (INT0) occurred While GREEN LED is in ON Status, then ON another RED LED for 5 minutes and OFF the RED LED after 5 minutes. I have used "for loop" for 5 minutes delay. If any change in RB0 -RB7 found, while RED LED is in ON Status (in for loop), I have to come out from the "for loop" and OFF the Red LED. How can do that? I have tried but failed. I could not able to OFF the RED LED. Should I use tiimer instead of "for loop"?
thanks
pmk