Freescale Semiconductor Demonstration Board for Freescale MC9S12XHY256 Microcontroller DEMO9S12XHY256 DEMO9S12XHY256 Manuale Utente

Codici prodotto
DEMO9S12XHY256
Pagina di 924
Stepper Stall Detector (SSDV1) Block Description
MC9S12XHY-Family Reference Manual, Rev. 1.04
714
Freescale Semiconductor
21.4.3
Operation in Low Power Modes
The SSD block can be configured for lower MCU power consumption in three different ways.
Stop mode powers down the sigma-delta converter and halts clock to the modulus counter. Exit
from Stop enables the sigma-delta converter and the clock to the modulus counter but due to the
converter recovery time, the integration result should be ignored.
Wait mode with SSDWAI bit set powers down the sigma-delta converter and halts the clock to the
modulus counter. Exit from Wait enables the sigma-delta converter and clock to the modulus
counter but due to the converter recovery time, the integration result should be ignored.
Clearing SDCPU bit powers down the sigma-delta converter.
21.4.4
Stall Detection Flow
 shows a flowchart and software setup for stall detection of a stepper motor. To control a
second stepper motor, the SMS bit must be toggled during the SSD initialization.