代码搜索结果
找到约 10,000 项符合
PWM 的代码
picoblaze_pwm_control.vhd
--
-- Reference design - Pulse Width Modulation (PWM) using PicoBlaze software and
-- interrupts only on the Spartan-3E Starter Kit.
--
-- Ken Chapman - Xilinx Ltd - 22nd May 2
pwm2.m51
BL51 BANKED LINKER/LOCATER V5.03 08/23/2007 15:45:22 PAGE 1
BL51 BANKED LINKER/LOCATER V5.03, INVOKED BY:
C:\KEIL\C51\BIN\BL51.EXE STARTU
pi_pwm2.c
#include
#include
#include
bit flag=1;
unsigned char pwm=0;
unsigned char a,b;
sbit P21=P2^1;
sbit P20=P2^0;
void sdf() interrupt 3 using 0 //定时255us,0.063s
pi_pwm2.lst
C51 COMPILER V7.08 PI_PWM2 08/23/2007 15:45:22 PAGE 1
C51 COMPILER V7.08, COMPILATION OF MODULE PI_PWM2
OBJECT MODULE PLACED IN
pwm2.uv2
### uVision2 Project, (C) Keil Software
### Do not modify !
Target (Target 1), 0x0000 // Tools: 'MCS-51'
Group (Source Group 1)
File 1,2, 0x0
File 1,1,
pwm2_opt.bak
### uVision2 Project, (C) Keil Software
### Do not modify !
cExt (*.c)
aExt (*.s*; *.src; *.a*)
oExt (*.obj)
lExt (*.lib)
tExt (*.txt; *.h; *.inc)
pExt (*.plm)
CppX (*.cpp)
DaveTm {
pi_pwm.uv2
### uVision2 Project, (C) Keil Software
### Do not modify !
Target (Target 1), 0x0000 // Tools: 'MCS-51'
Group (Source Group 1)
File 1,2, 0x0
File 1,1,
原始pi_pwm.c
#include
#include
typedef struct
{
unsigned int uk,uks,uont1,uont2,bt;
unsigned char pick,comand,ki,kp;
unsigned char s1,s2,ek,ek1;
}PID;
PID xdata PI;
typedef st