代码搜索结果
找到约 10,000 项符合
PWM 的代码
pwm.opt
### 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 {
pwm.pjt
; Code Composer Project File, Version 2.0 (do not modify or remove this line)
[Project Settings]
ProjectName="pwm"
ProjectDir="H:\f2812\C\pwm\"
ProjectType=Executable
CPUFamily=TMS320C28XX
Too
pwm.c
#include
#define Timer1_H 0x9e//0x3c
#define Timer1_L 0x58//0x00
#define Timer0_Reload 0xff//0x0f6 //Timer0自动重装数= -10
#define on 0
#define off 1
#define INT_DISABLE EA=0;
pwm.h
#ifndef __PWM_H__
#define __PWM_H__
#define PWM_FRE 10000 //10kHz
#define PWM_CONT (MCLK/(16*2*1.01)/PWM_FRE)
#define INITPWMSCALE 0.5
void InitPWM(void);
int SetPWM(U8 num, float scale)