参数资料
型号: ST72141K2B3/XXX
厂商: STMICROELECTRONICS
元件分类: 微控制器/微处理器
英文描述: 8-BIT, MROM, 8 MHz, MICROCONTROLLER, PDIP32
封装: 0.400 INCH, PLASTIC, SDIP-32
文件页数: 87/133页
文件大小: 2615K
代理商: ST72141K2B3/XXX
Obsolete
Product(s)
- Obsolete
Product(s)
ST72141K2
57/133
MOTOR CONTROLLER (Cont’d)
Table 20. MTIM Timer-related Registers
Note on using the auto-updated MTIM timer:
The auto-updated MTIM timer works accurately
within its operating range but some care has to be
taken when processing timer-dependent data such
as the step duration for regulation or demagnetiza-
tion.
For example if an overflow occurs when calculat-
ing
a
software
end
of
demagnetization
(MCOMP+demagnetisation_time>FFh), the value
that stored in MDREG will be:
7Fh+(MCOMP+demagnetization_time-FFh)/2.
Note on commutation interrupts: It is good prac-
tice to modify the configuration for the next step as
soon as possible, i.e within the commutation inter-
rupt routine.
All registers that need to be changed at each step
have a preload register that enables the modifica-
tions for a complete new configuration to be per-
formed at the same time (at C event in normal
mode or when writing the MPHST register in direct
access mode).
These configuration bits are:
CPB, HDM, SDM and OS2 in the MCRB register
and IS[1:0], OO[5:0] in the MPHST register.
Note on initializing the MTC: As shown in Table
22 all the MTIM timer registers are in read-write
mode until the MTC clock is enabled (with the
MOE and DAC bits). This allows the timer, prescal-
er and compare registers to be properly initialized
for start-up.
In sensorless mode, the motor has to be started in
switched mode until a BEMF voltage is present on
the inputs. This means the prescaler ST[3:0] bits
and MCOMP register have to be modified by soft-
ware. When running the ST[3:0] bits can only be
incremented/decremented, so the initial value is
very important.
When starting directly in autoswitched mode (in
sensor mode for example), write an appropriate
value in the MZREG and MZPRV register to per-
form a step calculation as soon as the clock is en-
abled.
Name
Reset Value
Contents
MTIM
00h
Timer Value
MZPRV
00h
Capture Zn-1
MZREG
00h
Capture Zn
MCOMP
00h
Compare Cn+1
MDREG
00h
Demagnetization Dn
相关PDF资料
PDF描述
ST72311N4T6/XXX 8-BIT, MROM, 8 MHz, MICROCONTROLLER, PQFP64
ST72311J2B6/XXX 8-BIT, MROM, 8 MHz, MICROCONTROLLER, PDIP42
ST72311N2T3/XXX 8-BIT, MROM, 8 MHz, MICROCONTROLLER, PQFP64
ST72321BAR7T6 MICROCONTROLLER, QFP64
ST72321BR7T3 MICROCONTROLLER, QFP64
相关代理商/技术参数
参数描述
ST72141K2B6 制造商:STMICROELECTRONICS 制造商全称:STMicroelectronics 功能描述:8-BIT MCU WITH ELECTRIC-MOTOR CONTROL, ADC, 16-BIT TIMERS, SPI INTERFACE
ST72141K2M1 制造商:STMICROELECTRONICS 制造商全称:STMicroelectronics 功能描述:8-BIT MCU WITH ELECTRIC-MOTOR CONTROL, ADC, 16-BIT TIMERS, SPI INTERFACE
ST72141K2M3 制造商:STMICROELECTRONICS 制造商全称:STMicroelectronics 功能描述:8-BIT MCU WITH ELECTRIC-MOTOR CONTROL, ADC, 16-BIT TIMERS, SPI INTERFACE
ST72141K2M3/XXX 制造商:未知厂家 制造商全称:未知厂家 功能描述:Microcontroller
ST72141K2M6 制造商:STMICROELECTRONICS 制造商全称:STMicroelectronics 功能描述:8-BIT MCU WITH ELECTRIC-MOTOR CONTROL, ADC, 16-BIT TIMERS, SPI INTERFACE