English
Language : 

AN1904 Datasheet, PDF (91/102 Pages) STMicroelectronics – ST7MC three-phase AC induction motor control software library
AN1904
A.1.2 MTC_C_D_IT interrupt routine
Appendix
Initialize rolling
Yes
average
No
Store MZREG and MZPRV
registers in the FIFO stack
Store in a temporary buffer the
last values of MZREG, MZPRV
and MPRSR registers
No
MTIM timer
Decremented
prescaler ratio
change?
Incremented
Store MPRSR + 1
Stack filled?
No
Increment
pointer
Yes
Reset pointer
Reset ratio update
flags (set in R interrupt)
Fill the whole FIFO stack with
these 3 values
Reset the FIFO pointer
Reset the rolling average
initialization flag
Reset C flag
IRET
91/102