代码搜索结果
找到约 10,000 项符合
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
PWMH DATA 30H ;高电平脉冲的个数
PWM DATA 31H ;PWM周期
COUNTER DATA 32H
TEMP DATA 33H
ORG 0000H
AJMP MAIN
ORG 000BH
AJMP INTT0
ORG 0100H
MAIN:
MOV SP,#60H ;给堆栈指针赋初值
MOV PWMH,#02H
pwm.c
/////////PCA CEX0为PWM 输出模式//////////////
/////////PWM.c//////////////////////////
#include
typedef unsigned int uint;
typedef unsigned char uchar;
typedef unsigned long ulong;
sfr1
pwm.hex
:0400000500000000F7
:020000040000FA
:1000000018F09FE518F09FE518F09FE518F09FE5C0
:1000100018F09FE5805F20B9F0FF1FE518F09FE51D
:10002000980000004000000044000000480000006C
:100030004C0000000000000000
pwm.v
module pwm(clk,rst,in,out);
input clk,rst;
input[7:0] in;
output[7:0] out;
reg[7:0] out;
reg[7:0] cnt;
always@(posedge(clk))
begin
if(rst==1)begin
cnt=0;
end else begin
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