datasheetbank_Logo
Integrated circuits, Transistor, Semiconductors Search and Datasheet PDF Download Site

ST7FMC2S5TC(2004) View Datasheet(PDF) - STMicroelectronics

Part Name
Description
MFG CO.
ST7FMC2S5TC Datasheet PDF : 294 Pages
First Prev 171 172 173 174 175 176 177 178 179 180 Next Last
ST7MC1/ST7MC2
MOTOR CONTROLLER (Contd)
Three kinds of interrupt can be generated in
Speed Sensor Mode, as summarized in Figure
102:
C interrupt, when a capture event occurs; this in-
terrupt shares resources (Mask bit and Flag) with
the Commutation event in Switched/Au-
toswitched Mode, as these modes are mutually
exclusive.
RPI/RMI interrupts occur when the ST[3:0] bits of
the MPSR register are changed, either automat-
ically or by hardware.
S interrupt occurs when a Speed Error happens
(i.e. a successful comparison between
[MTIM:MTIML] and [MDREG:FF]). This interrupt
has the same channel as the Emergency Stop in-
terrupt (MCES), as it also warns the user about
abnormal system operation. The respective Flag
bits have to be tested in the interrupt service rou-
tine to differentiate Speed Errors from Emergen-
cy Stop events.
These interrupts may be masked individually.
Note on Delay Manager Initialization in Speed
Figure 102. Prescaler auto-change example
CAPTURE
EVENTS
Measurement Mode: In order to set-up the
[MTIM:MTIML] counter properly before any speed
measurement, the following procedure must be
applied:
The peripheral clock must be disabled (resetting
the CKE bit in the MCRA register) to allow write
access to ST[3:0], MTIM and MTIML (refer to Ta-
ble 41),
MTIM, MTIML must be reset and appropriate val-
ues must be written in the ST[3:0] prescaler
adapt to the frequency of the signal being meas-
ured and to allow speed measurement with suffi-
cient resolution.
Note on MTIML: The Least Significant Byte of the
counter (MTIML) is not used when working in Po-
sition Sensor or Sensorless Modes.
Debug option: a signal reflecting the capture
events may be output on a standard I/O port for de-
bugging purposes. Refer to section9.6.7.3 on page
168 for more details.
[MTIM:MTIML]
FFFFh
FAFFh
8000h
5500h
USUAL
WORKING
RANGE
C
C
Notes:
Events:
C Capture
S Speed Error
RPI Ratio Increment
RMI Ratio Decrement
S RPI
[MTIM:MTIML] Input Clock:
Fx (ST[3:0] = n)
Fx / 2 (ST[3:0] = n+1)
C
C
C
RMI
180/294
1

Share Link: 

datasheetbank.com [ Privacy Policy ] [ Request Datasheet ] [ Contact Us ]