闪烁灯
来源:互联网 发布:国外病理软件 编辑:程序博客网 时间:2024/04/28 05:19
程序:
#include<reg52.h>
sbitP1_0=P1^0;
voiddelay02s(void)
以上的一段代码没什么好说的,关于延时方面的参考网址(http://blog.21ic.com/user1/322/archives/2005/4428.html)板上的8个小的流水灯旁接了一个74HC753锁存器,发光二极管为共阳极,所以给低电平点亮,锁存器的原理当时并不是很懂,但是现在学了数电了,并不难理解。
These octal transparentD-type latches feature3-state outputs designed specifically fordrive in highly capacitive or relatively low-impedance
loads. They are particularly suitable for
implementing buffer registers, I/O ports,
bidirectional bus drivers, and working registers.
While the latch-enable (LE) input is high, the
Q outputs respond to the data (D) inputs. When
LE is low, the outputs are latched to retain the data
that was set up.
A buffered output-enable (OE) input can be used
to place the eight outputs in either a normal logic
state (high or low logic levels) or the
high-impedance state. In the high-impedance
state, the outputs neither load nor drive the bus
lines significantly. The high-impedance state and
increased drive provide the capability to drive bus
lines without interface or pullup components.
OE does not affect the internal operations of the latches. Old datacan be retained or new data can be entered
while the outputs are in the high-impedancestate.
FUNCTION TABLE
(each latch)
INPUTS OUTPUT
OE LE D Q
L
L
L
H
- 闪烁灯
- 闪烁灯
- 闪烁灯
- 闪烁灯(1)
- 2.led灯闪烁
- atemega8例程:灯闪烁
- 闪烁的小灯
- 单灯闪烁试验
- LED 流水灯闪烁
- 流水灯逐次闪烁
- LED单灯闪烁
- 闪烁一位LED灯
- 一、Led灯闪烁
- LED闪烁灯
- LED_1_0(单灯闪烁)
- 51例程---闪烁灯
- 闪烁
- 闪烁
- JAVA中读取XML文件中的配置信息
- VC错误
- VC错误
- 快捷键
- 51从头开始
- 闪烁灯
- 理想采样,瞬时采样(平顶采样),…
- 什么是单片机
- Keil Software –Cx51 编译器…
- 数据流挖掘_数据流抽样
- 流水灯
- 找不到bridge.dll文件
- matlab产生均值0.01功率0.1的均匀…
- 产生均值为0,方差为0.1服从高斯分…