Search the Community
Showing results for tags 'interrupts'.
Hi All, I'm pretty new to programming however I have a program that can almost be used as a burglar alarm. My only problem is that I need some sort of timer interrupt. I need a timer to count up to 20 minutes whilst running the main body of the program (ie keeps checking the zones) but when the timer reaches 20mins it will interrupt the main program and then go into another state. To test/simulate my program I use a button block "2-state" for porta, and an 8 LED block to simulate the alarm, alarm indication, bath, hall, lounge, kitchen and bedroom (portb). Below is my program: