【Proteus仿真】NE555延时电路

【Proteus仿真】NE555延时电路


  • 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<80;i++);
}
}

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


仿真资源和程序

本示例基于Proteus8.12平台

1
2
3
链接:https://pan.baidu.com/s/1dJKss-03T9zR-w4M2o0gjw 
提取码:qgsg


一切顺其自然,最好的自己留给最后的人。