Free Essay

Microcontroller

In:

Submitted By transformer18
Words 1847
Pages 8
Session: Poster

National Conference on Computing, Communication and Control (CCC-09)

ON-OFF Temperature Control System Using Microprocessor
Shefali Saxena#1, Swati Talesara#2,Sachin Mehta#3
#

Electronics & Communication Department, Geetanjali Institute of Technical Studies
Udaipur, Rajasthan, India shef.ur.destiny@gmail.com sswatitalesara@yahoo.co.in
3
sachin_mehta88@yahoo.com

1
2

Abstract— This paper includes the On-Off Control System controlling the operation of heater using microprocessor. It is a closed-loop control system.
An on-off controller is the simplest form of temperature control device. An on/off controller will switch the output only when the temperature crosses the set point. For heating control, the output is on when the temperature is below the set point, and off above the set point.The paper deals with control system including strategies, types and requirements of control system. Block diagram of
On-Off
Temperature
Controller
using
Microprocessor with explanation of Working of whole circuit has been included .The observations of experiment on actual circuit have been reported.
Keywords- Control, comparator, temperature, microprocessor, digital. I. INTRODUCTION
During the last fifty years, control systems in processes have been gradually evolved on an analytical footing and today the range in the control equipment for any kind of process is commendable. The major part in process controllers the plant or the process itself. For adequate control, knowledge of the plant characteristics, both theoretical and experimental is therefore necessary.
On-Off Control System is used in many common situations, such as air-coolers, water reservoirs, batch annealing furnaces, etc. In control theory, a controller is a device which monitors and affects the operational conditions of a given dynamical system.
The operational conditions are typically referred to as output variables of the system which can be affected by adjusting certain input variables.

temperature is near the set-point. The fluctuations in temperature shown on the graph are significantly larger than the hysteresis, as can be confirmed with the interactive simulation, due to the significant heat capacity of the heating element. A process control system basically consists of two parts:
1. The process
2. The control equipment.
The control equipment broadly consists of:
1. Measurement system
2. Comparator
3. Controller
4. Actuator

Fig. 1 Block diagram of basic control loop

II. PRACTICAL CIRCUIT & WORKING

A. On-Off Control
This is the simplest form of control, used by almost all domestic thermostats. When the oven is cooler than the setpoint temperature the heater is turned on at maximum power,
M, and once the oven is hotter than the set-point temperature the heater is switched off completely. The turn-on and turn-off temperatures are deliberately made to differ by a small amount, known as the hysteresis H, to prevent noise from switching the heater rapidly and unnecessarily when the

132

Fig. 2 Block Diagram of ON-OFF control system
Fig. 3 Circuit Diagram of ON-OFF control system

Session: Poster

National Conference on Computing, Communication and Control (CCC-09)

On-Off Control System using microprocessor is a control system operating a heater in such a way that heater will be automatically turned OFF above the specified temperature of water (here it is 40°C) and turned ON below the specified temperature of water. Microprocessor has been used for controlling the operation of heater according to the input voltage. Input voltage of microprocessor is according to the water temperature. Thermistor has been used here as a sensor and transducer for converting temperature into voltage. In microprocessor comparator program has been fed with a reference value with which input voltage is compared. If input voltage is less, the DAC output is low and relay circuit is in
OFF condition. If input voltage is high, the DAC output is high and relay circuit is in ON condition which operates the heater. Hence On-Off controlling of heater has been done according to temperature.

2)

Op-amp has been used in non-inverting configuration with a gain of 51.
3) Gain of non-inverting op-amp is given by,
A = 1 + (R f / R i )
Where,
R f is the feedback resistance, 1kohm
R i is the input resistance, 20ohm
A = 1 + (1000/20)
A = 51
4) Voltage observed at the output of op-amp is in volts.
C. Working of ADC 0809
1) Since the voltage observed at the output of op-amp is an analog value and microprocessor operates only on digital values, therefore analog voltage has been converted into equivalent digital voltage using ADC.

A. Working of Thermistor

2) ADC uses the principle of successive approximation technique for the conversion process.
D. Working of Microprocessor 8085
1) Microprocessor performs the operation of comparison of digital output of ADC with reference value for deciding the output of microprocessor which will further decide the state of transistor (either cut-off or saturation). Fig. 4 Circuit for measurement of voltage across thermistor

2) If the digital output of ADC is less than the reference value then the output of microprocessor will be low level digital signal (i.e. 00H).

1) Thermistor, as the name suggests, sense the temperature of water. According to the temperature of water, resistance of thermistor varies.

3) If the digital output of ADC is greater than the reference value then the output of microprocessor will be high level digital signal (i.e. FFH).

2) Here NTC (Negative Temperature Coefficient) thermistor has been used whose resistance is 8ohm at room temperature.
3) It has been observed as temperature of water increases, resistance of thermistor decreases and therefore voltage drop across thermistor decreases.
4) Thus thermistor has been used here for converting temperature (a non-electrical quantity) into voltage (an electrical quantity).
5) Output voltage measured across two terminals of thermistors using resistive network is in millivolts (as shown below).
B. Working of Operational Amplifier
1) The voltage observed at the two terminals of the thermistor in the above circuit is in millivolts, therefore an op-amp has been used as an amplifier to amplify or increase the voltage level.

E. Working of DAC
1) Since the output of microprocessor will be a digital signal and transistor operates on analog signal, therefore a DAC is required for conversion of digital signal to analog signal.
2) Equivalent DAC output for high level digital output signal of microprocessor (i.e. FFH) is +2.5V theoretically and +1.9V practically which is enough for driving the transistor in ON state (transistor will operate in saturation region).
3) Equivalent DAC output for low level digital output signal of microprocessor (i.e. 00H) is -2.5V theoretically as well as practically which is enough for driving the transistor in OFF state(transistor will operate in cut-off region).

133

Session: Poster

National Conference on Computing, Communication and Control (CCC-09)

F. Flow Chart Representing Complete control Process

In this case voltage across the inductor will be 12V and current flowing in the circuit can be determined using equation (3) as
I = Vo/R (1-exp. (-R t /L))
Here,
R -> Resistance of inductor coil = 200ohm
Vo->Voltage across inductor in case 1 = 12V
L->Inductance of coil = 569.2mH
At t = 0.5sec
I = 12/200(1-exp.(200*.5*1000/569.2))
I = 0.06A
2) Case2:
i. When the DAC output will be low i.e. -2.5V, the transistor will turn OFF and voltage at collectoremitter junction, V ce = V cc = 12V and diode gets forward biased so switch S1 will be close and switch S2 will be open. Relay will act as a open switch and the heater will be turned OFF. ii. Fig. 5 Flow chart representing the complete process

III. OBSERVATIONS
A. Driving Transistor with DAC Output

Fig.8 Equivalent circuit when S1 is ON and S2 is OFF

In this case inductor will start discharging through diode with current direction same and voltage polarity opposite to that previous one. Output of this Relay Driver circuit is used to ON-OFF the heater according to the reference temperature.
B.

Fig.6 Equivalent circuit for relay driver design circuit

TABLE I
VARIOUS EXPERIMENTAL RESULTS

1) Case1:
i. When the DAC output will be high i.e. 1.9V, the transistor will turn ON and voltage at collectoremitter junction, Vce(sat)=.7V and diode gets reverse biased so switch S1 will be open and switch S2 will be close. Relay will act as a close switch and the heater will be turned ON. ii. S.
No.

Amplifier
Output
(V)

Equivalent
Digital O/P of
A/D
Converter

Temperature
(°C)

Equivalent
Voltage across
Thermistor
(mV)

1.

95

17.3

0.80

10

2.
3.
4.
5.
6.

75
60
50
40
32

24.5
32.7
42.2
53.9
67.0

1.18
1.60
2.08
2.66
3.33

3C
51
69
86
A8

IV. IDENTIFICATION(STABILITY) OF THE SYSTEM

Fig.7 Equivalent circuit when S1 is OFF and S2 is ON

134

Session: Poster

National Conference on Computing, Communication and Control (CCC-09)

System identification is based on the step input response of the open loop system. To identify the system it is necessary to check the frequency stability of the system.
Frequency stability of the system is defined as the range of frequencies over which the system works efficiently and accurately. It is obtained by observing the output of the system at various frequencies and checking whether it is similar to the desired output or not.

3) Observation 3:
Fig.9 Circuit Diagram of open loop system for identification of the circuit

4) Observation 4:
A. Procedure
1) A step input was applied to the voltage divider network supply by using function generator.
2) The frequency of the step input signal is changed step by step and output of open loop system is observed at various input signal frequencies.

V. CONCLUSION
Thus the on-off control system works for frequency upto
5.95Hz. Upto this frequency output is stable and depending upon the temperature value device is either on or off. This on/off controller will switch the output only when the temperature crosses the set point.

B. Observations
1) Observation 1:
ACKNOWLEDGMENT
The authors would like to express their gratitude to Mr.
Pradeep Chhawchharia, who has the attitude and the substance of a genius. He continually and convincingly conveyed a spirit of adventure in regard to project, and an excitement in regard to his teaching and providing lab facilities .
REFERENCES
[1]

2) Observation 2:

[2]

[3]
[4]
[5]

135

Szatkowski, A.; Pruehsner, W.; Enderle, J.D., “Water temperature control system”, Bioengineering Conference, 1999. Proceedings of the
IEEE 25th Annual Northeast Volume , Issue , 8-9 Apr 1999 Page(s):39
– 40
Peng Yang; Hongyu Zhao; Ying Zhou; Zhiwei Liu, “Study of Immune
PID-PI Controller for FG-3000 Temperature Control System”,
Integration Technology, 2007. ICIT apos;07. IEEE International
Conference on Volume , Issue , 20-24 March 2007 Page(s):343 – 347
Ramesh Gaonkar, “ Microprocessor Architecture, programming, and applications with the 8085, Fifth edition
D Patranabis, “ Principals of Process Control”, Second Edition
National Semiconductor - Data Sheet for ADC0809, Intel 8085 microprocessor datasheet

Similar Documents

Free Essay

Design, Simulation & Implementation of a Microcontroller Based Seed Dryer Machine for Farm Produce Interfaced with Computer System

...Engineering Website: www.ijetae.com (ISSN 2250-2459, ISO 9001:2008 Certified Journal, Volume 5, Issue 7, July 2015) Design, Simulation & Implementation of A Microcontroller Based Seed Dryer Machine for Farm Produce Interfaced with Computer System Ezeofor J.C1, Okeke. R.O2, Ogbuokebe S.K3 1,2 Department of Electronic & Computer Engineering, University of Port Harcourt, Rivers State, Nigeria 3 National Space Research and Development agency, Abuja As a result of these, majority of the farmers end up bankrupt while some incur huge debt from banks, relatives or committee of friends in the process [3]. With the proposed drying system, farmers would be able to dry their farm produce using appropriate temperature and humidity control system. Abstract— this paper presents the design and implementation of a microcontroller based Seed Dryer Machine for farm produce interfaced with PC. Drying of farm produce and seeds in large quantity such as; melon, beans, corn, cocoa seeds, pumpkin seeds, rice, pepper seeds, tomato seeds etc., has been very challenging due to lack of drying facilities, drying space and poor weather. This gives low lifespan to the seeds and reduced quantity of stored seeds, which in turn could discourage farmers from further cultivations. In view of this problem, a microcontroller based Seed Dryer Machine is designed to aid and encourage farmers to dry in large scale different farm produce within a set time. The system is divided into nine...

Words: 6253 - Pages: 26

Free Essay

Microcontroller

...The 8051 Microcontroller and Embedded Systems Using Assembly and C Second Edition Muhammad Ali Mazidi Janice Gillispie Mazidi Rolin D. McKinlay CONTENTS Introduction to Computing The 8051 Microcontrollers 8051 Assembly Language Programming Branch Instructions I/O Port Programming 8051 Addressing Modes Arithmetic & Logic Instructions And Programs 8051 Programming in C 8051 Hardware Connection and Hex File 8051 Timer/Counter Programming in Assembly and C 8051 Serial Port Programming in Assembly and C Interrupts Programming in Assembly and C 8051 Interfacing to External Memory 8051 Real World Interfacing I: LCD,ADC AND SENSORS LCD and Keyboard Interfacing 8051 Interfacing with 8255 INTRODUCTION TO COMPUTING The 8051 Microcontroller and Embedded Systems: Using Assembly and C Mazidi, Mazidi and McKinlay Chung-Ping Young 楊中平 Home Automation, Networking, and Entertainment Lab Dept. of Computer Science and Information Engineering National Cheng Kung University, TAIWAN OUTLINES Numbering and coding systems Digital primer Inside the computer HANEL Department of Computer Science and Information Engineering National Cheng Kung University, TAIWAN 2 NUMBERING AND CODING SYSTEMS Decimal and Binary Number Systems Human beings use base 10 (decimal) arithmetic There are 10 distinct symbols, 0, 1, 2, …, 9 Computers use base 2 (binary) system There are only 0 and 1 These two binary digits are commonly referred to as bits HANEL Department of Computer...

Words: 26702 - Pages: 107

Premium Essay

Microcontroller

...Dell™ OptiPlex™ FX160/160 Service Manual  Working on Your Computer System Setup Selective USB Reinstalling Software Troubleshooting Computer Stand Covers Hard Drive Assembly (Optional) NVRAM Module Wireless Card I/O Board Power Supply Processor Heatsink Assembly Memory Coin-Cell Battery Cable Guide Antenna System Board Assembly Getting Help Finding Information  Notes, Notices, and Cautions NOTE: A NOTE indicates important information that helps you make better use of your computer. CAUTION: A CAUTION indicates potential damage to hardware or loss of data if instructions are not followed. WARNING: A WARNING indicates a potential for property damage, personal injury, or death. If you purchased a Dell™ n Series computer, any references in this document to Microsoft® Windows® operating systems are not applicable. Information in this document is subject to change without notice. © 2008 Dell Inc. All rights reserved. Reproduction of this material in any manner whatsoever without the written permission of Dell Inc. is strictly forbidden. Trademarks used in this text: Dell, the DELL logo, and OptiPlex are trademarks of Dell Inc.; Intel is registered trademarks of Intel Corporation in the U.S. and other countries; Microsoft, Windows, Windows Vista, the Windows Start button, and Outlook are registered trademarks of Microsoft Corporation in the United States and/or other countries. Other trademarks and trade names may be used in this document to refer to either the entities claiming the...

Words: 18309 - Pages: 74

Free Essay

Vinegar Battery

...MICROCONTROLLER A microcontroller is a computer present in a single integrated circuit which is dedicated to perform one task and execute one specific application. It contains memory, programmable input/output peripherals as well a processor. Microcontrollers are mostly designed for embedded applications and are heavily used in automatically controlled electronic devices such as cellphones, cameras, microwave ovens, washing machines, etc. Types of Microcontroller: Microcontrollers are divided into categories according to their memory, architecture, bits and instruction sets. So let’s discuss types of microcontrollers:- Bits: 8 bits microcontroller executes logic & arithmetic operations. Examples of 8 bits micro controller is Intel 8031/8051. 16 bits microcontroller executes with greater accuracy and performance in contrast to 8-bit. Example of 16 bit microcontroller is Intel 8096. 32 bits microcontroller is employed mainly in automatically controlled appliances such as office machines, implantable medical appliances, etc. It requires 32-bit instructions to carry out any logical or arithmetic function. Memory: External Memory Microcontroller – When an embedded structure is built with a microcontroller which does not comprise of all the functioning blocks existing on a chip it is named as external memory microcontroller. For illustration- 8031 microcontroller does not have program memory on the chip. Embedded Memory Microcontroller – When an embedded structure is...

Words: 595 - Pages: 3

Premium Essay

Microcontrollers

...Chapter 3: Jump, Loop, and Call Instructions 3:1: Loop and Jump Instructions 1. In the 8051, looping action with the instruction “DJNZ Rx, rel address” is limited to decrement iterations. 2. If a conditional jump is not taken, what is the next instruction to be executed? Unconditional jump 3. In calculating the target address for a jump, a displacement is added to the contents of register program counter. 4. The mnemonic SJMP stands for short jump and it is a 2-byte instruction. 5. The mnemonic LJMP stands for long jump and it is a 3-byte instruction. 6. What is the advantage of using SJMP and LJMP? The advantage is no stack handling is needed. 7. True or false. The target of a short jump within -128 to +127 bytes of the current PC. True 8. True or false. All 8051 jumps are short jumps. False 9. Which of the following instructions is (are) not a short jump? C. LJMP 3:2: Call Instructions 17. LCALL is a 3 -byte instruction. 18. ACALL is a 2 -byte instruction. 19. The ACALL target address is limited to 2k bytes from the present PC. 20. The LCALL target address is limited to 64k bytes from the present PC. 21. When LCALL is executed, how many bytes of the stack are used? 64k 22. When ACALL is executed, how many bytes of the stack are used? 2k 23. Why do the PUSH and POP instructions in a subroutine need to be equal in number? The number needs to be equal because with the use of every PUSH there has to be a POP to match. 24. Describe the...

Words: 686 - Pages: 3

Free Essay

¬Introduction to Embedded C for 8051 and Implementation of Timer and Interrupt Handling

...------------------------------------------------- Note: It is a practical guide in which it is presumed that the reader has already learned about the hardware architecture, programming model, and assembly language programming of 8051 microcontroller. In case you are totally new to 8051 microcontroller I recommend you to read the “8051 Tutorial” available at: https://sites.google.com/site/enggprojectece/my-reading-list It has also been presumed that the reader has at least the beginner level knowledge of computer programming in C language (user defined functions, data types, header files, loops and the flow of a C program). In this tutorial first an introduction to Embedded C is given. A few examples are shown. Then the implementation of timer and interrupt are discussed. (All programs shown here are compiled and executed using Keil µVision 3) Pin Diagram of 8051 (please note the pins used for external interrupts – INT0 & INT1, Serial Port Transmitter – TxD, Serial Port Receiver – RxD, Counter input for Timer-0 – T0 and Counter input for Timer-1 – T1) Embedded C The syntax of embedded C is the same as the C language that we use for writing computer programs. The only difference is the libraries and hence the functions. Particularly for 8051 based microcontrollers, the header file <REGX51.H> has to be added. In this header file the addresses of all the special function registers (SFRs) and other memory locations are defined. Hence we can access an SFR by simply writing its...

Words: 3118 - Pages: 13

Free Essay

My Files

...operational needs of digital signal processing. 3. A graphics processing unit (GPU), also occasionally called visual processing unit (VPU), is a specialized electronic circuit designed to rapidly manipulate and alter memory to accelerate the creation of images in a frame buffer intended for output to a display.  4. A microcontroller (sometimes abbreviated µC, uC or MCU) is a small computer on a single integrated circuit containing a processor core, memory, and programmable input/output peripherals. Program memory in the form of NOR flash or OTP ROM is also often included on chip, as well as a typically small amount of RAM. 5. Advantages of Microcontrollers a)      Microcontrollers act as a microcomputer without any digital parts. b)     As the higher integration inside microcontroller reduce cost and size of the system. c)      Usage of microcontroller is simple, easy for troubleshoot and system maintaining. d)     Most of the pins are programmable by the user for performing different functions. e)      Easily interface additional RAM, ROM,I/O ports. f)       Low time required for performing operations. 6. Disadvantages of Microcontrollers a)      Microcontrollers have got more complex architecture than that of microprocessors. b)     Only perform limited number of executions simultaneously. c)      Mostly used in micro-equipment. d)     Cannot interface...

Words: 746 - Pages: 3

Free Essay

Interrupt

...Interrupt is one of the most important and powerful concepts and features in microcontroller/processor applications. Almost all the real world and real time systems built around microcontrollers and microprocessors make use of interrupts.   What is an Interrupt The interrupts refer to a notification, communicated to the controller, by a hardware device or software, on receipt of which controller momentarily stops and responds to the interrupt. Whenever an interrupt occurs the controller completes the execution of the current instruction and starts the execution of an Interrupt Service Routine (ISR) or Interrupt Handler. ISR is a piece of code that tells the processor or controller what to do when the interrupt occurs. After the execution of ISR, controller returns back to the instruction it has jumped from (before the interrupt was received). Why need interrupts An application built around microcontrollers generally has the following structure. It takes input from devices like keypad processes the input using certain algorithm; and generates an output which is either displayed using devices like seven segment, LCD or used further to operate other devices like motors etc. In such designs, controllers interact with the inbuilt devices like timers and other interfaced peripherals like sensors, serial port etc. The programmer needs to monitor their status regularly like whether the sensor is giving output, whether a signal has been received or transmitted, whether timer has finished...

Words: 795 - Pages: 4

Premium Essay

Google Glass

...ACKNOWLEDGEMENT [pic] We would like to thank Asst. Prof., Ila Parmar for her guidance, her support and the opportunity to work on this project and H.O.D., Mr. Lokhandvala for his support and the encouragement. We would also like to thank our families for their constant support, encouragement and motivation without which the accomplishment of this project would not be possible. We would also like to thank our friends and all the people who directly or indirectly played a role in this project. ABSTRACT [pic] Mankind has always strived to give life like qualities to it’s artifacts in an attempt to find substitutes for himself to carry out his orders and also to work in a hostile environment. The popular concept of a robot is of a machine that looks like a human being. Cleaning of floors of rooms and corridor usually involves lot of effort and labour on the part of the person doing it. It causes much trouble, waste of time and energy on the part of humans. Moreover, it also proves to be expensive if a person is hired for doing it. It also makes the employer dependent on the person hired for getting the job done. Thus it bounds people in a way and renders them helpless. What if this process is made automatic and independent of any apparent human role. This can be done with the help of embedded technology and automation. That is the job we as future EC engineers have undertaken. The process of cleaning can be...

Words: 658 - Pages: 3

Free Essay

The Final Touch

...INDUSTRIAL TRAINING FROM TATA CMC, JAMMU ON EMBEDDED SYSTEMS. Submitted in the partial fulfilment of requirement for the award of degree of Bachelor of Engineering In Electronics and Communication Engineering Submitted By Ashish Gupta 258/12 Under the guidance of Ms. Sonika Mahajan IT Guide Department of Electronics & Communication Engineering Mahant Bachittar Singh College of Engineering and Technology, Jammu 2015 CERTIFICATE i DECLARATION I hereby declare that the Seminar Report entitled “EMBEDDED SYSTEMS” is an authentic record of my own work carried out as requirement for the award of degree of B.E. (E&C) of Mahant Bachittar Singh College of Engineering & Technology, Jammu. Date: ................ Ashish Gupta 258/12 Certified that the above statement made by the student is correct to the best of my knowledge and belief. Ms. Sonika Mahajan Ms. Neha Gupta Ms. Shalini Sharma IT Guide ...

Words: 998 - Pages: 4

Premium Essay

Nt1310 Unit 3 Circuit Design

...project is design 03. This design was selected by considering several factors. The first factor which was considered is the complexity of the circuit design. As there are two processors the work load is divided and therefore error percentage can is reduced. Sensor interfacing is carried out with the microcontroller and the GSM and PC interfacing is done using the arduino. If an error occur in the system it will be easily troubleshoot as the system is virtually divided and three different program codes are being used. When comparing with the other two designs the work load will more on the processor therefore it will affect the accuracy and the effectiveness of those system in the long run. In data transmission design 01 has used a RF for wireless communication, and the design 02 has used a Bluetooth device for its wireless data communication. As the system is wireless there will be various interferences from other equipment, result in errors in the system. And if this system is implemented in a small nursing home or a hospital, the radio frequency signals may be interfere with other medical equipment which will cause instability in this system as well as other equipment too....

Words: 511 - Pages: 3

Premium Essay

Nt1310 Unit 3 Board Analysis

...Power LED: Adjacent to the printed word 'UNO' a LED can be seen ,which blinks whenever the board is powered up. TX and RX LED : Arduino uses the TX ,stands for transmit and RX stands for recieve pins for serial communication,whenver Arduino recieves or transmit data , LEDs (labele12 ) blinks. Core IC : Arduino uses Atmega ICs of ATMEL company as microcontrollers for the board.This is known as the brain of Arduino indicated as Label 13 Label 14 is the Voltage regulator ,as name indicates it regulates the voltage into the Arduino board . 3.3.2 Arduino Software To install Arduino IDE one need an Arduino compatible microcontroller ,a USB cable and computer(Windows,Linux or MAC).Follow the steps for software installation,after this process it would be ready for testing the...

Words: 454 - Pages: 2

Free Essay

Avr312: Using the Usi Module as a I2C Slave

...Wake up from all sleep mode, including Power Down 8-bit Microcontrollers Application Note 1 Introduction The Two Wire serial Interface (TWI) is compatible with Philips' I2C protocol. The bus was developed to allow simple, robust and cost effective communication between integrated circuits in electronics. The strengths of the TWI bus includes the capability of addressing up to 128 devices on the same bus, arbitration, and the possibility to have multiple masters on the bus. The Universal Serial Interface (USI) module on devices such as ATmega169, ATtiny26 and ATtiny2313, has a dedicated Two-wire mode. The USI provides the basic hardware resources needed for synchronous serial communication. Combined with a minimum of control software, the USI allows higher transfer rates and uses less code space than solutions based on software only. Interrupts are included to minimize the processor load. This document describes how to use the USI for TWI slave communication. Source code for communication drivers for transmission and reception is provided. The code is complete with both data buffer handling and combined transmitter and receiver. Rev. 2560C-AVR-09/05 2 Theory This section gives a short description of the TWI and USI interfaces. For more detailed information refer to the datasheets. 2.1 Two-wire serial Interface The Two-wire Serial Interface (TWI) is ideally suited for typical microcontroller applications. The TWI protocol allows the systems designer...

Words: 2980 - Pages: 12

Free Essay

Embedded

...Embedded Systems Software Quality and Testing in Embedded Systems DR KASHIF SAGHAR Kashif.saghar@gmail.com Outline Software Quality and Testing in Embedded Systems Embedded system • Embedded system is a computer system with a dedicated function within a larger mechanical or electrical system • Often ES are Real time Systems • Embedded Systems are generally – Small size – Low Power and Price – Rugged OS Embedded system … • Embedded systems are often based on microcontrollers • Embedded systems are used in various portable devices • Embedded systems are used in transportation, fire safety, safety and security, medical applications and life critical systems • A new class of wireless embedded devices called motes are networked wireless sensors. Wireless sensor network (WSN) • A wireless sensor network (WSN) is an example of a complete embedded system – Various ES work in a distributed network – Communicate wirelessly – Contains independent sensors etc. A WSN … Embedded System : Node • WSN is composed of various nodes • Resource Constraints • Network Topology and Routing Embedded Systems Specifications • Specifications WE NEED FORMALITY TO FILL THE GAPS • Implementation Model Checking in Embedded System Apply Properties Yes OR No If No....... Why No? • Where Modeling Techniques can be used in Embedded Systems? Specification Stage – Give a description of the system to be developed, at whatever...

Words: 383 - Pages: 2

Free Essay

Electronics and Communicatio

...located in remote place (Police station, near ones, etc). In the transmitter section the eye blink sensor is placed near the eye to sense the blink count and this information is transmitted in the form of pulses and is given to the Microcontroller. The Microcontroller uses this information to compare with the normal eye blink programmed in the chip and if any abnormal situation arises the vehicle is stopped with an alarm indication, this operation is enabled by means of the driver circuit connected to the vehicle motor and the signal is transmitted via RF-transmitter at the frequency of 433.92 MHz. In the Receiver side the transmitted signal is received and the signal is decoded and given to the Microcontroller, which uses this information for displaying the alert message in the LCD as programmed, simultaneously a buzzer alert is given. Block Diagram Transmitter[pic] Receiver [pic] HARDWARE REQUIREMENTS • Microcontroller Unit and Power Supply • LCD • Alarm unit • RF transmitter and receiver SOFTWARE REQUIREMENTS • Embedded C • Keil Compiler LIST OF HARDWARE MODULES: MODULE 1: Power Supply for 8051 Microcontroller MODULE 2: Encoder MODULE 3: RF Transmitter MODULE 4: Decoder MODULE 5: RF Receiver MODULE 6: Relay...

Words: 1216 - Pages: 5