代码搜索结果
找到约 10,000 项符合
PWM 的代码
pwm8_1.inc
;;*****************************************************************************
;;*****************************************************************************
;; FILENAME: PWM8_1.inc
;; Version
timer_pwm_reg.plg
礦ision3 Build Log
Project:
E:\EasyARM8962demo\keil\time16PWM\time16PWM_reg\timer_pwm_reg.uv2
Project File Date: 11/22/2007
Output:
timer_pwm_reg.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 {
timer_pwm_reg.c
/****************************************Copyright (c)****************************************************
** Guangzhou ZHIYUAN electronics Co.,LTD.
**
time_16_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 {
time_16_pwm.c
/****************************************Copyright (c)****************************************************
** Guangzhou ZHIYUAN electronics Co.,LTD.
**
time_16_pwm.plg
礦ision3 Build Log
Project:
E:\EasyARM8962demo\keil\time16PWM\time16PWM_lib\time_16_PWM.uv2
Project File Date: 11/08/2007
Output:
pwm 电机控制实验.txt
//Main.c
//PWM电机控制程序,正反转,默认设置的工作频率1kHz
#include "global.c"
void SystemInit();
void PWM_Init() ;
void KickDog();
int numled0=200;
unsigned int t0=0;
unsigned int XPWM=0;
main()
p18_pwm.c
#include "..\include.h"
void P18_SetPWM2Freq( unsigned char freq )
{
PR2 = freq;
CCPR2L =freq/2;
// CCP2CON &= 0x3F;
}
void P18_PWM2Init( void )
{
TRISE &= 0x7F; //ccp2,RE7