单片机技术网|技术阅读
登录|注册

您现在的位置是:单片机技术网 > 技术阅读 > 基于51单片机的语音万年历设计

基于51单片机的语音万年历设计

.

      AT89C52,线,,3V;DS1302,.,RAM,,,,,,,,,2.5~5.5V.线CPU,RAM.寿.DS18B20.LCD12864

     51++LCD12864++++


.

1DS1302DS18B20LCD12864

2

3

430s

5123/


.

1AD,

2PCB

.

1

2

/********************************************************************* : main()* : * : * : ***********************************************************************/void main(){
read_time1(); data_dispose();
do { Temper(); }while(temp==850) ; TMOD=0x01; //0 0 TH0=0x3c; //50ms TL0=0xb0; EA=1; // TR0=1; //0 ET0=1; //0 LCD12864_init(); temp_h=byte_read(0x2000); //EEPROM temp_l=byte_read(0x2200);
if((temp_h>99)||(temp_l>99)||(temp_l>=temp_h)) // { temp_h=30; // temp_l=10; } shi_1=byte_read(0x2600); //EEPROM fen_1=byte_read(0x2800); if(shi_1>23||shi_1<0||fen_1>59||fen_1<0) { shi_1=8; fen_1=0; } ir_on=byte_read(0x2400); if(ir_on!=1&&ir_on!=0) { ir_on=1; }
while(1) { key(); // proc(); // sound(); display(); }}