#include "reg52.h"
typedef unsigned char u8;
typedef unsigned int u16;
sbit LSA=P2^2;
sbit LSB=P2^3;
sbit LSC=P2^4;
u8 code smgduan[16]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,
0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71};
void delay(u16 i)
{
while(i--);
}
void DipDisplay()
{
u8 i;
for(i=0;i<8;i++)
{
switch(i)
{
case (0):
LSA=0;LSB=0;LSC=0;break;
case (1):
LSA=1;LSB=0;LSC=0;break;
case (2):
LSA=0;LSB=1;LSC=0;break;
case (3):
LSA=1;LSB=1;LSC=0;break;
case (4):
LSA=0;LSB=0;LSC=1;break;
case (5):
LSA=1;LSB=0;LSC=1;break;
case (6):
LSA=0;LSB=1;LSC=1;break;
case (7):
LSA=1;LSB=1;LSC=1;break;
}
P0=smgduan[i];
delay(100);
P0=0x00;
}
}
void main()
{
while(1)
{
DipDisplay();
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
C51单片机学习资料.zip
共154个文件
bak:24个
uvproj:13个
hex:13个
需积分: 5 1 下载量 139 浏览量
2023-09-28
09:52:45
上传
评论
收藏 231KB ZIP 举报
温馨提示
c51单片机流水灯
资源推荐
资源详情
资源评论
收起资源包目录
C51单片机学习资料.zip (154个子文件)
template_uvopt.bak 55KB
template_uvopt.bak 54KB
template_uvopt.bak 54KB
template_uvopt.bak 54KB
template_uvopt.bak 54KB
template_uvopt.bak 54KB
template_uvopt.bak 54KB
template_uvopt.bak 54KB
template_uvopt.bak 54KB
template_uvopt.bak 54KB
template_uvopt.bak 54KB
template_uvproj.bak 13KB
template_uvproj.bak 13KB
template_uvproj.bak 13KB
template_uvproj.bak 13KB
template_uvproj.bak 13KB
template_uvproj.bak 13KB
template_uvproj.bak 13KB
template_uvproj.bak 13KB
template_uvproj.bak 13KB
template_uvproj.bak 0B
template_uvproj.bak 0B
template_uvproj.bak 0B
template_uvproj.bak 0B
main.c 853B
main.c 436B
main.c 436B
main.c 326B
main.c 305B
main.c 250B
main.c 250B
main.c 200B
main.c 200B
main.c 84B
main.c 84B
main.c 59B
main.c 59B
template.hex 480B
template.hex 278B
template.hex 278B
template.hex 184B
template.hex 164B
template.hex 164B
template.hex 152B
template.hex 134B
template.hex 134B
template.hex 86B
template.hex 86B
template.hex 82B
template.hex 82B
template.lnp 41B
template.lnp 41B
template.lnp 41B
template.lnp 41B
template.lnp 41B
template.lnp 41B
template.lnp 41B
template.lnp 41B
template.lnp 41B
template.lnp 41B
template.lnp 41B
template.lnp 41B
template.lnp 41B
main.LST 3KB
main.LST 2KB
main.LST 2KB
main.LST 1KB
main.LST 1KB
main.LST 1KB
main.LST 1KB
main.LST 1KB
main.LST 1KB
main.LST 941B
main.LST 941B
main.LST 895B
main.LST 895B
template.M51 4KB
template.M51 4KB
template.M51 3KB
template.M51 3KB
template.M51 3KB
template.M51 3KB
template.M51 3KB
template.M51 3KB
template.M51 3KB
template.M51 2KB
template.M51 2KB
template.M51 2KB
template.M51 2KB
main.OBJ 3KB
main.OBJ 2KB
main.OBJ 2KB
main.OBJ 2KB
main.OBJ 1KB
main.OBJ 1KB
main.OBJ 1KB
main.OBJ 1KB
main.OBJ 1KB
main.OBJ 758B
main.OBJ 758B
共 154 条
- 1
- 2
资源评论
YOLO数据集工作室
- 粉丝: 471
- 资源: 1567
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 6_Advertising-gd_LearningRate.ipynb
- BrushNet电商公司和摄影公司都在用的AI工作流
- 12_base.apk
- 520马上到了两款动态爱心表白HTML代码(附源码)李峋同款爱心,快送给你爱的她或(他)吧12 情侣纪念日代码.zip
- 电子设计竞赛的单相不间断电源设计
- cutcamera1715961370938.png
- 基于MATLAB的图像处理课程设计报告.doc
- tensorflow-gpu-2.6.0-cp38-cp38-manylinux2010-x86-64.whl
- mmexport1715960553858.png
- tensorflow-gpu-2.6.0-cp37-cp37m-manylinux2010-x86-64.whl
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功