Stepper Stall Detect (SSD)
MPC5606S Microcontroller Reference Manual, Rev. 7
1176
Freescale Semiconductor
For proper usage of the SSD block it must have exclusive control over the coils belonging to the
SM whose stall position must be detected. This must be ensured at the device level. Following this
the SSD must be enabled by setting the RTZE bit in the CONTROL register, this bit must be left
asserted for the complete SSD flow.
It is at this point in time that application-dependent control settings are set which remain constant
over the complete SSD flow. These settings consist of the integrate direction of the ITGACC
register, which is set by the ITGDIR bit and the direction to advance the STEP setting (increment
or decrement influence clockwise or counter-clockwise movement of the SM). Additionally the
PRESCALE and the IRQ register must be programmed (it is not recommended to change the
content of the PRESCALE register during a running BIS).
2. Initialize SSD
At this point the STEP bits are set according to the angular position of the SM for the current
position. After programming the STEP bits the analog block can be enabled by setting the SDCPU
bit.
3. Start Blanking
This step starts with setting the TRIG bit together with the STEP bits initializing the complete BIS
for the next step. Depending from the direction of the rotation the previous step setting is either
decremented or incremented, wrapping from 2’b11 to 2’b00 or vice versa. If the BLNDCL bit is
set this step marks the start of the SM movement, During blanking both pins of the non-driven coil
are connected either to VDDM or VSSM for recirculation, depending from the RCIR bit. The bus
clock is divided accordingly to the BLNDIV bits to decrement the DCNT. The BLNST bit is set to
allow the user to monitor the status.
4. End of Blanking?
The end of the blanking phase is automatically detected. If the DCNT reaches 0x0000 and the
complete blanking time is expired the BLNIF flag is set and the interrupt triggered according to the
BLNIE bit. The BLNST bit is cleared.
5. Start Integration
After the end of the blanking phase the SSD block continues automatically with the integration
phase:
The ITGCNTLD register is used to initialize the DCNT and is decremented according to the
ITGDIV bits setting. The driving coils is powered according to the ITGDCL bit. During the
integration phase the polarity flip for offset cancellation is triggered according to the OFFCNC bits.
The ITGST bit is set to allow the user to monitor the status.
6. End of Integration?
The down counter is monitored in the same way like in step 4. The ITGIF flag is set and the
interrupt is triggered according to the ITGIE bit. The ITGST bit is cleared.
7. Stop Integration
On the expiration of the current BIS the integration is stopped, the
-modulator is disabled, the
ITGACC register is frozen. Note that the current to the coil driven by the SSD block continues
according to the ITGDCL and the STEP setting.
8. Read Integration Result
Содержание MPC5602S
Страница 76: ...Overview MPC5606S Microcontroller Reference Manual Rev 7 74 Freescale Semiconductor...
Страница 82: ...Memory Map MPC5606S Microcontroller Reference Manual Rev 7 80 Freescale Semiconductor...
Страница 112: ...Signal Description MPC5606S Microcontroller Reference Manual Rev 7 110 Freescale Semiconductor...
Страница 166: ...Analog to Digital Converter ADC MPC5606S Microcontroller Reference Manual Rev 7 164 Freescale Semiconductor...
Страница 182: ...Boot Assist Module BAM MPC5606S Microcontroller Reference Manual Rev 7 180 Freescale Semiconductor...
Страница 234: ...Clock Description MPC5606S Microcontroller Reference Manual Rev 7 232 Freescale Semiconductor...
Страница 286: ...Crossbar Switch XBAR MPC5606S Microcontroller Reference Manual Rev 7 284 Freescale Semiconductor...
Страница 470: ...e200z0h Core MPC5606S Microcontroller Reference Manual Rev 7 468 Freescale Semiconductor...
Страница 524: ...Enhanced Direct Memory Access eDMA MPC5606S Microcontroller Reference Manual Rev 7 522 Freescale Semiconductor...
Страница 546: ...Error Correction Status Module ECSM MPC5606S Microcontroller Reference Manual Rev 7 544 Freescale Semiconductor...
Страница 669: ...Flash Memory MPC5606S Microcontroller Reference Manual Rev 7 Freescale Semiconductor 667...
Страница 670: ...Flash Memory MPC5606S Microcontroller Reference Manual Rev 7 668 Freescale Semiconductor...
Страница 716: ...FlexCAN MPC5606S Microcontroller Reference Manual Rev 7 714 Freescale Semiconductor...
Страница 882: ...LIN Controller LINFlex MPC5606S Microcontroller Reference Manual Rev 7 880 Freescale Semiconductor...
Страница 901: ...Memory Protection Unit MPU MPC5606S Microcontroller Reference Manual Rev 7 Freescale Semiconductor 899...
Страница 902: ...Memory Protection Unit MPU MPC5606S Microcontroller Reference Manual Rev 7 900 Freescale Semiconductor...
Страница 955: ...Mode Entry Module MC_ME MPC5606S Microcontroller Reference Manual Rev 7 Freescale Semiconductor 953...
Страница 956: ...Mode Entry Module MC_ME MPC5606S Microcontroller Reference Manual Rev 7 954 Freescale Semiconductor...
Страница 1072: ...Quad Serial Peripheral Interface QuadSPI MPC5606S Microcontroller Reference Manual Rev 7 1070 Freescale Semiconductor...
Страница 1096: ...Reset Generation Module MC_RGM MPC5606S Microcontroller Reference Manual Rev 7 1094 Freescale Semiconductor...
Страница 1106: ...Real Time Clock RTC API MPC5606S Microcontroller Reference Manual Rev 7 1104 Freescale Semiconductor...
Страница 1186: ...Stepper Stall Detect SSD MPC5606S Microcontroller Reference Manual Rev 7 1184 Freescale Semiconductor...
Страница 1213: ...System Integration Unit Lite SIUL MPC5606S Microcontroller Reference Manual Rev 7 Freescale Semiconductor 1211...
Страница 1214: ...System Integration Unit Lite SIUL MPC5606S Microcontroller Reference Manual Rev 7 1212 Freescale Semiconductor...
Страница 1238: ...Voltage Regulators and Power Supplies MPC5606S Microcontroller Reference Manual Rev 7 1236 Freescale Semiconductor...
Страница 1252: ...Wakeup Unit WKPU MPC5606S Microcontroller Reference Manual Rev 7 1250 Freescale Semiconductor...
Страница 1258: ...Registers Under Protection MPC5606S Microcontroller Reference Manual Rev 7 1256 Freescale Semiconductor...
Страница 1323: ...Register Map MPC5606S Microcontroller Reference Manual Rev 7 Freescale Semiconductor 1321...
Страница 1324: ...Register Map MPC5606S Microcontroller Reference Manual Rev 7 1322 Freescale Semiconductor...