搜索资源列表
lesson5
- proteus单片机仿真 数码管 #include <reg51.h> unsigned char code Tab[] {0xC0,0xF9,0xA4,0xB0,0x99,0x92,0x82,0xF8,0x80,0x90} void Delay() { unsigned char i,j for(i 0 i<255 i++) for(j 0 j<255 j++) } void main() { uns
lesson6
- proteus单片机仿真-数码管(动态) #include<reg51.H> unsigned char code Tab[] {0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90} unsigned char Dat[] {0,0,0,0} unsigned char tmp,i,j unsigned char s 0 void delay(int n) { int i for(i 0
lesson7
- proteus单片机仿真-有源蜂铃器 #include<reg51.h> sbit Buzzer P0^0 void main(void) { int i,n n 60 while(1) { Buzzer 1 for(i 1 i<n i++) Buzzer 0 for(i 1 i<n i++) } }-Proteus single-chip microcomputer simu
lesson8
- proteus单片机仿真 继电器 #include<reg51.h> sbit S1 P3^2 sbit S2 P3^3 sbit Relay P0^0 void main() { while(1) { if(S1 0) Relay 1 if(S2 0) Relay 0 } }-Proteus single-chip microcomputer simulation- relay # include <
lesson9
- proteus单片机仿真 数码管、风铃器、继电器综合系统 #include<reg51.h> unsigned char code Tab[] {0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90} unsigned char Dat[] {0,0,0,0} sbit JDQ P1^0 sbit Buzzer P3^0 void sound() -Proteus single-chip