mc_control_speed(2*mci_get_ref_speed())
duty-cycle_reference
is calculated from
ref_spe ed
and
from
monitored mci_get_measured_speed()
measured_speed = (KSPEED * 4) / mci_measured_period
with mci_measured_period calculated in the Interrupt vector of
Analog Comparator 1. This interrupt uses Timer 0 to compute the
period.
? In CURRENT_LOOP :
mc_control_current(mc_get_potentiometer_value()
3.5.3 Sensorless Detection and Commutation Management
The analog comparators 0, 1 and 2 are used to detect the zero crossing of the U, V
and W phases.
The timer 1 is used to monitor the time between two consecutive zero crossings. This
time corresponds to one sector of the electrical rotation of the motor. It equals 60° of
the entire electrical period of the motor.
When a zero crossing event occurs, the timer 1 value is stored. Then this value is
divided by 2 (providing the 30° time) and loaded into the Compare A register of timer
1. Then this value is added to the half of itself to provide the 45° time and loaded into
the Compare B register of timer 1.
The timer 1 compare A event occurs 30° after the zero crossing. It activates the next
commutation state and masks the zero crossing to avoid the discharge of the
inductance (demagnetization) pulse generated at the end of a step when the active
switches are released.
Due to the inductance of the motor coils, a voltage equals to -Ldi/dt is generated, the
demagnetization is done through the diodes of the power bridge.
The timer 1 compare B event releases the zero crossing mask : enables the
comparator n interrupt according to the motor_step variable. This Timer1 interrupt
provides the demagnetization mask delay.
10
AVR172
8306B-AVR-05/10
相关PDF资料
ATAVRSB100 SMART BATTERY DEVELOPMENT KIT
ATAVRSB200 KIT EVAL FOR AVR SMART BATTERY
ATAVRSB201 KIT REF FOR AVR SMART BATTERY
ATDH1150USB ACCY USB CABLE JTAG ISP AT18F
ATDVK90CAN1 KIT DEV FOR AT90CAN128 MCU
ATEVK1104AU KIT EVAL AT32UC3A3256AU
ATEVK1105AU KIT EVAL AT32UC3A0512AU
ATEVK525 ADD ON KIT FOR STK525
相关代理商/技术参数
ATAVRMC321 功能描述:开发板和工具包 - AVR Motor Contrl. Kit for low cost app. RoHS:否 制造商:Arduino 产品:Evaluation Boards 工具用于评估:ATMega32U4 核心:AVR 接口类型:I2C, UART, USB 工作电源电压:6 V to 20 V
ATAVRMC323 功能描述:开发板和工具包 - AVR Motor Contrl. Kit CPU Intens Algorithm RoHS:否 制造商:Arduino 产品:Evaluation Boards 工具用于评估:ATMega32U4 核心:AVR 接口类型:I2C, UART, USB 工作电源电压:6 V to 20 V
ATAVR-MICTOR38 功能描述:集管和线壳 Connector 4 nexus trace connect 4 AVR RoHS:否 产品种类:1.0MM Rectangular Connectors 产品类型:Headers - Pin Strip 系列:DF50 触点类型:Pin (Male) 节距:1 mm 位置/触点数量:16 排数:1 安装风格:SMD/SMT 安装角:Right 端接类型:Solder 外壳材料:Liquid Crystal Polymer (LCP) 触点材料:Brass 触点电镀:Gold 制造商:Hirose Connector
ATAVRONEKIT 功能描述:电路内置调试器 Debug and program all AVR32 devices RoHS:否 制造商:Microchip Technology 产品:In-Circuit Debugger Kits 工具用于评估:PIC MCUs, dsPIC DSCs 用于:07-00024, AC164113 核心:dsPIC, PIC 接口类型:USB 工作电源电压:3 V to 5 V
ATAVRONE-PROBE 功能描述:程序设计器配件 replacement probe AVRONE RoHS:否 制造商:Lattice 产品:ispDOWNLOAD Cables 用于:In-system Programming
ATAVRONE-PROBE-5V 功能描述:程序设计器配件 AVRONE upgrade probe for AT32UC3C RoHS:否 制造商:Lattice 产品:ispDOWNLOAD Cables 用于:In-system Programming
ATAVRONE-PROBECBL 功能描述:电缆组件 replacement probecbl AVRONE RoHS:否 制造商:Molex 产品:Power Assemblies 类型:Cable Assembly 连接器端口 A:No Connector 连接器端口 A 管脚计数:4 连接器端口 B:No Connector 连接器端口 B 管脚计数: 型式:Male 线规 - 美国线规(AWG):20, 28 长度:0.305 m 颜色:Black, Red
ATAVRONE-PSU 制造商:Atmel Corporation 功能描述:AVRONE REPLACEMENT PROBE CABLE 制造商:Atmel Corporation 功能描述:AVRONE REPLACEMENT PROBE CABLE - AVRONE REPLACEMENT POWER SU - Boxed Product (Development Kits) 制造商:Atmel Corporation 功能描述:AVRONE REPLACEMENT POWER SUPPLY