《STM32F10xxx_正交编码器接口应用笔记》.pdf
文本预览下载声明
STM32F 10xxx
STM32F10xxx
Abstract The quadrature encoder which is very popular in the motor servo control
application, known as a 2-channel incremental encoder, converts linear displacement
into a pulse signal. By monitoring the number of pulses and the relative phase of the
two signals you can track the position, the direction of rotation and speed. In ddition,
a third channel, or index signal, can be used to reset the position counter.
STM3210x which is the MCU based on ARM latest core - Cortex-M3, integrates the
quadrature encoder interface. Accordingly STM3210x can handles the encoder
signal without any CPU overhead which it is possible for CPU to focus on the vector
control.
, TM32F10x
MCU MCU
STM32F10x
1
A B Z
A B +/- 90°
1
1/7
STM32F 10xxx
2 STM32F10x
STM32F10x
TI1 TI2
2.1
2
2.2
TI2
TIM1_SMCR SMS=001TI1 SMS=010
TI1 TI2 SMS=011
TIM1_CCER CC1P CC2P TI1 TI2
TI1 TI2 1
(TIM1_CR1 CEN=1)TI1FP1 TI2FP2
TI1FP1 TI2FP2 TI1 TI2
TI1FP1=TI1TI2FP2=TI2
TIM1_CR1 DIR
TI1 TI2 TI1 TI2 (TI1
TI2)DIR
2/7
STM32F 10xxx
0 TIM1_ARR (0
ARR ARR 0 )TIM1_ARR
显示全部