代码搜索结果
找到约 10,000 项符合
PWM 的代码
pwm.plg
礦ision2 Build Log
Project:
D:\YM100N\DEMO\PWM脉宽调制\PWM.uv2
Project File Date: 12/25/2007
Output:
Build target 'Target 1'
compiling PWM控制LED.c.
pwm.lnp
"PWM控制LED.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.h
/*----------------------------------------------------------------------------*/
/* Copyright (c) FIRST 2008. All Rights Reserved. */
/* Open Source Software - may be modified and shared by
pwm.cpp
/*----------------------------------------------------------------------------*/
/* Copyright (c) FIRST 2008. All Rights Reserved. */
/* Open Source Software - may be modified and shared by
pwm.asm
OUTPORT BIT P1.7
ORG 000h
JMP START
ORG 100h
START: CLR OUTPORT
MOV A,#02H
LCALL DELAY ;设置低电平持续时间为2
SETB OUTPORT
MOV A,#08H
LCALL D
pwm.c
#include
#include
#define stopnum 50000
#define delay_time 10000
#define stop_speed 250
unsigned int a,b=0;
unsigned int howlong=0 ;
void delay(unsigned int t)
{
fo
pwm.c
#include
#include
#include "sst89x5x4.h"
#include
#define uchar unsigned char
#define uint unsigned int
sbit en1=P1^3; /* L298的Enable A */
sbit en2=P1^4; /*
pwm.h
#define PWM1_IN() {DDRB.5=1;PORTB.5=0;} //PWM端口控制
#define PWM1_OUT() DDRB.5=1;
#define PWM2_IN() {DDRB.6=1;PORTB.6=0;}
#define PWM2_OUT() DDRB.6=1;
/**********************
pwm.h~
#define PWM1_IN() {DDRB.5=1;PORTB.5=0;} //PWM端口控制
#define PWM1_OUT() DDRB.5=1;
#define PWM2_IN() {DDRB.6=0;PORTB.6=0;}
#define PWM2_OUT() DDRB.6=1;
/**********************