代码搜索结果
找到约 10,000 项符合
PWM 的代码
pi_pwm.m51
BL51 BANKED LINKER/LOCATER V5.03 08/22/2007 11:32:28 PAGE 1
BL51 BANKED LINKER/LOCATER V5.03, INVOKED BY:
C:\KEIL\C51\BIN\BL51.EXE STARTU
pi_pwm_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 {
timer_pwm.c.bak
#include "SEED-DEC2407.h"
#include "TIMER_PWM.h"
void main()
{
*IFR = 0x3f;
DINT;
SystemInit();
TimerPWMInit();
*IMR = 0x02;
EINT;
for(;;)
{
}
}
void SystemInit(void)
timer_pwm.c.bak
#include "SEED-DEC2407.h"
#include "TIMER_PWM.h"
void main()
{
*IFR = 0x3f;
DINT;
SystemInit();
TimerPWMInit();
*IMR = 0x02;
EINT;
for(;;)
{
}
}
void SystemInit(void)
pwm_16.uv2
### uVision2 Project, (C) Keil Software
### Do not modify !
Target (Target 1), 0x0000 // Tools: 'MCS-51'
Group (Source Group 1)
File 1,1, 0x0
Options 1,0,0 // Ta
pwm_timer_b.h
#ifndef __PWM_TIMER_B
#define __PWM_TIMER_B
#define PWM_IO (BIT1|BIT2) //PWM1,2设置
#define PWM_SEL P4SEL|=PWM_IO
#define PWM_OUT P4DIR|=PWM_IO
#define PWM_IN P4DIR&=~PWM_IO
#define PF 0x
pwm_timer_b.c
/********
使用TIME_B进行PWM输出
**********/
#include
#include "pwm_timer_b.h"
#include "Time_A.h"
float iFre; //频率
float iScale; //占空比
void InitTimeB() //初始化
{