ch 11 : ch. 11 : practical considerations for digital...

19
Ch 11 : Practical Ch. 11 : Practical Considerations for Digital Design

Upload: others

Post on 16-Apr-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Ch 11 : Ch. 11 : Practical Considerations for Digital Designstaff.ui.ac.id/system/files/users/marta/material/kbab11martarizal.pdf · AC line voltage because that line frequency is

Ch 11 : Practical Ch. 11 : Practical Considerations for Digital gDesign

Page 2: Ch 11 : Ch. 11 : Practical Considerations for Digital Designstaff.ui.ac.id/system/files/users/marta/material/kbab11martarizal.pdf · AC line voltage because that line frequency is

Objectivesh ld bl ObjectivesShould able to:Describe the causes and effects of a race condition on synchronous flip-flop operation. y p p p aUse manufacturers’ data sheets to determine IC operating specifications such as setup time, hold time, propagation delay and input/output voltage and current specifications delay, and input/output voltage and current specifications. Perform worst-case analysis on the time-dependent operations of flip-flops and sequential circuitry.

d Design a series RC circuit to provide an automatic power-up reset function. Describe the wave-shaping capability and operating p g p y d p gcharacteristics of Schmitt trigger ICs. Describe the problems caused by switch bounce and how to eliminate its effects

Ch. 11: Practical Considerations for Digital Design

2

eliminate its effects. Calculate the optimum size for a pull-up resistor.

Page 3: Ch 11 : Ch. 11 : Practical Considerations for Digital Designstaff.ui.ac.id/system/files/users/marta/material/kbab11martarizal.pdf · AC line voltage because that line frequency is

ContentsContents

1. Flip-Flop Time Parameters2 Automatic Reset2. Automatic Reset3. Schmitt Trigger Ics4 S it h D b i4. Switch Debouncing5. Sizing Pull-Up Resistors6. Practical Input and Output

ConsiderationsCh. 11: Practical Considerations for

Digital Design3

Page 4: Ch 11 : Ch. 11 : Practical Considerations for Digital Designstaff.ui.ac.id/system/files/users/marta/material/kbab11martarizal.pdf · AC line voltage because that line frequency is

1 Flip-Flop Time ParametersA race condition occurs when the data inputs (J-K or D) to a flip-flop are changing at the same time as the active clock transition.

i i h i h h d i fli fl Set-up time is the time that the data inputs to a flip-flop must be set before the active clock transition. Hold time is the amount of time that the data inputs must maintain their level after active clock transition maintain their level after active clock transition. The time required for the Q output to change as a result of some input is called the propagation delay.

• tPLH is the propagation delay when the Q output goes from low to tPLH is the propagation delay when the Q output goes from low to high.

• tPHL is the propagation delay when the Q output goes from high to low.

The propagation delay can be caused by an asynchronous

Ch. 11: Practical Considerations for Digital Design

4

The propagation delay can be caused by an asynchronous input (RD or SD) or a synchronous input (Cp).

Page 5: Ch 11 : Ch. 11 : Practical Considerations for Digital Designstaff.ui.ac.id/system/files/users/marta/material/kbab11martarizal.pdf · AC line voltage because that line frequency is

ContCont.

There are several other parameters that will also be listed in a manufacturers data sheet.

1. Maximum frequency (Fmax) - The maximum frequency allowed at h l k the clock input.

2. Clock pulse width (LOW) [tW(L)] - The minimum width that is allowed at the clock input during the LOW level.

3 Cl k l idth (HIGH) [t (H)] Th i i idth th t i 3. Clock pulse width (HIGH) [tW(H)] - The minimum width that is allowed at the clock input during the high level.

4. Set or Reset pulse width (LOW) [tw(L)] - The minimum width of the LOW pulse at the set or reset inputs the LOW pulse at the set or reset inputs. There are times when a delay may need to be introduced in a signal in order for a circuit to function properly. Special delay gate ICs are available that provide exact, predefined

Ch. 11: Practical Considerations for Digital Design

5

Special delay gate ICs are available that provide exact, predefined delays.

Page 6: Ch 11 : Ch. 11 : Practical Considerations for Digital Designstaff.ui.ac.id/system/files/users/marta/material/kbab11martarizal.pdf · AC line voltage because that line frequency is

Ch. 11: Practical Considerations for Digital Design

6

Page 7: Ch 11 : Ch. 11 : Practical Considerations for Digital Designstaff.ui.ac.id/system/files/users/marta/material/kbab11martarizal.pdf · AC line voltage because that line frequency is

2 Automatic Reset2. Automatic Reset

A series RC circuit can be used to set or reset a flip-flop when power is applied. The voltage across the capacitor will start low and charge toward the supply voltage. This

th t th t t f ti ill b means that the set or reset function will be initially active but will be removed after a short period of time period of time. The amount of reset time can be increased by increasing the size of the capacitor

Ch. 11: Practical Considerations for Digital Design

7

increasing the size of the capacitor

Page 8: Ch 11 : Ch. 11 : Practical Considerations for Digital Designstaff.ui.ac.id/system/files/users/marta/material/kbab11martarizal.pdf · AC line voltage because that line frequency is

3 Schmitt Trigger ICs3. Schmitt Trigger ICsA Schmitt trigger is a circuit used to transform A Schmitt trigger is a circuit used to transform slowly changing waveforms into sharply changing, jitter free output signals. g g j p gThe hysteresis is the difference in switching levels between the positive-going input and negative-g i g i p t ig al going input signal. The difference in switching voltage is called the hysteresis voltage hysteresis voltage. The transfer function is used to illustrate the relationship between the input switching

Ch. 11: Practical Considerations for Digital Design

8

p p gvoltages and the output HIGH and LOW level voltages.

Page 9: Ch 11 : Ch. 11 : Practical Considerations for Digital Designstaff.ui.ac.id/system/files/users/marta/material/kbab11martarizal.pdf · AC line voltage because that line frequency is

Ch. 11: Practical Considerations for Digital Design

9

Page 10: Ch 11 : Ch. 11 : Practical Considerations for Digital Designstaff.ui.ac.id/system/files/users/marta/material/kbab11martarizal.pdf · AC line voltage because that line frequency is

Function Transfer Function Transfer

Ch. 11: Practical Considerations for Digital Design

10

Page 11: Ch 11 : Ch. 11 : Practical Considerations for Digital Designstaff.ui.ac.id/system/files/users/marta/material/kbab11martarizal.pdf · AC line voltage because that line frequency is

Ch. 11: Practical Considerations for Digital Design

11

Page 12: Ch 11 : Ch. 11 : Practical Considerations for Digital Designstaff.ui.ac.id/system/files/users/marta/material/kbab11martarizal.pdf · AC line voltage because that line frequency is

HIGHtime

percentcycleduty

percentxLOWtimeHIGHtime

HIGHtimecycleduty

2723.14.07.1

100

==−

=

+=

Ch. 11: Practical Considerations for Digital Design

12

percentcycleduty 2.725.03.1)7.12.2()4.07.1(=

+=

−−−=

Page 13: Ch 11 : Ch. 11 : Practical Considerations for Digital Designstaff.ui.ac.id/system/files/users/marta/material/kbab11martarizal.pdf · AC line voltage because that line frequency is

4 Switch Debouncing4. Switch DebouncingAny mechanical switch is going to exhibit Any mechanical switch is going to exhibit bounce which will result in multiple pulses. One way to debounce a single-pole, single-y g p gthrow switch is to use a Schmitt trigger circuit with a resistor and capacitor on the input. A i l p l d bl th it h b A single-pole, double-throw switch can be debounced using a cross-coupled NAND flip-flop. pSingle-pole, double-throw switches can also be debounced with any type of flip-flop that has an

h t d t t Ch. 11: Practical Considerations for

Digital Design13

asynchronous set and reset input.

Page 14: Ch 11 : Ch. 11 : Practical Considerations for Digital Designstaff.ui.ac.id/system/files/users/marta/material/kbab11martarizal.pdf · AC line voltage because that line frequency is

5 Sizing Pull Up Resistors5. Sizing Pull-Up Resistors

Pull-up resistors must be sized to maintain the proper voltage levels given p p g gthe input current requirements of the circuit. Pull-down resistors usually are required to dissipate more power.dissipate more power.

Ch. 11: Practical Considerations for Digital Design

14

Page 15: Ch 11 : Ch. 11 : Practical Considerations for Digital Designstaff.ui.ac.id/system/files/users/marta/material/kbab11martarizal.pdf · AC line voltage because that line frequency is

6. Practical Input and Output p pConsiderations

TTL circuits require a supply voltage of 5.0v ±5%. q a pp y ag %A 60 Hz. clock signal can be derived form the AC line voltage because that line frequency is

t very accurate. It is best to connect LEDs to digital outputs so that a low will turn on the LED TTL can sink that a low will turn on the LED. TTL can sink more current in the low state than it can drive in the high state. Phototransistors are transistors that are used to detect the presence or absence of light.

Ch. 11: Practical Considerations for Digital Design

15

Page 16: Ch 11 : Ch. 11 : Practical Considerations for Digital Designstaff.ui.ac.id/system/files/users/marta/material/kbab11martarizal.pdf · AC line voltage because that line frequency is

ContCont.

Phototransistors combined with waveshaping circuits and flip-flops can be used to make an alarm circuit alarm circuit. An optocoupler is an IC with an LED and a phototransistor in the same package. phototransistor in the same package. Optocouplers can be used to shift or change the output voltage level of a logic circuit. Power MOSFETs can be connected to the outputs of logic gates to increase the current drive of the output

Ch. 11: Practical Considerations for Digital Design

16

drive of the output.

Page 17: Ch 11 : Ch. 11 : Practical Considerations for Digital Designstaff.ui.ac.id/system/files/users/marta/material/kbab11martarizal.pdf · AC line voltage because that line frequency is

Additional NotesAdditional Notes

Unused inputs of logic gates should never be left floating but rather should be gconnected such that they do not affect the circuit operationpThe inputs on AND and NAND should be tied high while the inputs on OR and tied high while the inputs on OR and NOR should be tied low

Ch. 11: Practical Considerations for Digital Design

17

Page 18: Ch 11 : Ch. 11 : Practical Considerations for Digital Designstaff.ui.ac.id/system/files/users/marta/material/kbab11martarizal.pdf · AC line voltage because that line frequency is

Ch. 11: Practical Considerations for Digital Design

18

Page 19: Ch 11 : Ch. 11 : Practical Considerations for Digital Designstaff.ui.ac.id/system/files/users/marta/material/kbab11martarizal.pdf · AC line voltage because that line frequency is

Ch. 11: Practical Considerations for Digital Design

19