SlideShare ist ein Scribd-Unternehmen logo
1 von 14
Downloaden Sie, um offline zu lesen
University of Manchester                             Department of Computer Science



                           Basic Electricity
The intention of this lecture is to describe basic electrical
characteristics in a qualitative way.


Lecture objectives:
         o    provide some basic knowledge of analogue electronics
         o    to give some “feel” for electronic effects on digital circuits


Much of the following theory should be familiar; what may be new is
some of its application.


Note:
Much of the ‘skill’ is to understand the associated jargon, especially
as terminology is often used for things not directly related to its strict
definition.
For example “D.C.” literally refers to Direct Current, an electrical
current which always flows in the same direction. It is loosely used
to describe any value (electrical or otherwise) which does not vary
with time.




CS1222 – Computer Technology     Basic Electricity                          Slide 1
Electrical Basics
What is …
Charge?
Charge is measured in coulombs and is the amount of “electricity” present (or flowing).
Charge can be positive or negative. Like charges repel each other. Unlike charges attract each
other.
In the vicinity of a charge there is an electric field. The field points in the direction that a posi-
tive charge would move.
Charge moves about and may be stored (e.g. in a capacitor or battery).



Current? (A.C. ? D.C.?)
Current is a flow of charge; the rate of movement of charge through a system. It is analogous to
the flow of water in a hydraulic system (in litres/s). It is measured in amps; an amp is quite big.
A.C. is alternating current, where the current flows first one way then the other (repeatedly).
This does not mean it cannot transmit energy. D.C. is Direct Current where a current flows in
the same direction at all times (normally implies constant value as well as direction).



Voltage?
Voltage is electrical “pressure”. It is analogous to the pressure of a hydraulic system (say like
the height of a reservoir). Voltage is measured in volts; contrary to media opinion, volts do not
flow.


Impedance is the ‘resistance’ to current flow. It is a very important concept in any electrical
circuit. For instance the (internal) impedance of a gate’s output should be low so that it may
drive its output more easily. The input impedance of a gate should be high so that it may be
driven easily (without it absorbing a large current, which would lead to a high power loss).
Impedance is a general term. For many applications ‘resistance’ is equally applicable, how-
ever capacitors and inductors have different properties.


Energy is a measure of work done. Power is the work done per unit time. Thus if a battery
contains so much energy it can power something for a particular time. If the power needs of the
equipment is reduced then the same energy can power it for longer. (These two terms are not
restricted to electrical circuits.)
University of Manchester                               Department of Computer Science



                                Ohm’s Law
                                  V=IxR
This is only true for resistive loads. Most loads are more complex
than this. In general:
                                  V=IxZ
where Z is the impedance of the load. This may depend (for
example) on the frequency of an A.C. signal.


                       Kirchhoff’s Current law
What goes in, comes out.


A simple application:
Potential divider
                                 V0
                           R2
                                                     V = V0 x (R1/(R1+R2))
                                             V

                           R1



There is a tacit assumption here that no current flows in the output.


CS1222 – Computer Technology     Basic Electricity                            Slide 2
Basic Laws
Ohm’s law (which should be familiar) is a very useful rule. Note that it only applies to resis-
tive loads however. The impedance of other passive components may vary with (e.g.) fre-
quency (e.g. capacitors) and many components do not obey this rule at all (diodes, transistors
etc.).
Resistance determines how much charge flows per second whe a voltage is applied. Resist-
ance is lower if the material the device is made from has many charges (normally electrons) in
it and if the charges can move easily through the material. Both of these depend on tempera-
ture.
Kirchoff’s law, which is common sense, states that the sum of currents at a join in wires is
always zero, i.e. any charge (current is a flow of charge) which goes in must come out some-
where.



Potential divider
The potential divider is a simple application of these laws.



                            R2



                                                     X

                            R1




The current through R1 must be the same as the current through R2. The voltage at point X can
therefore be found from the ratio of the two resistors.
The potential divider is a simple, cheap way of producing an arbitrary voltage. It is not always
the best way; consider what happens if something is connected to point X which sources or
sinks current.

Question. If R1=10Ω, R2=20Ω or if R1=10kΩ, R2=20kΩ the voltage at point X is the same.
What would be the reasons for choosing particular values for the resistors?



   Note: Resistor values are often written as (e.g.)47R, which means 47Ω (no Ω character
   available), 33K (33kΩ), or 1K5 (1.5kΩ). The last style is easier to interpret on a circuit
   diagram where a “.” may easily become lost after photocopying, with possibly traumatic
   results!
University of Manchester                            Department of Computer Science



                               Capacitors
A capacitor is a charge storage device.




It allows A.C. signals to pass through but blocks D.C. signals. Why?

The impedance of a capacitor is Zc = 1/ωC (ω = 2πf)

         o    A high frequency (ω = big) signal passes through easily
              (low impedance)
         o    A low frequency (ω = small) signal passes through with
              difficulty (high impedance)
         o    A D.C. (ω = 0) signal is blocked (infinite D.C. impedance)

A capacitor will charge/discharge with a delay proportional to RC
where C is the capacitor’s value and R is the charging (or
discharging) impedance.

Everything has some inherent capacitance.

Capacitance is usually the enemy in digital circuits, slowing down
signal edges and therefore circuit operation:-(

CS1222 – Computer Technology    Basic Electricity                          Slide 3
Capacitors
A capacitor is a charge storage device. It comprises two conducting plates separated by an
insulator. The charge (Q) stored is related to the voltage across the capacitor (V) by:
                                                      Q=CxV
Where C is the “Capacitance”. To change the voltage on a capacitor, charge must flow into or
out of the capacitor. In a circuit the charge flow rate is limited by any resistance present, so the
time taken for the voltage to change is given by T=RC, the ‘time constant’ of the circuit.

Simple filters
Think of the potential divider …



                                          R                                                    1 ⁄ ( ωC )
               C      Vout = ----------------------------- Vin
                                                         -                         Vout = ----------------------------- Vin
                                                                                                                      -
                             R + 1 ⁄ ( ωC )                                               R + 1 ⁄ ( ωC )
                                                                           R
   Vin                                            Vout           Vin                                              Vout

                     R                                                         C

      High pass                                                        Low pass



“Handwaving” explanation
The high pass filter only transmits high frequencies from input to output (low frequency cur-
rents are blocked by the capacitor). In the low pass filter the capacitor will ‘short’ any high fre-
quencies to ground, allowing only the lower frequencies to affect the output.
For those more interested calculate the ratio of input to output voltage for the circuits at two or
three trial frequencies - say ω = 1/(10RC), 1/(RC) and 10/(RC).

Capacitance is usually a Bad Thing in digital logic because it slows things down (voltages take
T=RC to change). It is exploited in some circumstances however:
      o Decoupling power supplies
      o DRAM storage elements
      o Dynamic CMOS logic (a form of VLSI circuit)


Types of capacitors
Capacitors come in many sizes, shapes and colours. Different capacitors can (should) be used
for different jobs. Capacitance is measured in farads. A farad is a big unit and typical devices
range from 1pF to 1000µF.
University of Manchester                                 Department of Computer Science



                                    Resistors
Resistors in series are added together – resistance increases.
                              R1 + R2
                               R1                       R2

In parallel resistance is reduced
                                           R
                                          R1

                                          R2                 1 = 1 + 1
                                                             R   R1  R2
In particular if R1 = R2 then R will be half of R1 (or R2).

                                Capacitors
Capacitors in parallel are added together – capacitance increases.
                              C1 + C2

                                      C1

                                      C2
In series capacitance is reduced.
                                           C

                           C1                      C2
                                                               1 = 1 + 1
                                                               C   C1  C2

CS1222 – Computer Technology        Basic Electricity                           Slide 4
Many
types of large value capacitors are polarised – i.e. they must be placed so that one terminal is
always more positive that the other. They will also have a voltage limit which should not be
exceeded. Failure to observe these restrictions will cause a failure of the circuit in the near
future.
University of Manchester                           Department of Computer Science



                               Inductors



An inductor is a device that tries to keep a constant current flowing
through itself.


As electronic components inductors are bulky and much rarer than
resistors or capacitors. However the property of inductance is real
and some appreciation of it is needed.


Many electrical components are highly inductive:
         •    motors
         •    transformers
         •    relay drivers


The impedance of an inductor is given by:
                                 ZL = ω.L
i.e. zero at D.C. and increasing with frequency


Everything (e.g. wires) has some inherent inductance.



CS1222 – Computer Technology   Basic Electricity                          Slide 5
Resistance in VLSI
Most VLSI circuits do not contain components that are explicit resistors. However all materi-
als (other than superconductors) have some resistance to the flow of electricity.


All the wires and, particularly, the ‘channels’ of the transistors on a VLSI chip have some
resistance and this influences the design of the device. In general a higher resistance causes a
gate to switch more slowly.


Resistances add when connected in series. This means that:
     o two (or more) series transistors have a higher resistance than one, alone.
     o more series transistors cause the circuit to go more slowly.


It is also resistors (or, rather, components with resistance) which dissipate power. The power
dissipation in a (pure) resistor is given by:
                                                V2
                                         P =       = I2 R
                                                R
However it is rare that this is a concern in VLSI circuits; it is more important to measure the
energy transfer each time a gate switches.



                              Capacitance in VLSI
Most VLSI circuits do not contain components that are explicit capacitors (although they are
occasionally included). However all wires, transistors etc. have some capacitance. Particularly
important contributions come from the MOSFET gates (described later).


Capacitances add when placed in parallel. This means that the capacitance of a network
increases if it is connected to more things (higher fan-out).
     o more connections cause the circuit to slow down.


The energy stored on a capacitor is given by:
                                                1
                                         E =      C V2
                                                2
More importantly the energy transferred by cycling a capacitor from 0 ⇒ V ⇒ 0 is:
                                          E = C V2
     o more connections ⇒ more capacitance ⇒ more energy per cycle
       ⇒ more power dissipation
University of Manchester                                    Department of Computer Science



                               Electric Fields

         o    Like charges repel
         o    Unlike charges attract


An electric field exists between any two objects at different voltages.


Electrons (negative) will move (if they can) in an electric field.


    –   –    –    –        + + + +              –       –   –   –      + + + +

                            electrons


            Electron movement                                Electric field


The redistribution of electrons in an electric field is the key to the
operation of the Field Effect Transistor (FET).


A change in electric field arises from a redistribution of charge
(i.e. a current flow).




CS1222 – Computer Technology        Basic Electricity                              Slide 6
Inductors
     o A capacitor is a device which stores energy in its charge.
     o An inductor is a device which stores energy in a magnetic field (due to its current).
Energy cannot change instantly (implies infinite power dissipation)
      o A capacitor ‘acts’ to keep a constant charge (voltage) across its terminals.
      o An inductor ‘acts’ to keep a constant current flowing through itself.


Inductance in electronics is the property analogous to inertia in mechanical systems (keeps
things moving).



                                 Inductance in VLSI
Inductance does not form an explicit part of VLSI design. It is generally seen as undesirable
and the effects of inductance are usually negligible.


The only circuits of direct interest which exploit or suffer from inductance are power supplies.
      Inductance is exploited in transformers to change the supply voltage (usually
      from 230V to something ~5V).
      The properties of digital circuits are such that they are required to either remain
      static or switch rapidly from one digital state to another. This means that electric
      currents should turn on and off quickly. Inductance opposes this.
      This is an especial problem for the power supply wires: firstly these have to be led
      into the chip over a (comparatively) long distance, and secondly they carry the
      accumulated current for many signal switching transitions.
      This change in current in the inductive wires gives rise to voltage changes (spikes).
      These can cause interference or ‘cross talk” between devices, and can also be used
      to dicover the operation of devices - e.g. cracking codes of smart cards by measur-
      ing current flows and voltage spikes on power supplies.

Effect of inductance and capacitance on a digital signal
When an inductance and a capacitance get together an oscillator results; thus any disturbance
in the circuit conditions causes ringing until the inherent resistance damps this down. This can
be seen on all signal and power supply wires in digital circuits; it is undesirable, but inevitable.
                                              1         1 Inductance reluctant to let edge start
                                              2         2 Edge slowed by capacitance
   Theory                       Reality
                                                  4     3 Inductance drives overshoot
                                          3             4 Damped oscillation
University of Manchester                           Department of Computer Science




CS1222 – Computer Technology   Basic Electricity
Electromagnetic Radiation
The electromagnetic spectrum:
                   Mobile              v = f.λ = 3 x 108 m/s                  f = 1 GHz, λ = 3 cm
                  ’phones
                                        Frequency f (Hz)
    106           108        1010       1012       1014                    1016             1018         1020




                                                         Visible
          Radio            Microwave         Infra red             Ultra violet          X-ray      Gamma ray



       10           10-1        10-3       10-5       10-7                        10-9           10-11     10-13
                                        Wavelength λ (m)

          CPU frequencies                         VLSI Transistors

Electromagnetic radiation is used for a huge variety of tasks and the radio spectrum is very
crowded. The use of the radio spectrum is carefully controlled and rationed.

An electromagnetic wave consists of an alternating electric and an alternating magnetic field;
one transfers its energy to the other and vice versa. They can be generated by accelerating
charge; another way of stating this is that electromagnetic waves can be generated by alternat-
ing a current.
Digital circuits switch currents continuously. As these flow along wires (aerials) they emit
radiation. This unwanted radiation creates ElectroMagnetic Interference (EMI). As proces-
sor speeds approach many of the frequencies used for mobile communications (and harmonics
will stretch further up the spectrum) there can be a serious problem maintaining ElectroMag-
netic Compatibility (EMC) both with other computer equipment (a transmitting aerial also
receives outside interference) and other radio equipment.

Points to remember:
     o radio waves will not penetrate a conductor (e.g. metal box)
     o radio waves will go through holes of about their wavelength (or larger)
          m A computer monitor displaying 1280 x 1024 pixels at 75 frames per second has
             a bit rate of about 100 MHz. It’s E.M. emissions have λ ~ 30 cm and will pass
             easily through a window (can be detected in the street....)
     o radio transmission (and reception) works best with an aerial of about a wavelength
          m power supply wiring is particularly good at this as are (e.g.) keyboard cables

Weitere ähnliche Inhalte

Was ist angesagt?

Agri crops learners module
Agri crops learners moduleAgri crops learners module
Agri crops learners module
PRINTDESK by Dan
 
Lesson plan in baking
Lesson plan in bakingLesson plan in baking
Lesson plan in baking
Janet Dicen
 
7_8. TLE Agricultural Crop Production Quarter 1 Module 1_ Farm Tools, Equipme...
7_8. TLE Agricultural Crop Production Quarter 1 Module 1_ Farm Tools, Equipme...7_8. TLE Agricultural Crop Production Quarter 1 Module 1_ Farm Tools, Equipme...
7_8. TLE Agricultural Crop Production Quarter 1 Module 1_ Farm Tools, Equipme...
JENNYROSEMOJICA
 

Was ist angesagt? (20)

Fact and opinion
Fact and opinionFact and opinion
Fact and opinion
 
Detailed lesson plan in Automotive by: jovanni
Detailed lesson plan in Automotive by: jovanniDetailed lesson plan in Automotive by: jovanni
Detailed lesson plan in Automotive by: jovanni
 
Republic Act No. 9293.pptx
Republic Act No. 9293.pptxRepublic Act No. 9293.pptx
Republic Act No. 9293.pptx
 
DLL in TLE CROP PRODUCTION G8-7.doc
DLL in TLE CROP PRODUCTION G8-7.docDLL in TLE CROP PRODUCTION G8-7.doc
DLL in TLE CROP PRODUCTION G8-7.doc
 
TLE/ HE Beauty Care Curriculum Guide
TLE/ HE Beauty Care Curriculum GuideTLE/ HE Beauty Care Curriculum Guide
TLE/ HE Beauty Care Curriculum Guide
 
Sewing and textile literacy
Sewing and textile literacySewing and textile literacy
Sewing and textile literacy
 
Competent Teachers: Good Community Link
Competent Teachers: Good Community LinkCompetent Teachers: Good Community Link
Competent Teachers: Good Community Link
 
Lesson 6 care of your clothes
Lesson 6 care of your clothesLesson 6 care of your clothes
Lesson 6 care of your clothes
 
Agri crops learners module
Agri crops learners moduleAgri crops learners module
Agri crops learners module
 
Multitester
MultitesterMultitester
Multitester
 
Carpentry
CarpentryCarpentry
Carpentry
 
Lesson plan in baking
Lesson plan in bakingLesson plan in baking
Lesson plan in baking
 
Consumer Electronics Servicing lessson 1.pptx
Consumer Electronics Servicing lessson 1.pptxConsumer Electronics Servicing lessson 1.pptx
Consumer Electronics Servicing lessson 1.pptx
 
EsP 10 Curriculum Guide cg rev.2016
EsP 10 Curriculum Guide cg rev.2016EsP 10 Curriculum Guide cg rev.2016
EsP 10 Curriculum Guide cg rev.2016
 
7_8. TLE Agricultural Crop Production Quarter 1 Module 1_ Farm Tools, Equipme...
7_8. TLE Agricultural Crop Production Quarter 1 Module 1_ Farm Tools, Equipme...7_8. TLE Agricultural Crop Production Quarter 1 Module 1_ Farm Tools, Equipme...
7_8. TLE Agricultural Crop Production Quarter 1 Module 1_ Farm Tools, Equipme...
 
Animal production lm
Animal production lmAnimal production lm
Animal production lm
 
EIM 7/8 Lesson 2: Perform Mensuration and Calculation
EIM 7/8 Lesson 2: Perform Mensuration and CalculationEIM 7/8 Lesson 2: Perform Mensuration and Calculation
EIM 7/8 Lesson 2: Perform Mensuration and Calculation
 
Dressmaking Module 1 for TLE 7
Dressmaking Module 1 for TLE 7Dressmaking Module 1 for TLE 7
Dressmaking Module 1 for TLE 7
 
Majorship tle-2
Majorship tle-2Majorship tle-2
Majorship tle-2
 
EIM 7/8 Lesson 1: Prepare Electrical Tools and Materials
EIM 7/8 Lesson 1: Prepare Electrical Tools and MaterialsEIM 7/8 Lesson 1: Prepare Electrical Tools and Materials
EIM 7/8 Lesson 1: Prepare Electrical Tools and Materials
 

Ähnlich wie Let basic electricity

Ee study notes
Ee study notesEe study notes
Ee study notes
CK Yang
 
(Ex 9915) lrc circuit
(Ex 9915) lrc circuit(Ex 9915) lrc circuit
(Ex 9915) lrc circuit
Dewi Fitri
 
Kirchhoff's rules and rc circuits
Kirchhoff's rules and rc circuitsKirchhoff's rules and rc circuits
Kirchhoff's rules and rc circuits
ramamaii
 
Capacitor experiment
Capacitor experimentCapacitor experiment
Capacitor experiment
philipkitheka
 
08_electronics.basics and introduction12
08_electronics.basics and introduction1208_electronics.basics and introduction12
08_electronics.basics and introduction12
vikknaguem
 

Ähnlich wie Let basic electricity (20)

Basics-and-Applications-of-impedance.pptx
Basics-and-Applications-of-impedance.pptxBasics-and-Applications-of-impedance.pptx
Basics-and-Applications-of-impedance.pptx
 
Lecture 29 ac circuits. phasors.
Lecture 29   ac circuits. phasors.Lecture 29   ac circuits. phasors.
Lecture 29 ac circuits. phasors.
 
Resonant Response of RLC Circuits
Resonant Response of RLC Circuits Resonant Response of RLC Circuits
Resonant Response of RLC Circuits
 
science_12.pdf
science_12.pdfscience_12.pdf
science_12.pdf
 
Ee study notes
Ee study notesEe study notes
Ee study notes
 
unit 2.ppt
unit 2.pptunit 2.ppt
unit 2.ppt
 
Transient response of RC , RL circuits with step input
Transient response of RC , RL circuits  with step inputTransient response of RC , RL circuits  with step input
Transient response of RC , RL circuits with step input
 
Engineering science lesson 8 1
Engineering science lesson 8 1Engineering science lesson 8 1
Engineering science lesson 8 1
 
Engineering science lesson 8
Engineering science lesson 8Engineering science lesson 8
Engineering science lesson 8
 
module5.pdf
module5.pdfmodule5.pdf
module5.pdf
 
(Ex 9915) lrc circuit
(Ex 9915) lrc circuit(Ex 9915) lrc circuit
(Ex 9915) lrc circuit
 
Kirchhoff's rules and rc circuits
Kirchhoff's rules and rc circuitsKirchhoff's rules and rc circuits
Kirchhoff's rules and rc circuits
 
2 ohms law
2   ohms law2   ohms law
2 ohms law
 
ac circuit
ac circuitac circuit
ac circuit
 
Capacitor experiment
Capacitor experimentCapacitor experiment
Capacitor experiment
 
Bridge ppt 1
Bridge ppt 1Bridge ppt 1
Bridge ppt 1
 
rangkaian am dan fm
rangkaian am dan fmrangkaian am dan fm
rangkaian am dan fm
 
applications of differential equations in RL-RC electrical circuit problems
applications of differential equations in RL-RC electrical circuit problemsapplications of differential equations in RL-RC electrical circuit problems
applications of differential equations in RL-RC electrical circuit problems
 
Physics chapter 22 & 23
Physics chapter 22 & 23Physics chapter 22 & 23
Physics chapter 22 & 23
 
08_electronics.basics and introduction12
08_electronics.basics and introduction1208_electronics.basics and introduction12
08_electronics.basics and introduction12
 

Kürzlich hochgeladen

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 

Kürzlich hochgeladen (20)

GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 

Let basic electricity

  • 1. University of Manchester Department of Computer Science Basic Electricity The intention of this lecture is to describe basic electrical characteristics in a qualitative way. Lecture objectives: o provide some basic knowledge of analogue electronics o to give some “feel” for electronic effects on digital circuits Much of the following theory should be familiar; what may be new is some of its application. Note: Much of the ‘skill’ is to understand the associated jargon, especially as terminology is often used for things not directly related to its strict definition. For example “D.C.” literally refers to Direct Current, an electrical current which always flows in the same direction. It is loosely used to describe any value (electrical or otherwise) which does not vary with time. CS1222 – Computer Technology Basic Electricity Slide 1
  • 2. Electrical Basics What is … Charge? Charge is measured in coulombs and is the amount of “electricity” present (or flowing). Charge can be positive or negative. Like charges repel each other. Unlike charges attract each other. In the vicinity of a charge there is an electric field. The field points in the direction that a posi- tive charge would move. Charge moves about and may be stored (e.g. in a capacitor or battery). Current? (A.C. ? D.C.?) Current is a flow of charge; the rate of movement of charge through a system. It is analogous to the flow of water in a hydraulic system (in litres/s). It is measured in amps; an amp is quite big. A.C. is alternating current, where the current flows first one way then the other (repeatedly). This does not mean it cannot transmit energy. D.C. is Direct Current where a current flows in the same direction at all times (normally implies constant value as well as direction). Voltage? Voltage is electrical “pressure”. It is analogous to the pressure of a hydraulic system (say like the height of a reservoir). Voltage is measured in volts; contrary to media opinion, volts do not flow. Impedance is the ‘resistance’ to current flow. It is a very important concept in any electrical circuit. For instance the (internal) impedance of a gate’s output should be low so that it may drive its output more easily. The input impedance of a gate should be high so that it may be driven easily (without it absorbing a large current, which would lead to a high power loss). Impedance is a general term. For many applications ‘resistance’ is equally applicable, how- ever capacitors and inductors have different properties. Energy is a measure of work done. Power is the work done per unit time. Thus if a battery contains so much energy it can power something for a particular time. If the power needs of the equipment is reduced then the same energy can power it for longer. (These two terms are not restricted to electrical circuits.)
  • 3. University of Manchester Department of Computer Science Ohm’s Law V=IxR This is only true for resistive loads. Most loads are more complex than this. In general: V=IxZ where Z is the impedance of the load. This may depend (for example) on the frequency of an A.C. signal. Kirchhoff’s Current law What goes in, comes out. A simple application: Potential divider V0 R2 V = V0 x (R1/(R1+R2)) V R1 There is a tacit assumption here that no current flows in the output. CS1222 – Computer Technology Basic Electricity Slide 2
  • 4. Basic Laws Ohm’s law (which should be familiar) is a very useful rule. Note that it only applies to resis- tive loads however. The impedance of other passive components may vary with (e.g.) fre- quency (e.g. capacitors) and many components do not obey this rule at all (diodes, transistors etc.). Resistance determines how much charge flows per second whe a voltage is applied. Resist- ance is lower if the material the device is made from has many charges (normally electrons) in it and if the charges can move easily through the material. Both of these depend on tempera- ture. Kirchoff’s law, which is common sense, states that the sum of currents at a join in wires is always zero, i.e. any charge (current is a flow of charge) which goes in must come out some- where. Potential divider The potential divider is a simple application of these laws. R2 X R1 The current through R1 must be the same as the current through R2. The voltage at point X can therefore be found from the ratio of the two resistors. The potential divider is a simple, cheap way of producing an arbitrary voltage. It is not always the best way; consider what happens if something is connected to point X which sources or sinks current. Question. If R1=10Ω, R2=20Ω or if R1=10kΩ, R2=20kΩ the voltage at point X is the same. What would be the reasons for choosing particular values for the resistors? Note: Resistor values are often written as (e.g.)47R, which means 47Ω (no Ω character available), 33K (33kΩ), or 1K5 (1.5kΩ). The last style is easier to interpret on a circuit diagram where a “.” may easily become lost after photocopying, with possibly traumatic results!
  • 5. University of Manchester Department of Computer Science Capacitors A capacitor is a charge storage device. It allows A.C. signals to pass through but blocks D.C. signals. Why? The impedance of a capacitor is Zc = 1/ωC (ω = 2πf) o A high frequency (ω = big) signal passes through easily (low impedance) o A low frequency (ω = small) signal passes through with difficulty (high impedance) o A D.C. (ω = 0) signal is blocked (infinite D.C. impedance) A capacitor will charge/discharge with a delay proportional to RC where C is the capacitor’s value and R is the charging (or discharging) impedance. Everything has some inherent capacitance. Capacitance is usually the enemy in digital circuits, slowing down signal edges and therefore circuit operation:-( CS1222 – Computer Technology Basic Electricity Slide 3
  • 6. Capacitors A capacitor is a charge storage device. It comprises two conducting plates separated by an insulator. The charge (Q) stored is related to the voltage across the capacitor (V) by: Q=CxV Where C is the “Capacitance”. To change the voltage on a capacitor, charge must flow into or out of the capacitor. In a circuit the charge flow rate is limited by any resistance present, so the time taken for the voltage to change is given by T=RC, the ‘time constant’ of the circuit. Simple filters Think of the potential divider … R 1 ⁄ ( ωC ) C Vout = ----------------------------- Vin - Vout = ----------------------------- Vin - R + 1 ⁄ ( ωC ) R + 1 ⁄ ( ωC ) R Vin Vout Vin Vout R C High pass Low pass “Handwaving” explanation The high pass filter only transmits high frequencies from input to output (low frequency cur- rents are blocked by the capacitor). In the low pass filter the capacitor will ‘short’ any high fre- quencies to ground, allowing only the lower frequencies to affect the output. For those more interested calculate the ratio of input to output voltage for the circuits at two or three trial frequencies - say ω = 1/(10RC), 1/(RC) and 10/(RC). Capacitance is usually a Bad Thing in digital logic because it slows things down (voltages take T=RC to change). It is exploited in some circumstances however: o Decoupling power supplies o DRAM storage elements o Dynamic CMOS logic (a form of VLSI circuit) Types of capacitors Capacitors come in many sizes, shapes and colours. Different capacitors can (should) be used for different jobs. Capacitance is measured in farads. A farad is a big unit and typical devices range from 1pF to 1000µF.
  • 7. University of Manchester Department of Computer Science Resistors Resistors in series are added together – resistance increases. R1 + R2 R1 R2 In parallel resistance is reduced R R1 R2 1 = 1 + 1 R R1 R2 In particular if R1 = R2 then R will be half of R1 (or R2). Capacitors Capacitors in parallel are added together – capacitance increases. C1 + C2 C1 C2 In series capacitance is reduced. C C1 C2 1 = 1 + 1 C C1 C2 CS1222 – Computer Technology Basic Electricity Slide 4 Many
  • 8. types of large value capacitors are polarised – i.e. they must be placed so that one terminal is always more positive that the other. They will also have a voltage limit which should not be exceeded. Failure to observe these restrictions will cause a failure of the circuit in the near future.
  • 9. University of Manchester Department of Computer Science Inductors An inductor is a device that tries to keep a constant current flowing through itself. As electronic components inductors are bulky and much rarer than resistors or capacitors. However the property of inductance is real and some appreciation of it is needed. Many electrical components are highly inductive: • motors • transformers • relay drivers The impedance of an inductor is given by: ZL = ω.L i.e. zero at D.C. and increasing with frequency Everything (e.g. wires) has some inherent inductance. CS1222 – Computer Technology Basic Electricity Slide 5
  • 10. Resistance in VLSI Most VLSI circuits do not contain components that are explicit resistors. However all materi- als (other than superconductors) have some resistance to the flow of electricity. All the wires and, particularly, the ‘channels’ of the transistors on a VLSI chip have some resistance and this influences the design of the device. In general a higher resistance causes a gate to switch more slowly. Resistances add when connected in series. This means that: o two (or more) series transistors have a higher resistance than one, alone. o more series transistors cause the circuit to go more slowly. It is also resistors (or, rather, components with resistance) which dissipate power. The power dissipation in a (pure) resistor is given by: V2 P = = I2 R R However it is rare that this is a concern in VLSI circuits; it is more important to measure the energy transfer each time a gate switches. Capacitance in VLSI Most VLSI circuits do not contain components that are explicit capacitors (although they are occasionally included). However all wires, transistors etc. have some capacitance. Particularly important contributions come from the MOSFET gates (described later). Capacitances add when placed in parallel. This means that the capacitance of a network increases if it is connected to more things (higher fan-out). o more connections cause the circuit to slow down. The energy stored on a capacitor is given by: 1 E = C V2 2 More importantly the energy transferred by cycling a capacitor from 0 ⇒ V ⇒ 0 is: E = C V2 o more connections ⇒ more capacitance ⇒ more energy per cycle ⇒ more power dissipation
  • 11. University of Manchester Department of Computer Science Electric Fields o Like charges repel o Unlike charges attract An electric field exists between any two objects at different voltages. Electrons (negative) will move (if they can) in an electric field. – – – – + + + + – – – – + + + + electrons Electron movement Electric field The redistribution of electrons in an electric field is the key to the operation of the Field Effect Transistor (FET). A change in electric field arises from a redistribution of charge (i.e. a current flow). CS1222 – Computer Technology Basic Electricity Slide 6
  • 12. Inductors o A capacitor is a device which stores energy in its charge. o An inductor is a device which stores energy in a magnetic field (due to its current). Energy cannot change instantly (implies infinite power dissipation) o A capacitor ‘acts’ to keep a constant charge (voltage) across its terminals. o An inductor ‘acts’ to keep a constant current flowing through itself. Inductance in electronics is the property analogous to inertia in mechanical systems (keeps things moving). Inductance in VLSI Inductance does not form an explicit part of VLSI design. It is generally seen as undesirable and the effects of inductance are usually negligible. The only circuits of direct interest which exploit or suffer from inductance are power supplies. Inductance is exploited in transformers to change the supply voltage (usually from 230V to something ~5V). The properties of digital circuits are such that they are required to either remain static or switch rapidly from one digital state to another. This means that electric currents should turn on and off quickly. Inductance opposes this. This is an especial problem for the power supply wires: firstly these have to be led into the chip over a (comparatively) long distance, and secondly they carry the accumulated current for many signal switching transitions. This change in current in the inductive wires gives rise to voltage changes (spikes). These can cause interference or ‘cross talk” between devices, and can also be used to dicover the operation of devices - e.g. cracking codes of smart cards by measur- ing current flows and voltage spikes on power supplies. Effect of inductance and capacitance on a digital signal When an inductance and a capacitance get together an oscillator results; thus any disturbance in the circuit conditions causes ringing until the inherent resistance damps this down. This can be seen on all signal and power supply wires in digital circuits; it is undesirable, but inevitable. 1 1 Inductance reluctant to let edge start 2 2 Edge slowed by capacitance Theory Reality 4 3 Inductance drives overshoot 3 4 Damped oscillation
  • 13. University of Manchester Department of Computer Science CS1222 – Computer Technology Basic Electricity
  • 14. Electromagnetic Radiation The electromagnetic spectrum: Mobile v = f.λ = 3 x 108 m/s f = 1 GHz, λ = 3 cm ’phones Frequency f (Hz) 106 108 1010 1012 1014 1016 1018 1020 Visible Radio Microwave Infra red Ultra violet X-ray Gamma ray 10 10-1 10-3 10-5 10-7 10-9 10-11 10-13 Wavelength λ (m) CPU frequencies VLSI Transistors Electromagnetic radiation is used for a huge variety of tasks and the radio spectrum is very crowded. The use of the radio spectrum is carefully controlled and rationed. An electromagnetic wave consists of an alternating electric and an alternating magnetic field; one transfers its energy to the other and vice versa. They can be generated by accelerating charge; another way of stating this is that electromagnetic waves can be generated by alternat- ing a current. Digital circuits switch currents continuously. As these flow along wires (aerials) they emit radiation. This unwanted radiation creates ElectroMagnetic Interference (EMI). As proces- sor speeds approach many of the frequencies used for mobile communications (and harmonics will stretch further up the spectrum) there can be a serious problem maintaining ElectroMag- netic Compatibility (EMC) both with other computer equipment (a transmitting aerial also receives outside interference) and other radio equipment. Points to remember: o radio waves will not penetrate a conductor (e.g. metal box) o radio waves will go through holes of about their wavelength (or larger) m A computer monitor displaying 1280 x 1024 pixels at 75 frames per second has a bit rate of about 100 MHz. It’s E.M. emissions have λ ~ 30 cm and will pass easily through a window (can be detected in the street....) o radio transmission (and reception) works best with an aerial of about a wavelength m power supply wiring is particularly good at this as are (e.g.) keyboard cables