代码搜索结果
找到约 7,992 项符合
Motor 的代码
bldc.h
#ifndef __BLDC_H__
#define __BLDC_H__
//Motor charactor 's definitions
#define SUP_VOL 24
#define RPM_PER_V 138.73
#define OPT_PULSE_PER_TURN 50
#define SPEED_DET
common.h
#ifndef COMMON_H
#define COMMON_H
#define RC_NUM 3
typedef struct {
int which; /* which motor to set, 0..RC_NUM */
int position; /* what position to set, -1000..1000 */
} COMMAND_STRUCT;
#e
89c52-stepmotor.c
/******************************************************************************
*Project:步进电机控制程序练习 A practise program of stepper motor controlment
运行开始后电机正转,默认转速为最高速度的50%(2000Hz),速度可微调,
cc_build_debug.log
------------------------------ PMSM.pjt - Debug ------------------------------
"C:\ti\c2400\cgtools\bin\dspcl" -g -as -fr"E:/works/c-dsp/total_motor/PMSM/Debug" -v2xx -@"Debug.lkf" "arithmetic.asm"
cc_build_custom.log
------------------------------ dc.pjt - Custom ------------------------------
"C:\ti\c2400\cgtools\bin\dspcl" -g -as -fr"E:/works/c-dsp/total_motor/pmsm_control/pmsm(2007.3.29)/dc" -v2xx -@"Custom.
128细分.txt
我的步进电机细分的源代码(128细分),已经运转正常,请大家参考
#include
/************************************************************/
//internal clock,Fosc/6,PCA interrupt enable
//system oscillator frequency 12M
gj070614.asm
;*********************** GJIC06.ASM ***************************
; This program use sleep!
; This Lock driver is DC MOTOR.
;
; RA0----前门开关输入/PDIO
; RA1----后门开关输入/PDIO
; RA2----电机2驱动+
gj070613.asm
;*********************** GJIC06.ASM ***************************
; This program use sleep!
; This Lock driver is DC MOTOR.
;
; RA0----前门开关输入/PDIO
; RA1----后门开关输入/PDIO
; RA2----电机2驱动+
gj0420.asm
;
;*********************** GJIC06.ASM ***************************
; This program use sleep!
; This Lock driver is DC MOTOR.
;
; RA0----前门开关输入QKG
; RA1----后门开关输入HKG
; RA2----电机2驱动+
;
motorcrl.c
#include "DSP28_Device.h"
#include "motor.h"
void startmotor(void)
{
EALLOW;
EvaRegs.CMPR1 = pwm;
EvaRegs.CMPR2 = pwm;
EvaRegs.CMPR3 = pwm;
GpioMuxRegs.GPAMUX.bit.C