文件名称:www
介绍说明--下载内容均来自于网络,请自行研究使用
实验要求一:将频率为1MHz的时钟信号加载CLK0输入端,并让通道0工作于方式2。若选择计数初值N0=20000,则从OUT0端可得到序列负脉冲,其频率为1MHz/20000=50Hz,周期为20ms。再把该信号连到CLK1输入端,并使通道1工作于方式3。为了使OUT1输出周期为2秒(频率为1/2=0.5Hz)的方波,应取时间常数N1=50Hz/0.5Hz=100。
实验要求二:利用8255,8253控制LED显示,制作跑马灯。
编程代码:
-Experimental requirements: will the frequency of 1 MHZ clock signal loading CLK0 input, and let the channel 0 in mode 2. If choose count initial N0 = 20000, the negative pulse sequence can be obtained from the OUT0 end, its frequency is 1 MHZ/20000 = 50 hz, cycle of 20 ms. Connect the signal to the CLK1 input, and make the channel 1 work in 3 ways. In order to make the OUT1 output cycle for 2 seconds (square wave frequency for 1/2 = 0.5 Hz), should take time constant N1 = 50 Hz/0.5 Hz = 100.
Experimental requirements 2: use 8255825 3 control LED display, make entertaining diversions.
Programming code:
实验要求二:利用8255,8253控制LED显示,制作跑马灯。
编程代码:
-Experimental requirements: will the frequency of 1 MHZ clock signal loading CLK0 input, and let the channel 0 in mode 2. If choose count initial N0 = 20000, the negative pulse sequence can be obtained from the OUT0 end, its frequency is 1 MHZ/20000 = 50 hz, cycle of 20 ms. Connect the signal to the CLK1 input, and make the channel 1 work in 3 ways. In order to make the OUT1 output cycle for 2 seconds (square wave frequency for 1/2 = 0.5 Hz), should take time constant N1 = 50 Hz/0.5 Hz = 100.
Experimental requirements 2: use 8255825 3 control LED display, make entertaining diversions.
Programming code:
(系统自动生成,下载前可以参看下载内容)
下载文件列表
www\实验三报告.doc
...\试验1.ASM
...\试验2.ASM
www