if(t>2800) { ledr=1; ledg=0; ledy=0; re=1; le=0; buzz=1;
}
}
void main( ) { lcd_init( ); ledg=0; ledy=0; ledr=0; re=0; le=0; buzz=0; while(1) { tempchange( ); temp_rec( ); shujucl( ); xianshi( ); led();
}
}
陕西理工学院毕业设计
第47页 共48页
陕西理工学院毕业设计
附录E 元器件清单
C1 元器件清单
Comment Cap Cap Pol1 LED2 LED1 LED0 Component_1 Speaker DS18B20 Res2 Res Tap Res3
Capacitor
Polarized Capacitor (Radial) Typical INFRARED GaAs LED Typical INFRARED GaAs LED Typical INFRARED GaAs LED
Loudspeaker Header, 3-Pin Resistor Tapped Resistor Resistor
8-Bit AVR Microcontroller with 8K
AT89C51
Bytes of In-System Programmable Flash Memory
XTAL
Crystal Oscillator
Y1
R38
XTAL
1
U1
40P6
AT90S8515-8PI
1
Description
Designator C1, C2 C3 D D1 D2 LCD1602 LS P R1, R2 R3 R4
Footprint RAD-0.3 RB7.6-15 LED-0 LED-0 LED-0 PIN2 HDR1X3 AXIAL-0.4 VR3 J1-0603
Cap Cap Pol1 LED0 LED0 LED0 Component_1 Speaker Header 3 Res2 Res Tap Res3
LibRef
Quantity 2 1 1 1 1 1 1 1 3 1 1
第48页 共48页