1、A口工作在方式0输入方式,接8个开关,B口工作在方式0输出方式,接LED,PC7接单脉冲发生器,输入负脉冲时,读一次A口,存在TABLE单元中,同时在B口显示,读10次结束。 2、以上题目中,PC0接单脉冲发生器输入负脉冲时, 改由8253产生1s脉冲,…
脉冲发生器 源代码
脉冲发生器是用来发生信号的系统,产生所需参数的电测试信号仪器。按其信号波形分为四大类。
function [ret,x0,str,ts,xts]=wxst(t,x,u,flag); %WXST is the M-file description of the SIMULINK system named WXST. % The block-di…
function [ret,x0,str,ts,xts]=wxst1(t,x,u,flag); %WXST1 is the M-file description of the SIMULINK system named WXST1. % The block…
function [ret,x0,str,ts,xts]=xhblock(t,x,u,flag); %XHBLOCK is the M-file description of the SIMULINK system named XHBLOCK. % The…
function [x,n]=impseq(n0,n1,n2) %单位脉冲产生函数 %n0必须等于n1 %产生n=n0时刻的脉冲 n=[n1:n2]; x=[(n-n0)==0];
//int0+int1 #include #include #include #define hi 0xec #define lo 0x78 //5ms unsigned int tf0 _at_ 0x20,f=99,xx,yy _at_…
//int0+int1 #include #include #include #define hi 0xec #define lo 0x78 //5ms unsigned int tf0 _at_ 0x20,f=99,xx,yy _at_…
;晶振12M 89S51由低到高最高到低 PWM EQU 7FH ;PWM赋初始值 PWM_5 EQU 71H SEC EQU 56H ;秒计数单元 …