Download presentation
Presentation is loading. Please wait.
Published byGeorgina Thomas Modified over 9 years ago
1
Robocon 2007, Hong Kong University of Science & Technology Robocon 2007 Electronics Quickstart! Session 2 Prelude Logic Prepared by KI Chi Keung [chikeung @ ust.hk] WONG Long Sing (Sam) [sam @ hellosam.net]
2
Robocon 2007, HKUST Table of Contents 1.MOSFET 1.NMOS 2.PMOS 3.CMOS 2.Buffer 3.MCU Application
3
Robocon 2007, HKUST NMOS SymbolPhysical Cross Section See Wikipedia, MOSFET Gate Source Drain
4
Robocon 2007, HKUST NMOS V GS < V th Cut-off Mode V th = Thershold Voltage ≈ 1.5V (Model dependent) I DS = 0 Gate Source Drain
5
Robocon 2007, HKUST NMOS V GS > V th Linear Mode V DS > V GS - V th I DS will be large Gate Source Drain
6
Robocon 2007, HKUST PMOS Symbol Gate Drain Source
7
Robocon 2007, HKUST PMOS V GS < V th Cut-off Mode V th = Thershold Voltage ≈ -1.5V (Model dependent) I DS = 0 Gate Drain Source
8
Robocon 2007, HKUST PMOS V GS < V th Linear Mode V DS < V GS - V th I DS will be large Gate Drain Source
9
Robocon 2007, HKUST MOS Other commonly seen schematic symbols See Wikipedia, MOSFET N-channel P-channel
10
Robocon 2007, HKUST CMOS - Inverter Source Drain Not a new type of MOS, but It means combining the use of PMOS and NMOS to form interesting logic circuit Output Source Input
11
Robocon 2007, HKUST CMOS - Inverter Symbol Output Input
12
Robocon 2007, HKUST CMOS - Inverter Input High, Output Low 5V 0V 5V
13
Robocon 2007, HKUST CMOS - Inverter Input Low, Output High 5V 0V 5V 0V
14
Robocon 2007, HKUST Buffer Symbol Logically same as two inverters in serial Output Input Output Input
15
Robocon 2007, HKUST Buffer 5V 0V 5V 0V
16
Robocon 2007, HKUST Buffer 5V 0V 5V 0V 5V
17
Robocon 2007, HKUST Buffer With an appropriate buffer, we get a… Low impedance output Strong output Good output Internal resistance of the power source is low regardless of the input impedance.
18
Robocon 2007, HKUST Buffer with Enable Symbol Output Input Enable
19
Robocon 2007, HKUST Buffer with Enable Output Input Enable Transmission Gate
20
Robocon 2007, HKUST Buffer with Enable 5V
21
Robocon 2007, HKUST Buffer with Enable 0V 5V
22
Robocon 2007, HKUST Buffer with Enable Floating Hi-Z Hi-Impedance < 5V + V th > 0V - V th 5V 0V
23
Robocon 2007, HKUST MCU Application Device ADevice B PORT DDR PORT DDR
24
Robocon 2007, HKUST MCU Application Device A DDR = 1 PORT = 0 Device B DDR = 1 PORT = 0 0V 5V 0V 5V 0V
25
Robocon 2007, HKUST MCU Application Device A DDR = 1 PORT = 0 Device B DDR = 0 0V 5V X 0V
26
Robocon 2007, HKUST MCU Application Device A DDR = 1 PORT = 1 Device B DDR = 1 PORT = 0 5V 0V 5V ~2.5V
27
Robocon 2007, HKUST MCU Application Device A DDR = 0 Device B DDR = 0 X 0V X X
28
Robocon 2007, HKUST MCU Application – Pull Up Device ADevice B PORT DDR PIN PORT DDR PIN DDR | ~PORT
29
Robocon 2007, HKUST MCU Application – Pull Up Device A DDR = 0 PORT = 0 Device B DDR = 0 PORT = 0 0V X X 5V X
30
Robocon 2007, HKUST MCU Application – Pull Up Device A DDR = 0 PORT = 1 Device B DDR = 0 PORT = 0 0V 1 5V 0V 1 5V
31
Robocon 2007, HKUST MCU Application – Pull Up Device A DDR = 1 PORT = 0 Device B DDR = 0 PORT = 0 0V 0 5V 0 0V
32
Robocon 2007, HKUST MCU Application – Pull Up Device A DDR = 1 PORT = 1 Device B DDR = 0 PORT = 1 5V 0V 1 5V 1 0V 5V
33
Robocon 2007, HKUST MCU Application – Pull Up Device A DDR = 1 PORT = 0 Device B DDR = 0 PORT = 1 5V 0V 0 5V 0 0V
34
Robocon 2007, HKUST MCU Application – Pull Up Device A DDR = 1 PORT = 1 5V 1
35
Robocon 2007, HKUST MCU Application – Pull Up Device A DDR = 1 PORT = 1 5V X Tends to 0V
36
Robocon 2007, HKUST MCU Application – Pull Up Device A DDR = 0 PORT = 1 5V 0V 1 5V
37
Robocon 2007, HKUST MCU Application – Pull Up Device A DDR = 0 PORT = 1 5V 0V 0
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.