Stepper Stall Detect (SSD)
MPC5606S Microcontroller Reference Manual, Rev. 7
Freescale Semiconductor
1171
Any write access on byte-level is ignored.
All reserved registers provide 0x0000 on read. Write access is not allowed.
36.4.1.4
BIS control
Once triggered the sequence control logic walks through a single individual BIS. In the normal application
one BIS corresponds to a single step (90
movement of the SM). In detail the BIS is implemented in the
SSD block in the following way:
•
Each BIS starts with setting the TRIG bit. Ending a running BIS manually is only possibly by
clearing the RTZE bit.
•
If the BLNCNTLD register is set to a value other than 0x0000 the DCNT is loaded with
(BLNCNTLD - 1) and is started using the BLNDIV bit setting for the clock divider. The BLNST
is set.
The blanking phase of the BIS is executed, the BLNDCL bit is used to determine whether one of
the coils is driven during the blanking phase.
If the appropriate number of down counter periods (equal to the BLNCNTLD register value)
expires the BLNIF is set, the interrupt is triggered according to the BLNIE bit and the BLNST bit
is cleared.
•
If the ITGCNTLD register is set to a value other than 0x0000 the DCNT is loaded with
(ITGCNTLD - 1) and is started using the ITGDIV bit setting for the clock divider. The ITGST is
set and the ITGACC register is initialized with 0x0000.
The integration phase of the BIS is executed, the ITGDCL bit is used to determine whether one of
the coils is driven during the integration phase. The
-modulator of the analog block is functional
and the ITGACC register is updated. During the integration phase the polarity is switched
according to the OFFCNC bits.
If the appropriate number of down counter periods (equal to the ITGCNTLD register value) expires
the ITGIF is set, the interrupt is triggered according to the ITGIE bit and the ITGST bit is cleared.
The state of the ongoing BIS can be monitored by the following status bits:
•
The BLNST bit is set during the blanking phase exclusively.
•
The ITGST bit is set during the integration phase exclusively. When it is set, the BIS control
enables the
-modulator in the analog block together with the integration circuitry. As long as the
integration phase is active the ITGACC register content is modified depending from the output of
the
-modulator.
In the normal use case the end of the BIS is the end of the integration phase. Independent from the time
required by the software to detect and act upon the end of the BIS the ITGACC register is not changed
after the end of the integration phase.
The sequence control logic itself makes use of the following sub blocks:
36.4.1.4.1
Down Counter
The down counter is basically a timer with the divider factor (BLNDIV or ITGDIV) and length
(BLNCNTLD or ITGCNTLD) determined by the current state of the BIS. Additionally to defining the
Содержание 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...