However this method utilizes more code memory and leaves the code much more inefficient which however could be excused as we had lot of unused program memory and it did not involve any time critical process. I have taken Arduino Uno board as reference.īefore we can jump into the program, if you can recall, in the earlier post, we have utilized a simple software debouncing technique to avoid the jitter. After all we discuss just the basics here. Any how I’m not going to turn off a nuclear reactor here, let’s stick to our good old LED on/off here. Although Interrupts and switches are not normally used as priority is not so high in every button press situation, it’s importance arises in critical inputs, such as an emergency shutdown button.Īn example Scenario will be to safely turn off the system in case of emergency, in which if the power is suddenly cut without proper shutdown will cause a catastrophic event (a nuclear reactor for example), we call such inputs as high priority hard real time inputs. In this post lets get down to much more important concept of using interrupts for processing. On a previous blog post we have discussed a simpler push button interfacing method for toggling an LED.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |