I had written about hardware interrupts earlier. Now I’ll write about interrupts in general. How to write program to enable interrupts and handle those. Basically there are two types of interrupts.
- Hardware Interrupts
- Software Interrupts
As the name suggests hardware interrupts are given on the pins of the controller. An example of this can be found in by blog post.