标题:
单片机+74LS138译码器应用
[打印本页]
作者:
kcyssg
时间:
2020-6-6 11:32
标题:
单片机+74LS138译码器应用
/*************** writer:shopping.w ******************/
#include <reg52.h>
#define uint unsigned int
#define uchar unsigned char
void Delay(uint x)
{
uchar i;
while(x--)
{
for(i=0;i<120;i++);
}
}
void main()
{
P2 = 0x00;
while(1)
{
P2 = (P2+1)%8;
Delay(50);
}
}
QC]0}5N%3[](0V4R9{}GB93.png
(83.7 KB, 下载次数: 62)
下载附件
2020-6-6 11:31 上传
01 74LS138译码器应用
欢迎光临 (http://www.51hei.com/bbs/)
Powered by Discuz! X3.1