Program can not enter interrupt routine, what aspects need to check?
Users need to check the following aspects:
1. Check whether the global interrupt control bit FGIE is enabled;
2. Check whether the corresponding interrupt request control bit is enabled;
3. Check whether there is interrupt occurred in program, such as the timer can overflow from the initialization settings; To generate an external interrupt, whether P0, P1 corresponding I/O port be set to input mode and there are level changes.
1. Check whether the global interrupt control bit FGIE is enabled;
2. Check whether the corresponding interrupt request control bit is enabled;
3. Check whether there is interrupt occurred in program, such as the timer can overflow from the initialization settings; To generate an external interrupt, whether P0, P1 corresponding I/O port be set to input mode and there are level changes.