代码搜索结果
找到约 10,000 项符合
PWM 的代码
pwm.c
/////////PCA CEX0为PWM 输出模式//////////////
/////////PWM.c//////////////////////////
#include
typedef unsigned int uint;
typedef unsigned char uchar;
typedef unsigned long ulong;
sfr1
pwm.h
/**
* \addtogroup Pwm
* @{
*/
/*****************************************************************************/
/**
* \file Pwm.h
* Pulse width modulation code for the T89C51AC2 and Keil C
pwm.c
/**
* \addtogroup Pwm
* @{
*/
/*****************************************************************************/
/**
* \file Pwm.c
* Pulse width modulation code for the T89C51AC2 and Keil C
pwm.c
#include
#define uchar unsigned char
#define uint unsigned int
sbit LED10 = P2^0; //要控制的LED 灯
sbit K1= P3^2; //按键K1
uchar scale; //用于保存占空比的输出0 的
pwm.h
#ifndef __Pwm_H__
#define __Pwm_H__
void Test_Pwm(void);
#endif /*__PWM_H__*/
pwm.c
#include
#include "..\inc\44b.h"
#include "..\inc\44blib.h"
#include "..\inc\timer.h"
#define READ_COUNT2 (rTCNTO2 & 0xffff)
#define MaxBeepFreq 20000
#define MinBeepFreq 20
exte
pwm.pjt
; Code Composer Project File, Version 2.0 (do not modify or remove this line)
[Project Settings]
ProjectName="pwm"
ProjectDir="F:\F2812\pwm\"
ProjectType=Executable
CPUFamily=TMS320C28XX
Tool=