数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

ST7MC1 数据表(PDF) 170 Page - STMicroelectronics

部件名 ST7MC1
功能描述  8-BIT MCU WITH NESTED INTERRUPTS, FLASH, 10-BIT ADC, BRUSHLESS MOTOR CONTROL, FIVE TIMERS, SPI, LINSCI
PDF  308 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  STMICROELECTRONICS [STMicroelectronics]
网页  http://www.st.com
标志 STMICROELECTRONICS - STMicroelectronics

ST7MC1 数据表(HTML) 170 Page - STMicroelectronics

Back Button ST7MC1 Datasheet HTML 166Page - STMicroelectronics ST7MC1 Datasheet HTML 167Page - STMicroelectronics ST7MC1 Datasheet HTML 168Page - STMicroelectronics ST7MC1 Datasheet HTML 169Page - STMicroelectronics ST7MC1 Datasheet HTML 170Page - STMicroelectronics ST7MC1 Datasheet HTML 171Page - STMicroelectronics ST7MC1 Datasheet HTML 172Page - STMicroelectronics ST7MC1 Datasheet HTML 173Page - STMicroelectronics ST7MC1 Datasheet HTML 174Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 170 / 308 page
background image
ST7MC1/ST7MC2
170/308
MOTOR CONTROLLER (Cont’d)
10.6.7.2 Autoswitched Mode
In this mode, using the hardware commutation
event CH (SC bit reset in MCRC register), the
MCOMP register content is automatically comput-
ed in real time as described below and in Figure
93.
The C (either CS or CH) event has no effect on the
contents of the MTIM timer.
When a ZH event occurs the MTIM timer value is
captured in the MZREG register, the previous cap-
tured value is shifted into the MZPRV register and
the MTIM timer is reset. See Figure 73.
When a ZS event occurs, the value written in the
MZREG register is shifted into the MZPRV register
and the MTIM timer is reset.
One of these two registers, (when the SC bit = 0 in
the MCRC register and depending on the DCB bit
in the MCRA register), is multiplied with the con-
tents of the MWGHT register and divided by 256.
The result is loaded in the MCOMP compare reg-
ister, which automatically triggers the next hard-
ware commutation (CH event).
Note: The result of the 8*8 bit multiplication, once
written in the MCOMP register is compared with
the current MTIM value to check that the MCOMP
value is not already less than the MTIM value due
to the multiplication time. If MCOMP<=MTIM, a CH
event is generated immediately and the MCOMP
value is overwritten by the MTIM value.
Table 39. Multiplier Result
After each shift operation the multiply is recomput-
ed for greater precision.
Using either the MZREG or MZPRV register de-
pends on the motor symmetry and type.
The MWGHT register gives directly the phase shift
between the motor driven voltage and the BEMF.
This parameter generally depends on the motor
and on the speed.
Setting the SC bit in the MCRC register enables
the simulated commutation event (CS) generation.
This means that a write access is possible to the
MCOMP register and the MTIM value will be com-
pared directly with the value written by software in
the MCOMP register to generate the CS event.
The comparison is enabled as soon as a write ac-
cess is done to the MCOMP register. This means
that if the SC bit is set and no write access is done
to the MCOMP register, the C event will never oc-
cur because no comparison will be done between
MCOMP and MTIM. Therefore, it is recommended
in autoswitched mode, when using software com-
mutation feature (SC bit is set) and for a normal
event sequence, the corresponding value to be
put in MCOMP has to be written during the Z inter-
rupt routine (because MTIM has just been reset),
so that there is no spurious comparison. If the SC
bit is set during a Z event interrupt, then , the result
of the 8*8 bits hardware multiplication can be over-
written by software in the MCOMP register. When
simulated commutation mode is enabled, the
event sequence is no longer respected, meaning
that the peripheral will accept consecutive commu-
tation events and not necessarily wait for a D
event after a Cs event. In this case the MCOMP
register can be written immediately after the previ-
ous C event, in the C interrupt service routine for
example.
Figure 93. CH Processor Block
Note 1: An overflow of the MTIM timer generates
an RPI interrupt if the RIM bit is set.
Note 2: When simulated commutation mode is en-
abled, the D and Z event are not ignored by the
peripheral, this means that if a Z event happens,
the MTIM 8 bit internal counter will be reset.
Note 3: To generate consecutive simulated com-
mutations (CS), the successive value has to be
written in the MCOMP register only after a C event
DCB bit
Commutation Delay
0
MCOMP = MWGHT x MZPRV / 256
1
MCOMP = MWGHT x MZREG / 256
MWGHT [an+1]
MZREG [Zn]
§
A x B / 256
MZPRV [Zn-1]
§
DCB bit
SWA bit =1 &
MCOMP [Cn+1]
§
ZH/ZS
8
8
8
n
n-1
§ = Register updated on R event
MCRA Register
MCRA Register
SC bit =0
MCRC register
1



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com