代码搜索结果
找到约 10,000 项符合
PWM 的代码
pwm.pjt
; Code Composer Project File, Version 2.0 (do not modify or remove this line)
[Project Settings]
ProjectName="DSP281x"
ProjectDir="F:\LF2812A\F2812\DSP281x_examples\SVPwm\"
ProjectType=Executabl
pwm.pjt
; Code Composer Project File, Version 2.0 (do not modify or remove this line)
[Project Settings]
ProjectName="DSP281x"
ProjectDir="F:\LF2812A\F2812\DSP281x_examples\SVPwm\"
ProjectType=Executabl
pwm.h
void PWM(unsigned char top,unsigned char match,unsigned char freq_prev);
pwm.c
#include
#include
void PWM(unsigned char top,unsigned char match,unsigned char freq_prev)
{
TCNT2=top;//0x00;
OCR2=match;//0xf0;
switch(freq_prev)
{
case 0:TCCR2=(1