代码搜索结果
找到约 10,000 项符合
PWM 的代码
pwm.pjt
; Code Composer Project File, Version 2.0 (do not modify or remove this line)
[Project Settings]
ProjectDir="E:\2407\2407asm\pwm\"
ProjectType=Executable
CPUFamily=TMS320C24XX
Tool="Compiler"
pwm.asm
st0_temp .usect ".b20",1 ;
st1_temp .usect ".b20",1 ;
context .usect ".b20",7 ;62-68
.include "F2407REGS.H" ;引用头部文件
.def _c_int0
;(1)建立中断向量表
.sect ".vectors" ;定义主
pwm.c
// 该程序利用EVB模块的PWM7--PWM12引脚产生不同占空比的方波
#include "f2407_c.h"
// 屏蔽中断程序
void inline disable()
{
asm(" setc INTM");
}
// 系统初始化子程序
int initial()
{
asm(" setc SXM"); // 符号位扩展有效
a
pwm.pjt
; Code Composer Project File, Version 2.0 (do not modify or remove this line)
[Project Settings]
ProjectDir="E:\lp\2407new\PWM\"
ProjectType=Executable
CPUFamily=TMS320C24XX
Tool="Compiler"
To
pwm.h
#ifndef __Pwm_H__
#define __Pwm_H__
void Test_Pwm(void);
#endif /*__PWM_H__*/
pwm.c
#include
#include "..\inc\44b.h"
#include "..\inc\44blib.h"
#include "..\inc\timer.h"
#define READ_COUNT2 (rTCNTO2 & 0xffff)
#define MaxBeepFreq 20000
#define MinBeepFreq 20
exte
pwm.h
/*****************************************/
/* Copyright (c) 2005, 通信工程学院 */
/* All rights reserved. */
/* 作 者:戴 佳 */
/****************************************