代码搜索结果
找到约 10,000 项符合
PWM 的代码
pwm.c
//************************************************************************
//File Name: PWM.c
//Include: Tremble_Frequency -- PWM Wave Genreration Fucn
//Description:
//*******************
pwm.asm
;
; Software License Agreement
;
; The software supplied herewith by Microchip Technology Incorporated
; (the 揅ompany
pwm.c
//编程时间:07-5-16
#include
/////////////////////////////////////////
//--------------端口定义---------------//
/////////////////////////////////////////
//#define PWM1 RC2
//#define PW
pwm.c
//-----------------------函数声明,变量定义--------------------------------------------------------
#include
#include
#include
//-----------------------定义管脚---------------
pwm.lst
C51 COMPILER V7.06 PWM 05/12/2005 21:42:46 PAGE 1
C51 COMPILER V7.06, COMPILATION OF MODULE PWM
OBJECT MODULE PLACED IN pwm
pwm.c
/*
1. 通过写入PR2 寄存器来设置PWM 周期。
2. 通过写入CCPR1L 寄存器和CCP1CON 位来设置PWM 占空比。
3. 用户必须通过清零T R ISC 位将RC5/T1CKI/CCP1/SEG10 引脚配置为输出引脚。
4. 通过写T2CON 来设置TMR2 预分频值并使能Timer2。
5. 配置CCP2 模块使之工作于PWM 模式。
PWM
pwm.h
//[PWM.h]脉宽调制头文件-----------------------------------------------------
//脉宽调制需要用到的头文件
#include //MCU映像寄存器名
#include "Type.h"
//脉宽调制相关函数声明
//PWM初始化函数声明
void PWMInit(INT8U
pwm.c
//[PWM.c]脉宽调制----------------------------------------------------------*
//本文件包含: *
// (1)PWMInit:PWM初始化