- 6
- 0
- 约4.52千字
- 约 14页
- 2021-05-12 发布于未知
- 举报
PAGE
PAGE 1
51单片机实验报告
实验一
点亮流水灯
实验现象
Led灯交替亮,间隔大约10ms。
实验代码
#include reg51.h
void Delay10ms(unsigned int c);
void main()
{
while(1)
{
P0 = 0x00;
Delay10ms(50);
P0 = 0xff;
Delay10ms(50);
}
}
void Delay10ms(unsigned int c)
{
unsigned char a, b;
for (;c0;c--)
{
for (b=3
原创力文档

文档评论(0)