代码搜索结果
找到约 10,000 项符合
PWM 的代码
pwm.plg
礦ision3 Build Log
Project:
C:\Documents and Settings\Administrator\桌面\Chapter 8\60 PWM\PWM.uv2
Project File Date: 11/01/2006
Output:
pwm.lnp
"PWM.obj"
TO "PWM"
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.asm
ADC EQU 35H
CLOCK BIT P2.4 ;定义ADC0808时钟位
ST BIT P2.5
EOC BIT P2.6
OE BIT P2.7
PWM BIT P3.7
ORG 00H
SJMP START
ORG 0BH
LJMP INT_T0
START: MOV TMOD,#02H ;
MOV
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 50000
#define MinBeepFreq 20
exte
pwm.pjt
; Code Composer Project File, Version 2.0 (do not modify or remove this line)
[Project Settings]
ProjectDir="c:\ti\myprojects\PWM\"
ProjectType=Executable
CPUFamily=TMS320C24XX
Tool="Compiler"
pwm.c
#include "LF2407REGS.h"
void initsys(){
asm(" setc SXM ");
asm(" clrc OVM ");
asm(" clrc CNF ");
*SCSR1=0x83fe;
*WDCR =0x0e8;
*IMR =0x000f;
*IFR =0xffff;
*WSGR =
pwm.bsf
/*
WARNING: Do NOT edit the input and output ports in this file in a text
editor if you plan to continue editing the block that represents it in
the Block Editor! File corruption is VERY likely to