Introduction - If you have any usage issues, please Google them yourself
AVR microcontroller entry program, is an example of an interrupt, which the simulation with protues circuit can be used directly, the program is written in ICCAVR can also be used directly, and a detailed description