pwm模式 源代码

脉宽调制(PWM:(PulseWidthModulation)是利用微处理器的数字输出来对模拟电路进行控制的一种非常有效的模式。

收录资源 500 份 全站深度检索
源码文件

KP EQU 40H KI EQU 41H KD EQU 42H EI EQU 43H EI1 EQU 44H EI2 EQU 45H EK EQU 46H EK1 EQU 4BH EK2 EQU…

源码文件

#ifndef PWM_H #define PWM_H #ifdef PWM_C void pwm_40MHz( unsigned char n);//40MHz SHOUT PULSE void pwm_30MHz( unsigned char n…

源码文件

#define PWM_C #include "includes.h" void pwm_40MHz( unsigned char n) { unsigned char i; for( ;n>0;n--) { …

源码文件

#include #include #include #include volatile int pwm = 0; /* Note [1] */ volatile uint8_t direction; SIGNAL (SIG_OVE…

源码文件

"pwm.c" BROWSE DEBUG OBJECTEXTEND SRC (.\pwm.SRC)

源码文件

#include #include void pwm_init(void); void pwm_change(void);

源码文件

#include "pwm.h" unsigned char pwm_value[2]={0x7f,0x7f}; //TIMER1 initialize - prescale:1 // WGM: 8) PWM phz freq correct, …

源码文件

#ifndef __PWM__H #define __PWM__H #include "stdtypes.h" #include void timer1_init(void); void pwm_on(void); void pw…