基于tms320f2812的永磁同步电动机svpwm空间矢量控制算法实现的源代码内容摘要:
= (int16)_IQtoIQ15()。 // MfuncC1 is in Q15 = (int16)_IQtoIQ15()。 // MfuncC2 is in Q15 = (int16)_IQtoIQ15()。 // MfuncC3 is in Q15 (amp。 pwm1)。 endif // (BUILDLEVEL==LEVEL2) // ***************** LEVEL3 ***************** if (BUILDLEVEL==LEVEL3) // // Connect inputs of the RMP module and call the Ramp control // calculation function. // = _IQ(SpeedRef)。 (amp。 rc1)。 // // Connect inputs of the RAMP GEN module and call the Ramp generator // calculation function. // =。 (amp。 rg1)。 // // Call the ILEG2_VDC read function. // (amp。 ilg2_vdc1)。 // // Connect inputs of the CLARKE module and call the clarke transformation // calculation function. // = _IQ15toIQ((int32))。 = _IQ15toIQ((int32))。 (amp。 clarke1)。 // // Connect inputs of the PARK module and call the park transformation // calculation function. // =。 =。 =。 (amp。 park1)。 // // Connect inputs of the PID_REG3 module and call the PID IQ controller // calculation function. // = _IQ(IqRef)。 =。 (amp。 pid1_iq)。 // // Connect inputs of the PID_REG3 module and call the PID ID controller // calculation function. // = _IQ(IdRef)。 =。 (amp。 pid1_id)。 // // Connect inputs of the INV_PARK module and call the inverse park transformation // calculation function. // =。 =。 =。 (amp。 ipark1)。 // // Connect inputs of the SVGEN_DQ module and call the spacevector gen. // calculation function. // =。 =。 (amp。 svgen_dq1)。 // // Connect inputs of the PWM_DRV module and call the PWM signal generation // update function. // = (int16)_IQtoIQ15()。 // MfuncC1 is in Q15 = (int16)_IQtoIQ15()。 // MfuncC2 is in Q15 = (int16)_IQtoIQ15()。 // MfuncC3 is in Q15 (amp。 pwm1)。 endif // (BUILDLEVEL==LEVEL3) // ***************** LEVEL4 ***************** if (BUILDLEVEL==LEVEL4) // // Connect inputs of the RMP module and call the Ramp control // calculation function. // = _IQ(SpeedRef)。 (amp。 rc1)。 // // Connect inputs of the RAMP GEN module and call the Ramp generator // calculation function. // =。 (amp。 rg1)。 // // Call the ILEG2_VDC read function. // (amp。 ilg2_vdc1)。 // // Connect inputs of the CLARKE module and call the clarke transformation // calculation function. // = _IQ15toIQ((int32))。 = _IQ15toIQ((int32))。 (amp。 clarke1)。 // // Checking LockRotorFlag=FALSE for spinning mode, LockRotorFlag=TRUE for locked rotor mode // if(LockRotorFlag==TRUE) // locked rotor mode if LockRotorFlag = 1 { // // Connect inputs of the PARK module and call the park transformation // calculation function. // =。 =。 = 0。 (amp。 park1)。 // // Connect inputs of the PID_REG3 module and call the PID IQ controller // calculation function. // = _IQ(IqRef)。 =。 (amp。 pid1_iq)。 //。基于tms320f2812的永磁同步电动机svpwm空间矢量控制算法实现的源代码
相关推荐
测控现场间的数据通信的畅通是高效、稳定的测控实现的前提。 一般情况下,主控平台和测控现场之间存在一定距离,为此人们提出了诸多总线协议诸如 CAN、RS232 等用来实现这一目的。 相比于靠电缆来构成数据传输通道,无线传输方式则显得更加的方便。 综合上述考虑,设计出了如图 21 所示的系统结构。 图 21 系统结构 4/48 基于 USB 的无线测控平台的设计 167。 应用 LabVIEW
算接触强度时运转初期(未经跑合)的齿向载荷分布系数,由齿向载荷分布图可查得。 参照濮良贵《机械设计》表 104 HWK —— 计算接触强度时跑合影响系数 ; 0FK —— 计算弯曲强度时运转初期(未经跑合)的齿向载荷分布系数,由齿向载荷分布图可查得 ; KFW—— 计算弯曲强度时的跑合影响系数; KHe—— 与均载系数有关的系数; KFe—— 与均载荷系数有关的系数。 则可得 KHβ 、
中,二进制基带信号是用正负电平表示的,载波频率随着调制信号为 1 或 1 二变化,其中 1 对应于载波频率 w1 表示, 1 对应载波频率 w2. 2,设计方案 调制部分 : ACOS(ω1t) 半波整流器 相乘器 基带信号 a(n) 加法器 SFSK( t) 倒相 半波整流器 相乘器 ACOS(ω2t) 基带信号经整流后,双极性码变为单极 性码,形成键控信号。 解调部分 : ACOS(ω1t)
综合分析 布局布线 时序仿真 编程和配置 生成变成文件 建立对应器件链接文件 转换变成文件 设计输入 第三章:时钟芯片设计方案 7 第三章 时钟芯片设计方案 多功能时钟的设计指标 技术指标: A、具有数字电子钟的基本功能:拥有年月日时分秒显示,并且月日的显示要有阴阳历两种显示,时为 12 小时制显示; B、支持闰年闰月提醒、传统节假日提醒和日程提醒功能; C、支持时间校对功能; D、支持闹铃功能
RXD 串行输入口 TXD 串行输出口 /INT0 外部中断 0 /INT1 外部中断 T0 0 外部输入 T1 记时器 1 外部输入 /WR数据存储器写选通 /RD外部数据存储器读选通 P3口同时为闪烁编程和编程校验接收一些控制信号。 控制线 (共 4 根 ) RST 复位输入。 当振荡器复位器件时要保持 RST 脚两个机器周期的高电平时间。 ALE/PROG