Professional Documents
Culture Documents
Page 1
DISCRIPTION
Temperature controller used in many electronics devices today like refridgerator,AC,Microwave Oven,,etc.temperature controller is programmable device. It sense temperature and take programmable action & display temperature. In Temperature controller microcontroller are used. In
Temperature controller software part is developed in embedded c. In this Microvision Keil is used. And the main microcontroller is P89v51RD2. The full software and hardware testing is completed in Proteus 7.7 Software. The hardware is fully designed in Protel PCB design software.
Page 2
CHAPTER 2 2.1 Block Diagram of temperature controller 2.2 Circuit diagram 2.3 Micro controller P89v51RD2 package diagram 2.4 P89v51RD2 Architecture
Page 3
Page 4
Page 5
Page 6
Page 7
CHAPTER 3
3.1 General description of P89vRD2 3.2 P89v51RD2 Pin out 3.3 PIN description 3.4 P89V51RD2 Features
Page 8
The P89V51RD2 is an 80C51 microcontroller with 64 kB Flash and 1024 bytes of data RAM.
A key feature of the P89V51RD2 is its X2 mode option. The design engineer can choose to run the application with the conventional 80C51 clock rate (12 clocks per machine cycle) or select the X2 mode (6 clocks per machine cycle) to achieve twice the throughput at the same clock frequency. Another way to benefit from this feature is to keep the same performance by reducing the clock frequency by half, thus dramatically reducing the EMI
The Flash program memory supports both parallel programming and in serial
In-System Programming (ISP). Parallel programming mode offers gangProgramming at high speed, reducing programming cost and time to market. ISP allows a device to be reprogrammed in the end product under software Control. The capability to field /update application firmware make a wide range Of application possible.
Page 9
3.2
Page 10
high-order address byte during fetches from external program memory and during accesses to external Data Memory that use 16-bit address (MOVX@DPTR). In this application, it uses strong internal pull-ups when transitioning to 1s. Port 2 also receives some control signals and a partial of high-order address bits during the external host mode programming and verification.
Pin 3.0
RXD: serial input port.
Pin 3.1
TXD: serial output port.
Pin 3.2
INT0: external interrupt 0 input
Pin 3.3
INT1: external interrupt 1 input
XTAL 1
NOOTAN POLYTECHNIC COLLAGE Page 12
Input to the inverting oscillator amplifier and input to the internal clock generator circuits.
XTAL 2
Output from the inverting oscillator amplifier.
Vcc &GND
Power supply and ground.
ALE
ALE is the output signal for latching the low byte of the address during an access to external memory. This pin is also the programming pulse input (PROG) for flash programming. Normally the ALE is emitted at a constant rate of 1/6 the crystal frequencyand can be used for external timing and clocking. One ALE pulse is skipped during each access to external data memory. However, if AO is set to 1, ALE is disabled.
Page 13
5 V Operating voltage from 0 to 40 MHz. 64 kB of on-chip Flash program memory with ISP (In-System Programming)
and IAP (In-Application Programming)
Supports 12-clock (default) or 6-clock mode selection via software or ISP. Three 16-bit timers/counters. Programmable Watchdog timer (WDT). Second DPTR register. Supports 12-clock (default) or 6-clock mode selection via software or ISP.
Page 14
Page 15
4.1.2 Features
0.1C accuracy guaranteeable. Calibrated directly in Celsius (at +25C). Rated for full 55 to +150C range. LM 35 is cheap. Operates from 4 to 30 volts. 10mv/c scale factor.
Page 16
CHAPTER 5
5.1 Analog to digital converter (MCP 3204) 5.2 MCP 1541 5.3 Interfacing LCD to microcontroller
Page 17
+2.7V to 5.5V Power Supply DGND Digital Ground AGND Analog Ground CH0-CH7 Analog Inputs CLK Serial Clock DIN
Page 18
CS/SHDN Chip Select/Shutdown Input VREF Reference Voltage Input 5.1.3 Features
Four input channels. On-chip sample and hold. Single supply operation: 2.7V to 5.5V. Industrial temp range: -40C to +85C. 12-bit resolution.
Page 19
5.2
MCP 1541
use a combination of an advanced CMOS circuit design and EPROM trimming.
MCP 1541 device is 2.5V and 4.096 V precision voltage references this
Features
Precision voltage reference. Output voltage of 2.5V and 4.096V. Temp range: -40C to +85C.
Page 20
5.3.1Pin out
8 data pins PD7:PD14
Bi-directional data/command pins. Alphanumeric characters are sent in ASCII format. PD 4 RS: Register Select RS = 0 -> Command Register is selected RS = 1 -> Data Register is selected PD 5 R/W: Read or Write
PD6
E: Enable (Latch data) Used to latch the data present on the data pins. A high-to-low edge is needed to latch the data. VEE contrast control
NOOTAN POLYTECHNIC COLLAGE Page 21
CHAPTER 6 6.1 Problem 6.2 How to occurs problems ? 6.3 Possible solution 6.4 Application
Page 22
6.1 Problem
When temperature change in atmosphere but display stable
temperature.
Display higher and lower temperature than original temperature. Some time temperature suddenly jump.
Page 23
6.3
Possible solution
So this type problems are occurs. If we add filter circuit after temperature sensor so We can solve this problem.
Here ,we can using low pass filter and noisy output
Can be less.(add filter circuit in pin 1 & 2 in LM35)
Solve programming and error.(like a to d conversion error) If temperature sensor is damaged and faulty so
Try to other temperature sensor in this temperature range.
Page 24
6.4 Application
Temperature controller use in air conditioner to auto mode. Its very useful in factory & atomic reactor to control temperature Its useful in air heater and refrigerator.
Page 25
REFERANCE:
www.google.in www.wikipedia.org www.microcontroler.com www.allaboutcircuits.com www.alldatasheet.com
and others
Page 26
THANK YOU
NOOTAN POLYTECHNIC COLLAGE Page 27