Basic Electronics -21ELN14/24
Syllabus
Electronic Circuits : Power supplies ,Amplifiers, Operational Amplifiers ,Oscillators .
Logic Circuits
Embedded Systems , Sensors and Interfacing , Communication Interface.
Analog and Digital Communication
Cellular wireless networks ,wireless network topologies, Satellite communication ,Optical fiber communication ,Microwave communication
Module3
2
7/7/2022
Text Books
Module3
3
7/7/2022
Text 1
Text 2
Text Books
Module3
4
7/7/2022
Text 3
Text 4
Module 3
EMBEDDED SYSTEMS
Module3
5
7/7/2022
5
6
7/7/2022
Embedded Systems
Definition, Embedded systems vs general computing systems, Classification of Embedded Systems, Major application areas of Embedded Systems, Elements of an Embedded System, Core of the Embedded System, Microprocessor vs Microcontroller, RISC vs CISC, Harvard vs Von-Neumann.
Sensors and Interfacing
Instrumentation and control systems, Transducers, Sensors.
Actuators
LED, 7-Segment LED Display, Stepper Motor, Relay, Piezo Buzzer, Push Button Switch, Keyboard.
Communication Interface
UART, Parallel Interface, USB, Wi-Fi, GPRS.
Introduction
Module3
7
7/7/2022
7
What is an Embedded System?
Module3
8
7/7/2022
8
Embedded Systems vs. General Computing Systems
Module3
9
7/7/2022
9
Module3
10
7/7/2022
General Purpose Computing System | Embedded System |
A system which is a combination of a generic hardware and a General Purpose Operating System for executing a variety of applications | A system which is a combination of special purpose hardware and embedded OS for executing a specific set of applications |
Contains a General Purpose Operating System (GPOS) | May or may not contain an operating system for functioning |
Applications are alterable (programmable) by the user (It is possible for the end user to re-install the operating system, and also add or remove user applications) | The firmware of the embedded system is pre-programmed and it is non-alterable by the end-user (There may be exceptions for system supporting OS kernel image flashing through special hardware settings) |
Performance is the key deciding factor in the selection of the system. Always, ‘Faster is Better’ | Application-specific requirements (like performance, power requirements, memory usage, etc.) are the key deciding factors |
Less/not at all tailored towards reduced operating power requirements, options for different levels of power management | Highly tailored to take advantage of the power saving modes supported by the hardware and the operating system |
Response requirements are not time-critical | For certain category of embedded systems like mission critical systems, the response time requirement is highly critical |
Need not be deterministic in execution behaviour | Execution behaviour is deterministic for certain types of embedded systems like ‘Hard Real Time’ systems |
10
Classification of Embedded Systems
Module3
11
7/7/2022
11
Classification Based on Generation
Module3
12
7/7/2022
12
Classification Based on Generation (continued)
Module3
13
7/7/2022
13
Classification Based on Generation (continued)
Module3
14
7/7/2022
14
Classification Based on Generation (continued)
Module3
15
7/7/2022
15
Classification Based on Generation (continued)
Module3
16
7/7/2022
16
Classification Based on Generation (continued)
Module3
17
7/7/2022
17
Classification Based on Complexity and Performance
Module3
18
7/7/2022
18
Classification Based on Complexity and Performance (continued)
Module3
19
7/7/2022
19
Classification Based on Complexity and Performance (continued)
Module3
20
7/7/2022
20
Classification Based on Complexity and Performance (continued)
Module3
21
7/7/2022
21
Classification Based on Deterministic Behaviour
Module3
22
7/7/2022
22
Classification Based on Triggering�
Module3
23
7/7/2022
23
Major Application Areas of Embedded Systems
Module3
24
7/7/2022
24
Major Application Areas of Embedded Systems (continued)
Module3
25
7/7/2022
25\
Major Application Areas of Embedded Systems (continued)
Module3
26
7/7/2022
26
The Typical Embedded System
ELEMENTS OF AN EMBEDDED SYSTEM
Module3
27
7/7/2022
27
The Typical Embedded System
Module3
28
7/7/2022
Fig: Elements of an Embedded System
28
The Typical Embedded System (continued)
Module3
29
7/7/2022
29
The Typical Embedded System (continued)
Module3
30
7/7/2022
30
The Typical Embedded System (continued)
Module3
31
7/7/2022
important configuration details.
31
The Typical Embedded System (continued)
Module3
32
7/7/2022
32
The Typical Embedded System (continued)
Module3
33
7/7/2022
33
Core of the Embedded System
Module3
34
7/7/2022
central core.
categories:
34
Microprocessor vs. Microcontroller
Module3
35
7/7/2022
35
Microprocessor vs. Microcontroller (continued)
Module3
36
7/7/2022
Microprocessor | Microcontroller |
A silicon chip representing a central processing unit (CPU), which is capable of performing arithmetic as well as logical operations according to a pre-defined set of instructions | A microcontroller is a highly integrated chip that contains a CPU, scratchpad RAM, special and general purpose register arrays, on chip ROM/ FLASH memory for program storage, timer and interrupt control units and dedicated I/O ports |
It is a dependent unit. It requires the combination of other chips like timers, program and data memory chips, interrupt controllers, etc. for functioning | It is a self-contained unit and it doesn't require external interrupt controller, timer, UART, etc. for its functioning |
Most of the time, general purpose in design and operation | Mostly application-oriented or domain-specific |
Doesn't contain a built in I/O port. The I/O port functionality needs to be implemented with the help of external programmable peripheral interface chips like 8255 | Most of the processors contain multiple built-in I/O ports which can be operated as a single 8 or 16 or 32 bit port or as individual port pins |
Targeted for high end market where performance is important | Targeted for embedded market where performance is not so critical |
Limited power saving options compared to microcontrollers | Includes lot of power saving features |
36
Microprocessor vs. Microcontroller (continued)
Module3
37
7/7/2022
Microprocessor-based system
Microcontroller
37
RI SC Vs C ISC Processors/Controllers
Module3
38
7/7/2022
38
Module3
39
7/7/2022
RISC | CISC |
Lesser number of instructions | Greater number of instructions |
Instruction pipelining and increased execution speed | Generally no instruction pipelining feature |
Orthogonal instruction set (Allows each instruction to operate on any register and use any addressing mode) | Non-orthogonal instruction set (All instructions are not allowed to operate on any register and use any addressing mode. It is instruction-specific) |
Operations are performed on registers only, the only memory operations are load and store | Operations are performed on registers or memory depending on the instruction |
A large number of registers are available | Limited number of general purpose registers |
Programmer needs to write more code to execute a task since the instructions are simpler ones | Instructions are like macros in C language. A programmer can achieve the desired functionality with a single instruction which in turn provides the effect of using more simpler single instructions in RISC |
Single, fixed length instructions | Variable length instructions |
Less silicon usage and pin count | More silicon usage since more additional decoder logic is required to implement the complex instruction decoding |
With Harvard Architecture | Can be Harvard or Von-Neumann Architecture |
39
Harvard vs. Von-Neumann Processor/ControIIer Architecture
Module3
40
7/7/2022
40
Harvard vs. Von-Neumann Processor/ControIIer Architecture (continued)
Module3
41
7/7/2022
both buses.
41
Harvard vs. Von-Neumann Processor/ControIIer Architecture (continued)
Module3
42
7/7/2022
Harvard Architecture | Von-Neumann Architecture |
Separate buses for instruction and data fetching | Single shared bus for instruction and data fetching |
Easier to pipeline, so high performance can be achieved | Low performance compared to Harvard architecture |
Comparatively high cost | Cheaper |
No memory alignment problems | Allows self modifying codes |
Since data memory and program memory are stored physically in different locations, no chances for accidental corruption of program memory | Since data memory and program memory are stored physically in the same chip, chances for accidental corruption of program memory |
42
Sensors and Actuators
Module3
43
7/7/2022
43
Sensors and Actuators
Module3
44
7/7/2022
44
Sensors and Actuators (continued)
Module3
45
7/7/2022
45
Sensors and Interfacing
Module3
46
7/7/2022
46
Instrumentation and Control Systems
Module3
47
7/7/2022
Fig: An Instrumentation System
47
Instrumentation and Control Systems (continued)
Module3
48
7/7/2022
48
Instrumentation and Control Systems (continued)
Module3
49
7/7/2022
Fig: A Control System
49
Instrumentation and Control Systems (continued)
Module3
50
7/7/2022
50
Instrumentation and Control Systems (continued)
Module3
51
7/7/2022
51
Transducers
Module3
52
7/7/2022
52
Transducers (continued)
Module3
53
7/7/2022
53
Transducers (continued)
Module3
54
7/7/2022
Physical Quantity | Input Transducer | Notes |
Sound (pressure change) | Dynamic microphone | Diaphragm attached to a coil is suspended in a magnetic field. Movement of the diaphragm causes current to be induced in the coil. |
Temperature | Thermocouple | Small e.m.f. generated at the junction between two dissimilar metals (e.g. copper and constantan). Requires reference junction and compensated cables for accurate measurement. |
Angular position | Rotary potentiometer | Fine wire resistive element is wound around a circular former. Slider attached to the control shaft makes contact with the resistive element. A stable d.c. voltage source is connected across the ends of the potentiometer. Voltage appearing at the slider will then be proportional to angular position. |
54
Transducers (continued)
Module3
55
7/7/2022
A selection of thermocouple probes
A selection of audible transducers
55
Transducers (continued)
Module3
56
7/7/2022
Physical Quantity | Output Transducer | Notes |
Sound (pressure change) | Loudspeaker | Diaphragm attached to a coil is suspended in a magnetic field. Current in the coil causes movement of the diaphragm which alternately compresses and rarefies the air mass in front of it. |
Temperature | Heating element (resistor) | Metallic conductor is wound onto a ceramic or mica former. Current flowing in the conductor produces heat. |
Angular position | Rotary potentiometer | Multi-phase motor provides precise rotation in discrete steps of 15° (24 steps per revolution), 7.5° (48 steps per revolution) and 1.8° (200 steps per revolution). |
56
Sensors
Module3
57
7/7/2022
57
Sensors (continued)
Module3
58
7/7/2022
58
Sensors (continued)
Module3
59
7/7/2022
59
Sensors (continued)
Module3
60
7/7/2022
Physical Quantity | Input Transducer (Sensor) | Notes |
Angular position | Resistive rotary position sensor | Rotary track potentiometer with linear law produces analogue voltage proportional to angular position. |
Optical shaft encoder | Encoded disk interposed between optical transmitter and receiver (infrared LED and photodiode or photo-transistor). | |
Angular velocity | Tachogenerator | Small d.c. generator with linear output characteristic. Analogue output voltage proportional to shaft speed. |
Toothed rotor tachometer | Magnetic pick-up responds to the movement of a toothed ferrous disk. The pulse repetition frequency of the output is proportional to the angular velocity. | |
Flow | Rotating vane flow sensor | Turbine rotor driven by fluid. Turbine interrupts infra-red beam. Pulse repetition frequency of output is proportional to flow rate. |
60
Sensors (continued)
Module3
61
7/7/2022
Resistive linear position sensor
Liquid flow sensor (digital output)
61
Sensors (continued)
Module3
62
7/7/2022
Physical Quantity | Input Transducer (Sensor) | Notes |
Linear position | Resistive linear position sensor | Linear track potentiometer with linear law produces analogue voltage proportional to linear position. Limited linear range. |
Linear variable differential transformer (LVDT) | Miniature transformer with split secondary windings and moving core attached to a plunger. Requires a.c. excitation and phase- sensitive detector. | |
Magnetic linear position sensor | Magnetic pick-up responds to movement of a toothed ferrous track. Pulses are counted as the sensor moves along the track. |
62
Sensors (continued)
Module3
63
7/7/2022
Physical Quantity | Input Transducer (Sensor) | Notes |
Light level | Photocell | Voltage-generating device. The analogue output voltage produced is proportional to light level. |
Light-dependent resistor (LDR) | An analogue output voltage results from a change of resistance within a cadmium sulphide (CdS) sensing element. Usually connected as part of a potential divider or bridge. | |
Photodiode | Two-terminal device connected as a current source. An analogue output voltage is developed across a series resistor of appropriate value. | |
Phototransistor | Three-terminal device connected as a current source. An analogue output voltage is developed across a series resistor of appropriate value. |
63
Sensors (continued)
Module3
64
7/7/2022
Various optical and light sensors
64
Sensors (continued)
Module3
65
7/7/2022
Physical Quantity | Input Transducer (Sensor) | Notes |
Liquid level | Float switch | Simple switch element which operates when a particular level is detected. |
Capacitive proximity switch | Switching device which operates when a particular level is detected. Ineffective with some liquids. | |
Diffuse scan proximity switch | Switching device which operates when a particular level is detected. Ineffective with some liquids. |
65
Sensors (continued)
Module3
66
7/7/2022
Liquid level float switch
66
Sensors (continued)
Module3
67
7/7/2022
Physical Quantity | Input Transducer (Sensor) | Notes |
Pressure | Microswitch pressure sensor | Microswitch fitted with actuator mechanism and range-setting springs. Suitable for high-pressure applications. |
Differential pressure vacuum switch | Microswitch with actuator driven by a diaphragm. May be used to sense differential pressure. Alternatively, one chamber may be evacuated and the sensed pressure applied to a second input. | |
Piezo-resistive pressure sensor | Pressure exerted on diaphragm causes changes of resistance in attached piezo-resistive transducers. Transducers are usually arranged in the form of a four active element bridge which produces an analogue output voltage. |
67
Sensors (continued)
Module3
68
7/7/2022
Physical Quantity | Input Transducer (Sensor) | Notes |
Proximity | Reed switch | Reed switch and permanent magnet actuator. Only effective over short distances. |
Inductive proximity switch | Target object modifies magnetic field generated by the sensor. Only suitable for metals (non-ferrous metals with reduced sensitivity). | |
Capacitive proximity switch | Target object modifies electric field generated by the sensor. Suitable for metals, plastics, wood and some liquids and powders. | |
Optical proximity switch | Available in diffuse and through scan types. Diffuse scan types require reflective targets. Both types employ optical transmitters and receivers (usually infra-red emitting LEDs and photo-diodes or photo- transistors). Digital input port required. |
68
Sensors (continued)
Module3
69
7/7/2022
Physical Quantity | Input Transducer (Sensor) | Notes |
Strain | Resistive strain gauge | Foil type resistive element with polyester backing for attachment to body under stress. Normally connected in full bridge configuration with temperature-compensating gauges to provide an analogue output voltage. |
Semiconductor strain gauge | Piezo-resistive elements provide greater outputs than comparable resistive foil types. More prone to temperature changes and also inherently non-linear. |
69
Sensors (continued)
Module3
70
7/7/2022
Physical Quantity | Input Transducer (Sensor) | Notes |
Temperature | Thermocouple | Small e.m.f. generated by a junction between two dissimilar metals. For accurate measurement, requires compensated connecting cables and specialized interface. |
Thermistor | Usually connected as part of a potential divider or bridge. An analogue output voltage results from resistance changes within the sensing element. | |
Semiconductor temperature sensor | Two-terminal device connected as a current source. An analogue output voltage is developed across a series resistor of appropriate value. |
70
Sensors (continued)
Module3
71
7/7/2022
Various temperature and gas sensors
71
Sensors (continued)
Module3
72
7/7/2022
Physical Quantity | Input Transducer (Sensor) | Notes |
Weight | Load cell | Usually comprises four strain gauges attached to a metal frame. This assembly is then loaded and the analogue output voltage produced is proportional to the weight of the load. |
Vibration | Electromagnetic vibration sensor | Permanent magnet seismic mass suspended by springs within a cylindrical coil. The frequency and amplitude of the analogue output voltage are respectively proportional to the frequency and amplitude of vibration. |
72
Actuators
Module3
73
7/7/2022
73
The I/O Subsystem
Module3
74
7/7/2022
74
Light Emitting Diode (LED)
Module3
75
7/7/2022
Fig: LED interfacing
75
Light Emitting Diode (LED) (continued)
Module3
76
7/7/2022
‘1’).
76
7-Segment LED Display
Module3
77
7/7/2022
Fig: 7-Segment LED Display
77
7-Segment LED Display (continued)
Module3
78
7/7/2022
78
7-Segment LED Display (continued)
Module3
79
7/7/2022
anode or cathode of each segment.
79
Stepper Motor
Module3
80
7/7/2022
80
Stepper Motor (continued)
Module3
81
7/7/2022
terminals to which the coil are connected.
one of them will be carrying current at a time).
(only one of them will be carrying current at a time).
Fig: 2-Phase unipolar stepper motor
81
Stepper Motor (continued)
Module3
82
7/7/2022
Fig: Stator Winding details for a 2-Phase unipolar stepper motor
82
Stepper Motor (continued)
Module3
83
7/7/2022
2. Bipolar
dynamically.
83
Stepper Motor (continued)
Module3
84
7/7/2022
84
Stepper Motor (continued)
Module3
85
7/7/2022
Full Step
Step | Coil A | Coil B | Coil C | Coil D |
1 | H | H | L | L |
2 | L | H | H | L |
3 | L | L | H | H |
4 | H | L | L | H |
85
Stepper Motor (continued)
Module3
86
7/7/2022
Wave Step
Step | Coil A | Coil B | Coil C | Coil D |
1 | H | L | L | L |
2 | L | H | L | L |
3 | L | L | H | L |
4 | L | L | L | H |
86
Stepper Motor (continued)
Module3
87
7/7/2022
Half Step
shown in the table:
Step | Coil A | Coil B | Coil C | Coil D |
1 | H | L | L | L |
2 | H | H | L | L |
3 | L | H | L | L |
4 | L | H | H | L |
5 | L | L | H | L |
6 | L | L | H | H |
7 | L | L | L | H |
8 | H | L | L | H |
87
Stepper Motor (continued)
Module3
88
7/7/2022
applications.
required to interface the stepper motor with microcontroller/processors.
and ST microelectronics for driving a 5V stepper motor.
88
Stepper Motor (continued)
Module3
89
7/7/2022
Fig: Interfacing of stepper motor through driver circuit
89
Relay
Module3
90
7/7/2022
which in turn generates a magnetic field.
90
Relay (continued)
Module3
91
7/7/2022
Fig: Relay configurations
91
Relay (continued)
Module3
92
7/7/2022
92
Relay (continued)
Module3
93
7/7/2022
circuit as shown in the figure.
Fig: Transistor based Relay driving circuit
93
Piezo Buzzer
Module3
94
7/7/2022
interfaced using a transistor based driver circuit as in the case of a 'Relay'.
94
Push Button Switch
Module3
95
7/7/2022
and 'Push to Break’.
95
Push Button Switch (continued)
Module3
96
7/7/2022
pulse.
used as reset and start switch and pulse generator.
of the host processor/controller.
generating 'LOW' and 'HIGH' pulses.
Fig: Push button switch configurations
96
Keyboard
Module3
97
7/7/2022
97
Keyboard (continued)
Module3
98
7/7/2022
98
Keyboard (continued)
Module3
99
7/7/2022
99
Keyboard (continued)
Module3
100
7/7/2022
are the key de-bouncing techniques available.
read again after a de-bounce delay.
on the second read also.
Pull-up resistors are connected to the column lines to limit the current that flows to the Row line on a key press.
100
Communication Interface
Module3
101
7/7/2022
101
Communication Interface
Module3
102
7/7/2022
interface)
102
Onboard Communication Interfaces
Module3
103
7/7/2022
103
Universal Asynchronous Receiver Transmitter (UART)
Module3
104
7/7/2022
104
Universal Asynchronous Receiver Transmitter (UART) (continued)
Module3
105
7/7/2022
105
Universal Asynchronous Receiver Transmitter (UART) (continued)
Module3
106
7/7/2022
compares it with the received parity bit for error checking.
106
Universal Asynchronous Receiver Transmitter (UART) (continued)
Module3
107
7/7/2022
107
Universal Asynchronous Receiver Transmitter (UART) (continued)
Module3
108
7/7/2022
Fig: UART Interfacing
108
Parallel Interface
Module3
109
7/7/2022
which are memory mapped to the host of the system.
this line is asserted by the host processor.
109
Parallel Interface (continued)
Module3
110
7/7/2022
110
Parallel Interface (continued)
Module3
111
7/7/2022
Fig: Parallel Interface Bus
111
Parallel Interface (continued)
Module3
112
7/7/2022
processor.
112
External Communication Interfaces
Module3
113
7/7/2022
113
Universal Serial Bus (USB)
Module3
114
7/7/2022
114
Universal Serial Bus (USB) (continued)
Module3
115
7/7/2022
Fig: USB Device Connection topology
115
Universal Serial Bus (USB) (continued)
Module3
116
7/7/2022
116
Universal Serial Bus (USB) (continued)
Module3
117
7/7/2022
117
Universal Serial Bus (USB) (continued)
Module3
118
7/7/2022
Pin no: | Pin name | Description |
1 | VBUS | Carries power (5V) |
2 | D– | Differential data carrier line |
3 | D+ | Differential data carrier line |
4 | GND | Ground signal line |
118
Universal Serial Bus (USB) (continued)
Module3
119
7/7/2022
119
Universal Serial Bus (USB) (continued)
Module3
120
7/7/2022
carrying power.
120
Universal Serial Bus (USB) (continued)
Module3
121
7/7/2022
transfer.
121
Universal Serial Bus (USB) (continued)
Module3
122
7/7/2022
122
Wi-Fi
Module3
123
7/7/2022
networked communication of devices.
123
Wi-Fi (continued)
Module3
124
7/7/2022
router/Wireless Access point to manage the communications.
124
Wi-Fi (continued)
Module3
125
7/7/2022
Fig: Wi-Fi Network
Device 1
Device 2
Device 3
Wi-Fi Router
125
Wi-Fi (continued)
Module3
126
7/7/2022
126
126
General Packet Radio Service (GPRS)
Module3
127
7/7/2022
127
General Packet Radio Service (GPRS) (continued)
Module3
128
7/7/2022
data over the available channel.
protocols for communication.
communication.
GPRS radio.
have support for GPRS communication.
128
General Packet Radio Service (GPRS) (continued)
Module3
129
7/7/2022
Speed Packet Access (HSPA).
underlying technology.
129
Model Question Paper Questions�
Module3
130
7/7/2022
References�
DOI https://doi.org/10.4324/9781315737980. eBook ISBN9781315737980
Module3
131
7/7/2022