Stepper Motor Controller (SMC)MPC5606S Microcontroller Reference Manual, Rev. 7Freescale Semiconductor 1155NOTEThe short-circuit detection block does not disable a port in case of ashort-circuit. It is task of the microcontroller to manage the event of ashort-circuit.35.5 ResetThe SMC is reset by system reset. All associated ports are released, all registers of the SMC module willswitch to their reset state as defined in Section 35.3.2, Register description.35.6 InterruptsThe SMC has one interrupt output which is the bitwise OR function of 25 individual interrupt requestsources:• One time counter overflow interrupt: An interrupt will be requested when the MCCTL1[MCTOIE]bit in is set and the running PWM frame is finished. The interrupt is cleared by either setting theMCCTL1[MCTOIE] bit to 0 or to write a one to the MCCTL0[MCTOIF] bit• 24 Interrupts for the short-circuit detection, one for each PWM pin: Whenever a short-circuit isdetected on one PWM pin and the short-circuit detector enable bit MCSDEn[SDEN[sd]] is set,than the related interrupt flag MCSDIn[SDIF[sd]] is set according to the mapping showninTable 35-23. The interrupt flag in MCSDIn[SDIF[sd]] will also rise an external interrupt if theinterrupt enable bit MCSDIENn[SDIE[sd]] is set. To clear the interrupt flag, either write a one intothe related bit position MCSDIn[SDIF[sd]] or disable the related short-circuit detector by writingzero to MCSDEn[SDEN[sd]]. If the short-circuit detector is enabled and a static short-circuitexists, then the MCSDIn[SDIF[sd]] flag will be asserted directly after clearing it, because theshort-circuit detector is still enabled and will detect the short-circuit again. To avoid this behavior,disable the short-circuit detector channel after detection of the short-circuit.