Besck104c 204c Iec Module4 Notes
Besck104c 204c Iec Module4 Notes
204C
MODULE – 4
EMBEDDED SYSTEMS
1
BESCK104C/ INTRODUCTION TO ELECTRONICS AND COMMUNICATION
204C
2
BESCK104C/ INTRODUCTION TO ELECTRONICS AND COMMUNICATION
204C
o They usually contain a high-performance Real-Time Operating System (RTOS) for task
scheduling, prioritization, and management.
3
BESCK104C/ INTRODUCTION TO ELECTRONICS AND COMMUNICATION
204C
Embedded hardware/ software systems are basically designed to regulate a physical variable or to
manipulate the state of some devices by sending some control signals to the Actuators or devices
connected to the O/P ports of the system, in response to the input signals provided by the end users or
Sensors which are connected to the input ports. Hence an embedded system can be viewed as a reactive
system.
Key boards, push button switches, etc. are examples for common user interface input devices where as
LEDs, liquid crystal displays, piezoelectric buzzers, etc. are examples for common user interface output
devices for a typical embedded system.
The Memory of the system is responsible for holding the control algorithm and other important
configuration details.
4
BESCK104C/ INTRODUCTION TO ELECTRONICS AND COMMUNICATION
204C
5
BESCK104C/ INTRODUCTION TO ELECTRONICS AND COMMUNICATION
204C
The overall cost of systems made with Microcontrollers are made by using complementary
Microprocessors is high, because of the high metal oxide semiconductor technology; so they are
number of external components required. far cheaper than Microprocessors.
Processing speed of general microprocessors is
Processing speed of Microcontrollers is about 8
above 1 GHz; so, it works much faster than
MHz to 50 MHz.
Microcontrollers.
Microprocessors are based on von-Neumann Microcontrollers are based on Harvard architecture;
model; where, program and data are stored in same where, program memory and data memory are
memory module. separate.
6
BESCK104C/ INTRODUCTION TO ELECTRONICS AND COMMUNICATION
204C
Atmel AVR microcontroller is an example for a RISC processor and its instruction set contains only 32
instructions. The original version of 8051 microcontroller (e.g.AT 89C51) is a CISC controller and its
instruction set contains 255 instructions.
Remember it is not the number of instructions that determines whether a processor/ controller is CISC or
RISC. There are some other factors like pipelining features, instruction set type, etc., for determining the
RISC/ CISC criteria. Some of the important criteria are listed below:
CISC RISC
1. Complex instructions, taking multiple clock 1. Simple instructions, taking single clock
2. Emphasis on hardware, complexity is in the 2. Emphasis on software, complexity is in the
micro-program/processor complier
3. Complex instructions, instructions executed by 3. Reduced instructions, instructions executed by
micro-program/processor hardware
4. Variable format instructions, single register set 4. Fixed format instructions, multiple register sets
and many instructions and few instructions
5. Many instructions and many addressing modes 5. Fixed instructions and few addressing modes
6. Conditional jump is usually based on status 6. Conditional jump can be based on a bit
register bit anywhere in memory
7. Memory reference is embedded in many 7. Memory reference is embedded in
instructions LOAD/STORE instructions
7
BESCK104C/ INTRODUCTION TO ELECTRONICS AND COMMUNICATION
204C
TRANSDUCERS:
Transducers are devices that convert energy in the form of sound, light, heat, etc., into an equivalent
electrical signal, or vice versa. Transducers may be used both as inputs to electronic circuits and outputs
from them.
Example: A loudspeaker is a transducer that converts low frequency electric current into audible sounds.
Thus, a loudspeaker is an output transducer designed for use in conjunction with an audio system.
A microphone, on the other hand, is a transducer that performs the reverse function, i.e., that of
converting sound pressure variations into voltage or current. Thus, a microphone is an input transducer
designed for use with a recording or sound reinforcing system.
8
BESCK104C/ INTRODUCTION TO ELECTRONICS AND COMMUNICATION
204C
Loudspeakers and microphones can thus be considered as complementary transducers. There are many
different types of transducers and the following Tables provide some examples of transducers that can be
used to input and output three important physical quantities; sound, temperature and angular position.
SENSORS:
A sensor is a special kind of transducer that is used to generate an input signal to a measurement,
instrumentation or control system. The signal produced by a sensor is an electrical analogy of a physical
quantity, such as distance, velocity, acceleration, temperature, pressure, light level, etc. The signals
returned from a sensor, together with control inputs from the user or controller will be used to determine
the output from the system. The choice of sensor is governed by a number of factors including accuracy,
resolution, cost and physical size.
Sensors can be categorized as either active or passive. An active sensor generates a current or voltage
output. A passive transducer requires a source of current or voltage and it modifies this in some way. The
result may still be a voltage or current but it is not generated by the sensor on its own.
Sensors can also be classed as either digital or analogue. The output of a digital sensor can exist in only
two discrete states, either ‘on’ or ‘off’, ‘low’ or ‘high’, ‘logic 1’ or ‘logic 0’, etc. The output of an
9
BESCK104C/ INTRODUCTION TO ELECTRONICS AND COMMUNICATION
204C
analogue sensor can take any one of an infinite number of voltage or current levels. It is thus said to be
continuously variable.
ACTUATORS:
Actuator is a form of transducer device (mechanical or electrical) which converts signals to corresponding
physical action (motion). Actuator acts as an output device.
• Smart watches use Ambient Light Sensor to detect the surrounding light intensity and uses an
electrical/ electronic actuator circuit to adjust the screen brightness.
The Figure 4.5 shows the sensor to actuator flow:
10
BESCK104C/ INTRODUCTION TO ELECTRONICS AND COMMUNICATION
204C
Light Emitting Diode is a p-n junction diode and it contains an anode and a cathode. For proper
functioning of the LED, the anode of it should be connected to +ve terminal of the supply voltage and
cathode to the –ve terminal of supply voltage. A resister is used in series between the power supply and
the LED to limit the current through the LED. The ideal LED interfacing circuit is shown in Figure 4.6.
11
BESCK104C/ INTRODUCTION TO ELECTRONICS AND COMMUNICATION
204C
The LED segments are named A to G and the 'decimal point LED segment is named as DP. For
displaying the number 4, the segments F, G, B and C are lit. For displaying 3, the segments A, B, C, D, G
are lit. All these 8 LED segments need to be connected to one port of the processor/ controller for
displaying alpha-numeric digits.
The 7-segment LED displays are available in two different configurations, namely; Common Anode and
Common Cathode.
• In common anode configuration, the anodes of the 8 segments are connected commonly
• In common cathode configuration, the 8 LED segments share a common cathode line.
Figure 4.8 illustrates the Common Anode and Cathode configurations.
12