U S E R M A N U A L
12
Jan 26, 2015, AN709-00011-1v0-E
5. Interrupt Function
5.1
Function List
Table 5-1: System Used Interrupt Function
Prototype
Description
Remark
__root void HWD_Handler(void)
The HW watch dog ISR
s05_user/isr.c
__root void Swd_IsrHandler (void)
The software watch dog ISR
s05_user/isr.c
__root void Mft0_Frt0_ZeroIsrHandler (void)
The MFT zero detect ISR for the motor control
s05_user/isr.c
__root void Mft0_Wfg_IsrHandler (void)
The HW over-current ISR
s05_user/isr.c
__root void Adc_0_IsrHandler (void)
The ADC unit0 ISR, trigger at the zero point for
the 3 shunts
s05_user/isr.c
5.2
Interrupt Priority Setting
Each interrupt priority can be set by the function ‘void InitMcu_Nvic(void)’ which is located at the file
‘s05_user/init_mcu.c’. Users are not recommended to modify it. The priority used for motor control is shown
in Figure 5-1. The lower the number is, the higher the priority is.
Figure 5-1: Interrupt Priority Setting