It is of two types: Hardware interrupts, and Software interrupts.
The hardware interrupt occurs by the interrupt request signal from peripheral circuits. On the other hand, the software interrupt occurs by executing a dedicated instruction.
The hardware interrupt has an external interrupt and an internal interrupt. The external interrupt occurs when a specified signal is input to the dedicated external interrupt terminal. The internal interrupt occurs by an interrupt request signal from a peripheral circuit built into the microcontroller.
Machine check interrupts are caused by machine malfunctions. When an interrupt occurs, the hardware saves pertinent information about the program that was interrupted and, if possible, disables the processor for further interrupts of the same type. The hardware then routes control to the appropriate interrupt handler routine.