数字电子技术复习
Purpose of the Course: The primary objective of this digital circuits course is to bridge the gap between human language and machine understanding. It aims to enable computers to comprehend and process information in a way that is analogous to human communication. Fundamentals of Digital Circuits:
- Logic Operations: The course begins with the mastery of logic operations, which are the building blocks of digital circuits. Understanding how these operations work is crucial for designing and analyzing digital systems.
- Combinational Logic Circuits: By combining logic operations, we create combinational logic circuits. These circuits produce outputs solely based on the current inputs, without any memory of past inputs.
- Sequential Logic Circuits: Introducing the concept of time into digital circuits leads to the creation of sequential logic circuits. These circuits not only consider the current inputs but also maintain a memory of past inputs, which allows for more complex operations and functionalities.
- Usage of the Study Material:
- This material is a concise compilation of the knowledge points required for your exams. It is designed to provide you with a clear and focused overview of the essential concepts.
- Understanding Circuits: For the diagrams and circuits presented, it is important to grasp their functions and applications. This will help you to not only memorize the components but also to apply them in practical scenarios.
Intro
- Analog quantity -- continuous values
- Digital quantity -- discrete set of values
- DAC: Digital Analog
- ADC: Analog Digital
- Bit: each of the two digits in the binary system
- Positive logic: high-1 low-0
- Negative logic: high-0 low-1
- A voltage in the unacceptable range can appear as either a HIGH or a LOW to a given circuit.
- Rising/Falling Leading/Trailing edge
- Pulse
- Waveform Charcteristics:
- periodic / nonperiodic
- Duty cycle:
- Frequency:
- period:
- Each bit in a sequence occupies a defined time interval called a bit time.
- Data Transfer
- Serial: one bit at a time along a single line
- Parallel: all the bits in a group are sent out on separate lines at the same time.
Number Systems/Operations/Codes
- 是进制, 是第 位的系数,等式另一端的 是 位的权重。
- Conversion of number systems
- Division-by-2 / Multiplication-by-2 (for four significant digits)
- Binary arithmetic
- 1's complement: changing all 1s to 0s and all 0s to 1s
- 2's complement = 1's complement + 1
- positive number 's complement is itself.
- Sign Bit : 0-positive 1-negative
- For signed numbers: add negative number = add 2's complement(or 1's complement + 1)
- Range of Signed Integer Numbers: There is one less positive number than there are negative numbers because zero is represented as a positive number (all zeros).
- BCD Code
- If a 4-bit sum is greater than 9, or if a carry out of the 4-bit group is generated, it is an invalid result. Add 6 (0110) to the 4-bit sum in order to skip the six invalid states and return the code to 8421
- Gray Code
- B2G:
- G2B:
- Conclusion: add binary numbers
- B2G:
- Parity method for error detection
- Explain
- BCD codes
- Single-Precision Floating-Point Binary Numbers
- Format:
- Formula: Number
- 0 is represented by all 0s
- Infinity is represented by all 1s in the exponent and all 0s in the mantissa
- Format:
Logic Gates and Boolean Algebra
- AND:
- Logic signal:
- OR:
- Logic signal:
- NOT:
- Logic signal:
- NAND:
- NOR:
- XOR
- Logic signal:
- XNOR (exclusive-NOR) :
- DeMorgan's theorems
- SOP: Sum-of-product:
- POS: Product-of-sum:
- SOP→POS:
- Standard/minimum is different from each other.
- Karnaugh Map
- 00/01/11/10
- SOP → 1
- POS → 0
- Be careful that and is adjacent
- Others
- Bubble: bubble appearing on the input/output → 0/LOW is the active or asserted input/output state.
- Pin Numbering:
- Performance Characteristics and Parameters
- propagation delay time( ,the time interval between the transition of an input pulse and the occurrence of the resulting transition of the output pulse)
- High to Low
- Low to High
- delays measured between the points of the corresponding edges of input/output
- Power Dissipation()
- SPP(Speed-Power Product)
- Fan out(for bipolar logic):maximum number of inputs of the same series in an IC family that can be connected to a gate's output and still maintain teh output voltage levels within specified limits.
- specified in terms of unit loads
- propagation delay time( ,the time interval between the transition of an input pulse and the occurrence of the resulting transition of the output pulse)
Combinational Logic
- Basic Combinational Logic Circuits
- AND-OR Logic:
- AND-OR-Invert Logic:
- Exclusive-OR Logic:
- Exclusive-NOR Logic:
- Dual operation
Functions
Half-Adder
is sum and is carry.
Full-Adder
Parallel Binary Adders
- A group of four bits is called a nibble
Ripple Carry and Look-Ahead Carry Adders
- Reason: The speed with which an addition can be performed is limited by the time required for the carries to propagate, or ripple, through all the stages of a parallel adder.(Explainaiton:About Look-Ahead Carry Adders)
- Look-Ahead Carry Adders
- Carry generation
- Carry propagation
- not changed
Comparators
Notice the comparator on the left has LOW input on the and , and HIGH input on the .
Encoder
Priority Encoder
- ignore any other lower-order active inputs
- 16-4 priority encoder
Decoders
74HC154
When and is HIGH, the is activated.
BCD/7-seg
- Lamp Test:
- LOW: (input)
- HIGH: (output)
- seven segment in the display are turned on
- Zero Supression
- share the same pin.
- When is LOW and BCD inputs is zero code, all of the segment outputs of the decoder are nonactive(HIGH),and is LOW.
- Supression's Next's (十位数,从左到右;分数,从右到左)
- is LOW, all segment outputs are nonactive(HIGH)
Code Converters
BCD-to-Binary
Binary-to-Gray / Gray-to-Binary
- B2G
- G2B
Multiplexers
8-to-16
7-seg display multiplexer
Logic Function Generator
DeMux
Parity generators/checkers
Generators
Checker
Latches, Filp-Flops, and Timers
Latches
Active-High S-R Latch
0 | 0 | Remains | |
1 | 0 | 0 | Reset |
0 | 1 | 1 | Set |
1 | 1 | Invalid(0) |
- is HIGH, the output in controlled by the state of S and R; is LOW, the output is not affected(stay same)
- Application: Contact-Bounce Eliminator
D Latch
- When is 0, stay the same
- When is 1,
Flip-Flops
- Latch/Flip-Flops: Flip-Flops has CLK, Latch only have
Master-Slave Flip-Flops
- 下降沿状态(如果为0/0),就往前追溯
Edge-triggered flip-flop
- set 1; set 0
- Edge-Triggered Operation
Operating Characteristics
- Propagation Delay Times
- Set-up Time
- minimum interval required for the logic levels to be maintained constantly on the inputs
- minimum interval required for the logic levels to be maintained constantly on the inputs
- Hold Time
- minimum interval required for the logic levels to remain on the inputs after the triggering edge of the clock pulse in order for the levels to be reliably clocked into the flip-flop.
- minimum interval required for the logic levels to remain on the inputs after the triggering edge of the clock pulse in order for the levels to be reliably clocked into the flip-flop.
- Maximum Clock Frequency
- highest rate at which a flip-flop can be reliably triggered
- Pulse Widths
Application
- Parallel Data Storage
- Frequency Division
- is the number of flip-flops, a frequency division of is achieved.important
- counting
One-shots
- Nonretriggerable
- Retriggerable
- Can use some one-shots to make a sequential timing circuit
555 timer
One-Shot Operation
- :
Schmitt trigger
- , RESET, is HIGH
- , SET, is LOW
The Astable Multivibrator
-
reach , goes LOW; reach , goes HIGH
-
-
Charge: ()
-
Discharge: ()
-
-
-
-
如果 那边接了东西:
Achieve duty cycles less than 50%
Counters
- Finate State Machines
- Moore machine: Outputs only depend on the current state.
- Mealy machine: Output depend on current state and inputs.
- Moore machine: Outputs only depend on the current state.
- Asynchronous / Synchronous
- Asynchronous: because of the inhernet propagation delay time through a flip-flop(or other), the flip-flops are never simultaneously triggered.
- Decade Counters: 1010 0000, producing a glitch(a false or spurious electronic signal)
- Propagation Delay
- Bit asynchronous binary counter, propagation delay ,
- Synchronous: with a same CLK
- Decade Counters: 1001 0000
- 74HC163:
- : resets all four flip-flops(+ synchronous)
- : assume the state of the data inputs(+ )
- / (or called (terminal count)): both HIGH for sequence through; at least one input LOW, counter disabled.
- goes HIGH, when counter reaches the last state(terminal count)
- 74HC160
- : asynchronous
- UP/DOWN Synchronous Counters(74HC190)
- : produces HIGH pulse when reach max/min number
- : count enable
- Asynchronous: because of the inhernet propagation delay time through a flip-flop(or other), the flip-flops are never simultaneously triggered.
Cascaded Counters
- modulus: multiple all the modulue
- Truncated Sequences :
- Set zero:
- Synchronous:
- Asynchronous:
- Set number:
- Synchronous: jump over states
- Asynchronous: jump over
- Set zero:
- decoding glitches:
- using strobing
- using strobing
Design of a state machine
- Transition table for a J-K filp-flop
0 | 0 | 0 | X |
0 | 1 | 1 | X |
1 | 0 | X | 1 |
1 | 1 | X | 0 |
- Model of a Sequential Circuit:
- Excitation Equation:
- Equation of JK/D/etc.
- State Equation(add these two together )
- Output equation:
提示
- 注意是否有小圆圈
- dual 对偶
- 分清 encoder 和 decoder
- 注意 state diagram 里面 的顺序
- LSB--least significant bit
- bistable 双稳态
- monostable 单稳态
- astable multivibrator 非稳态多谐振荡器
- Flip-flops and latches are both bistable devices.
- 计数器记得算0