代码搜索结果
找到约 10,000 项符合
PWM 的代码
pwm.h
#define PWM_ENABLE 1
#define PWM_DISABLE 0
#define BUS_CLOCK 8000000L
#define PWM_PERIOD 100//PERIOD 100 PWM_CLOCK BUS CYCLE
#define PER_DIV 100
#define PWM_PERCENT (PWM_PERIOD/PER_D
pwm.h
/*****************************************************************************
* pwm.h: Header file for NXP LPC23xx/24xx Family Microprocessors
*
* Copyright(C) 2006, NXP Semiconductor
*
pwm.c
/*****************************************************************************
* pwm.c: PWM module file for NXP LPC23xx/24xx Family Microprocessors
*
* Copyright(C) 2006, NXP Semiconductor
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.h
unsigned char p;
unsigned int base_voltage=0x80;
unsigned int result;
unsigned char data_p;
unsigned char powerstage;
unsigned char value_a;
unsigned char value_b;
unsigned int amplitude
pwm.txt
#include
#include
#include
#define PWM 0x80 // 设置占空比50%
void main(void )
{
unsigned char a;
unsigned int b;
WDTCN = 0xde; // 禁止看门狗定时器
WDTCN =
pwm.c
/* ============================================================================*/
/********************************************************
pwm.v
/**************************************************************************/
/* Copyright