Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
16) Logic
17) Revision: Digital Signals
18) Introduction to Logic
19) Logic: Switches in Series
20) Logic: Switches in Parallel
21) Logic: Opposites!
22) Truth Tables
23) Logic Gates: AND
24) Logic Gates: OR
25) Logic Gates: NOT
26) Summary of Logic Gates and Truth Tables
Clock Signals
• (G) State that a digital circuit can produce a series of clock pulses.
• (C) Explain how a simple oscillator built from a Resistor, Capacitor and Inverter operates.
• (C) Describe how to change the frequency of a clock.
Counters
• (G) Give an example of a device containing a counter circuit.
• (G) State that there are circuits which can count digital pulses.
• (G) State that the output of the counter circuit is in binary.
• (G) State that the output of a binary counter can be converted to decimal.
Introducing Transistors
Collector
Base
Emitter
Transistor as a Switch
• Transistors can be used as switches.1
Electronics 4.4: Digital Processes
Transistor Switch
• Switching is
controlled by
the voltage
between the
Base Base and the
Emitter.
Emitter
X
12V
Variable
Voltage
Supply
a Thermistor.
• LED = Off.
• Heat the Thermistor.
• RThermistor ↓.
Input = Voltage Divider
• VThermistor ↓.
Process = Transistor
Output = LED • Voltage across 10kΩ resistor ↑.
• Transistor switches on.
• LED = On.
Transistor Circuit #2: Light-Controlled Circuit
• This transistor circuit contains
Electronics 4.4: Digital Processes
a Light-Dependent Resistor.
• LED = Off.
• Cover LDR.
• RLDR ↑.
• VLDR ↑.
Input = Voltage Divider
• Transistor switches on.
Process = Transistor
• LED = On.
Output = LED
1
Transistor Circuit #3: Time-Controlled Circuit
• This transistor circuit contains
Electronics 4.4: Digital Processes
a Capacitor.
Thermistor
LDR
Capacitor
1
Electronics 4.4: Digital Processes Logic
1
Electronics 4.4: Digital Processes Revision: Digital Signals
High Voltage
On 1
1
Logic: Switches in Series
S1 S2 Lit
Electronics 4.4: Digital Processes
0 0 0
0 1 0
1 0 0
1 1 1
S1 S2
1
Logic: Switches in Parallel
S1 S2 Lit
Electronics 4.4: Digital Processes
0 0 0
0 1 1
1 0 1
1 1 1
S1
S2
• The bulb will light under certain conditions: what?
S Lit
Electronics 4.4: Digital Processes
S 0 1
1 0
0 0 0 0 0 0 0 1
0 1 0 0 1 1 1 0
1 0 0 1 0 1
1 1 1 1 1 1
1
Logic Gates: AND
AND
Electronics 4.4: Digital Processes
Truth Table8,16
A B Q
0 0 0
0 1 0
Two-Input AND Gate5 1 0 0
1 1 1
OR
Electronics 4.4: Digital Processes
Truth Table8,16
A B Q
0 0 0
0 1 1
Two-Input OR Gate5 1 0 1
1 1 1
NOT
Electronics 4.4: Digital Processes
Truth Table8,16
A Q
0 1
1 0
NOT Gate5
Note that NOT gates have only one input.
0 0 0 0 0 0 0 1
0 1 0 0 1 1 1 0
1 0 0 1 0 1
1 1 1 1 1 1
Ignition
Switch 1
LED
Temperature 1
Sensor
pump when the house is cold and the Central Heating System is
turned on.
This time let’s find the truth table first: Truth Table
• House is Cold = 0 ; House is Hot = 1 House CHS Pump
• CHS is Off = 0; CHS is On = 1
Cold Off Off
Cold On On
Hot Off Off
Central Hot On Off
Heating
1
House CHS Pump
Pump
0 1 0 0 0
0 1 1
Temperature 1 0 0
Sensor
1 1 0
2
Logic Circuit #3: Greenhouse Heater
• Derive a logic circuit that will turn on a heater in a greenhouse only
Electronics 4.4: Digital Processes
Cold Night On
Cold Day Off
Hot Night Off
Light Hot Day Off
Sensor
0 1
Green D/N Heater
0 1 Heater 0 0 1
0 1 0
Temperature 1 0 0
Sensor
1 1 0
2
Summary of Combinational Logic Circuits
• Combinational Logic Circuits are simply combinations
Electronics 4.4: Digital Processes
•Start:
ASSUME THE
CAPACITOR IS
FULLY CHARGED.
1 2 3 4
3
Counting in Decimal
• Circuits called Binary-to-Decimal Convertors
Electronics 4.4: Digital Processes
Binary Decimal
0000
0001
0010
etc etc
0111
1000
1001
3
Devices using Counters
• You will be expected to name a device
Electronics 4.4: Digital Processes
• Summarise