【Proteus仿真】51单片机+555可调定时器电路

【Proteus仿真】51单片机+555可调定时器电路


  • Proteus仿真
    在这里插入图片描述

程序代码

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include <reg52.h>
#define uint unsigned int
#define uchar unsigned char

sbit Signal = P1^0;
sbit BEEP = P3^7;

void Delay(uint x)
{
uchar i;
while(x--)
{
for(i=0;i<120;i++);
}
}

void main()
{
while(1)
{
if(Signal)
{
BEEP=~BEEP;
Delay(3);
}
}
}

仿真资源和程序源码

1
2
3
链接:https://pan.baidu.com/s/1jBePiFc1adAfrs9GGYomRA 
提取码:7yfg


一个卖瓷碗的老人挑着扁担在路上走着,突然一个瓷碗掉到地上摔碎了,但是老人头也不回地继续向前走。路人看到觉得很奇怪,便问:“为什么你的碗摔碎了你却不看一下呢?”老人答到:“我再怎么回头看,碗还是碎的。"——过去的事情就应该放下,未来的生活才会没有负担。