12 2022 档案
摘要:#include "reg52.h" sfr AUXR = 0x8e; void delay(unsigned char t) { while(t--); } void SelectHC573(unsigned char n) { switch(n) { case 4: P2 = (P2&0x1f)
阅读全文
摘要:#include "reg52.h" sfr AUXR = 0x8e; unsigned char urdat; void InitUart() { TMOD = 0x20; TH1 = 0xfd; TL1 = 0xfd; TR1 = 1; SCON = 0x50; AUXR = 0x00; ES
阅读全文
摘要:#include "reg52.h" sbit L1 = P0^0; sbit S7 = P3^0; void delay(unsigned char t) { while(t--); } void HC573() { P2 = (P2 & 0x1f) | 0x80; } // PWM unsign
阅读全文
摘要:#include "reg52.h" sbit S4 = P3^3; sbit S5 = P3^2; unsigned char fen = 0; unsigned char miao = 0; unsigned char t_005ms = 0; void delay(unsigned char
阅读全文
摘要:#include "reg52.h" sbit L1 = P0^0; sbit L8 = P0^7; void SelectHC573() { P2 = (P2&0x1f) | 0x80; } // void InitTimer0() { TMOD = 0x01; TH0 = (65535 - 50
阅读全文
摘要:#include "reg52.h" sbit L1 = P0^0; sbit L8 = P0^7; void delay(unsigned char t) { while(t--); } void HC138() { P2 = (P2 & 0x1f) | 0x80; } void Working(
阅读全文
摘要:#include "reg52.h" sfr P4 = 0xc0; sbit R1 = P3^0; sbit R2 = P3^1; sbit R3 = P3^2; sbit R4 = P3^3; sbit C4 = P3^4; sbit C3 = P3^5; sbit C2 = P4^2; sbit
阅读全文
摘要:#include "reg52.h" sbit S7 = P3^0; sbit S6 = P3^1; sbit S5 = P3^2; sbit S4 = P3^3; sbit L1 = P0^0; sbit L2 = P0^1; sbit L3 = P0^2; sbit L4 = P0^3; voi
阅读全文
摘要:# include "reg52.h" void delay(unsigned char i) { while(i--); } void showseg(); void maindelay(unsigned char t) { while(t--) { showseg(); } } unsigned
阅读全文
摘要:# include "reg52.h" void delay(unsigned char i) { while(i--); } unsigned char code table[] = { 0xc0,//0 0xf9,//1 0xa4,//2 0xb0,//3 0x99,//4 0x92,//5 0
阅读全文
摘要:<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <title></title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/l
阅读全文
摘要:请选择音乐 Snowflakes Falling Down by Simon Panrucker This Christmas by Dott No room at the inn by TRG Banks Jingle Bell Swing by Mark Smeby 或者 Upload File
阅读全文
摘要:#include "reg52.h" sbit HC138_A = P2^5; sbit HC138_B = P2^6; sbit HC138_C = P2^7; void delay(unsigned int t) { while(t--); while(t--); } void YN
阅读全文