Stepper Stall Detect (SSD)
MPC5606S Microcontroller Reference Manual, Rev. 7
Freescale Semiconductor
1173
36.4.1.4.3
DC Offset Cancellation
Due to deviations from the mid point of the analog supply voltages and other effects in the hardware of the
analog blocks a DC offset may be introduced into the output of the
-modulator. As a consequence of
such a DC offset the value obtained in the integration accumulator would depend from the ‘direction’ of
the integration (e.g. accumulator increment for positive back EMF in clockwise movement). The DC offset
cancellation implemented in the SSD block can eliminate (or at least reduce) the influence of such a DC
offset:
When active the DC offset cancellation reverts two internal settings in the SSD block during the
integration phase of the current BIS:
•
The input into the analog block controlling the integration polarity which sets the switch condition
state (third column in
):
Initial value (when the integration starts at step 5 in
Section 36.4.2.2, Details of the SSD
) is the bit value given in the ITGDIR register in the CONTROL register.
•
The output of the
-modulator being applied to the integration accumulator (ITGACC register):
Initially it is applied without change to the integration accumulator.
As a result the switch conditions in the analog circuitry change the direction of the voltage representing
the back EMF measured by the
-modulator. But the change direction of the ITGACC register is
maintained because the interpretation of the
-modulator output is reverted, too.
The offset cancellation is implemented as an additional counter running during the integration phase with
the same clock setting like the DCNT register. The preset value for this counter is derived from the
ITGCNTLD register by shifting right by 0, 1, 2 or 3 bits, depending from the OFFCNC bit setting. Clearing
all the OFFCNC bits obviously disables the offset cancellation completely. Note that increasing the
number of flips improves the offset cancellation because the different polarities are distributed equally
over the complete integration phase (if ITGCNTLD can be divided by the appropriate number). Refer to
for more details.
Table 36-14. ITGACC update clock vs. bus clock—recommended settings
1
1
Numbers rounded appropriately
Bus Clock
40 MHz
64 MHz
80 MHz
ACDIV
3’b010
3’b011
3’b011
3’b100
3’b011
3’b100
Divider factor
32
64
64
128
64
128
Sampling frequency
1.25 MHz
625 kHz
1.00 MHz
500 kHz
1.25 MHz
625 kHz
Update interval
0.8
s
1.6
s
1.00
s
2.00
s
0.8
s
1.6
s
Содержание 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...