代码搜索结果
找到约 7,992 项符合
Motor 的代码
delay.s
.module delay.c
.area text(rom, con, rel)
.dbfile C:\DOCUME~1\www\桌面\motor_ce\delay.c
.dbfunc e delay_1ms _delay_1ms fV
; i -> R16,R17
.even
_delay_1ms::
.dbline -1
.dbline
sh401.c
#include
#include
#define uchar unsigned char
#define uint unsigned int
bit gate; // 定时标志位
bit direct; /*设置电机正反转标志,0-正转;1-反转*/
sbit motor1=P1^2;
sbit mo
sh401.c
#include
#include
#define uchar unsigned char
#define uint unsigned int
bit gate; // 定时标志位
bit direct; /*设置电机正反转标志,0-正转;1-反转*/
sbit motor1=P1^2;
sbit mo
h22.c
// step motor control
// C for MCS51
#define mode8255 0x82
xdata unsigned char control _at_ 0x8003;
xdata unsigned char ctl _at_ 0x8000;
#define Astep 0x01
#define Bstep 0x02
#define Cstep
h21.c
// DC motor
// C for MCS51
#include
#define mode 0x82
xdata unsigned char CTL _at_ 0x8003;
xdata unsigned char status _at_ 0x8001;
xdata unsigned char CS0832 _at_ 0x9000;
unsigned
用pic12c508509 控制一个步进电机源程序.txt
用PIC12C508509 控制一个步进电机源程序
; STEP_3.ASM (12C508 / 12C509)
;
; Controls a stepping motor driver on GPIO bits 4, 2, 1 and 0.
;
; The direction is controlled by a switch on GPIO bit 3. Bit 5 is n
sh401.c
#include
#include
#define uchar unsigned char
#define uint unsigned int
bit gate; // 定时标志位
bit direct; /*设置电机正反转标志,0-正转;1-反转*/
sbit motor1=P1^2;
sbit mo
dc_ge_load.m
% 直流发电机转矩特性分析
% 将该函数定义为dc_mo_tor(dc_motor_torque)
%--------------------------------------------------------------------------
% 下面输入电机基本数据:
nN=1000;IfN=2.5;Rf=293/12;Ra=1.8;k=.1;E0=271
% 下面输入750转
dc_ge_load.m
% 直流发电机转矩特性分析
% 将该函数定义为dc_mo_tor(dc_motor_torque)
%--------------------------------------------------------------------------
% 下面输入电机基本数据:
nN=1000;IfN=2.5;Rf=293/12;Ra=1.8;k=.1;E0=271
% 下面输入750转
dc_ge_load.m
% 直流发电机转矩特性分析
% 将该函数定义为dc_mo_tor(dc_motor_torque)
%--------------------------------------------------------------------------
% 下面输入电机基本数据:
nN=1000;IfN=2.5;Rf=293/12;Ra=1.8;k=.1;E0=271
% 下面输入750转