on
TEMPERATURE METER
CPU: Central Processing Unit I/O: Input /Output Bus: Address bus & Data bus Memory: RAM & ROM Timer Interrupt Serial Port Parallel Port
Microcontroller
A smaller computer On-chip RAM, ROM, I/O ports... Example : Motorola’s 6811, Intel’s 8051, Zilog’s Z8 and PIC 16X
CPU I/O Port
RAM ROM Serial Timer COM Port
A single chip Microcontroller
Three criteria in Choosing a Microcontroller 1.
1.
1.
Meeting the computing needs of the task efficiently and cost effectively • speed, the amount of ROM and RAM, the number of I/O ports and timers, size, packaging, power consumption • easy to upgrade • cost per unit Availability of software development tools • assemblers, debuggers, C compilers, emulator, simulator, technical support Wide availability and reliable sources of the microcontrollers.
Pin Description of the 8051 P1.0 P1.1 P1.2 P1.3 P1.4 P1.5 P1.6 P1.7 RST (RXD)P3.0 (TXD)P3.1 (INT0)P3.2 (INT1)P3.3 (T0)P3.4 (T1)P3.5 (WR)P3.6 (RD)P3.7 XTAL2 XTAL1 GND
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
8051
40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21
Vcc P0.0(AD0 P ) 0.1(AD1) P0.2(AD2 P ) 0.3(AD3) P0.4(AD4) P0.5(AD5) P0.6(AD6) P0.7(AD7) EA/VPP ALE/PROG PSEN P2.7(A15) P2.6(A14 )P2.5(A13 P ) 2.4(A12 )P2.3(A11 P ) 2.2(A10) P2.1(A9) P2.0(A8)
Supply given to circuit Welcome message comes We enter measuring interval We enter the threshold parameter Surrounding temperature is displayed As more than threshold so buzzer start and also a glow of a LED
Weather forecasting Basic electronic components Designing of major system and effect of temperature on it