基于中断控制的声光报警器的设计.采用中断方式,设计一个声光报警器的硬件电路和控制程序。程序运行时,一旦8位开关信号量状态满足设定条件,就触发中断,使发光二级管按...
代码说明:
基于中断控制的声光报警器的设计.采用中断方式,设计一个声光报警器的硬件电路和控制程序。程序运行时,一旦8位开关信号量状态满足设定条件,就触发中断,使发光二级管按规律闪烁,同时扬声器播放一段音乐。 硬件设备包括一台微机、一个MFID微机实验箱、一块T型板,2输入四与门 74ls08、8位总线驱动器 74ls245、LM386A音频放大器、排阻、扬声器各一个,发光二极管8个,470uF电容2个、104电容4个,插线若干。 -Interrupt-based control of sound and light alarm design. Using interrupt mode, designing a sound and light alarm hardware circuits and control procedures. The program is running, once the 8-bit switch signal to set the amount of state to meet the conditions to trigger interrupts, so that light-emitting diode flashes according to the law, while speakers play a piece of music. Hardware includes a computer, a computer simulation, MFID box, a T plate, 2 input 4 and gate 74ls08, 8-bit bus driver 74ls245, LM386A audio amplifier, exclusion, speakers of a light-emitting diode 8, 470uF capacitor 2 a, 104 capacitors 4, plug-line number.
下载说明:请别用迅雷下载,失败请重下,重下不扣分!