Bistable Multivibrator (Flip-Flops) Astable Multivibrator (Clocks or Oscillators) Schmitt-Trigger Inverter (7414) 555 Timer Crystal Oscillator Monostable Multivibrator (One-Shots) Non-Retriggerable (74121) Retriggerable (74123) VHDL Coding
ECE 3450 M. A. Jupina, VU, 2010
ECE 3450
Schmitt-Trigger Inverter
(a) If input transition times are too long, a standard logic device-output might oscillate or change erratically; (b) a logic device with a Schmitttrigger type of input will produce clean, fast output transitions.
ECE 3450 M. A. Jupina, VU, 2010
VIN
As VIN increases, VOUT = VOH until VIN > VTH then VOUT = VOL When VIN begins to decrease, VOUT = VOL until VIN < VTL then VOUT = VOH
ECE 3450 M. A. Jupina, VU, 2010
Schmitt-Trigger Oscillator
IIN
ECE 3450
TL
TH
t
t=0 t = 0' Assume Iin = 0, thus IR(t) = IC(t) Capacitor Charging Capacitor Discharging
VOL
VC(t)
VOH
VC(t)
ECE 3450
I.C. VC (0) VTH VC (TL ) VTL VOL VC (t ) dVC (t ) C R dt t RC VC (t ) VOL (VOL VTH )e VTL VOL (VOL VTH )e
OL TL RC ln( VTH VOL ) TL
I.C. VC (0) VTL VC (TH ) VTH VOH VC (t ) dVC (t ) C R dt t RC VC (t ) VOH (VOH VTL )e VTH VOH (VOH VTL )e TH RC ln(
1 T 1 TL TH
TL RC
TH RC
fOSC
ECE 3450
, Duty Cycle
Example: Show how to use a 74LS14 Schmitt-trigger inverter to produce an approximate square wave with a frequency of 10 KHz.
Solution:
ECE 3450
ECE 3450
5 FM Input (Tie to gnd via bypass cap) 6 Threshold 7 Discharge 8 Voltage Supply (+5 to +15 V)
M. A. Jupina, VU, 2010
ECE 3450
- If S = HIGH, then FF is SET, Q = LOW, Q1 OFF, VOUT = HIGH - If R = HIGH, then FF is RESET, Q = HIGH, Q1 ON, VOUT = LOW
t
VCC VOUT(t)
TL
TH
t
M. A. Jupina, VU, 2010
t = 0 t = 0'
ECE 3450
RA
VCC
RB
VC(t)
ECE 3450
Q1
ECE 3450
RA
VCC
RB
VC(t)
ECE 3450
I.C. VC (0) VTL VC (TH ) VTH VCC VC (t ) dVC (t ) C RA RB dt VC (t ) VCC (VCC VTL )e
t ( R A RB ) C
2 VCC 3 VCC e
TL R
BC
2 3
TH ( RA RB ) C
TL RB C ln(2) 0.69 RB C
TH 0.69( RA RB )C
TH T
fOSC
1 T
ECE 3450
1 0.69C ( RA 2 RB )
, Duty Cycle
RA RB RA 2 RB
0.5 or 50%
M. A. Jupina, VU, 2010
Example: Design a 555 Oscillator to produce an approximate square-wave at 40 KHz. Let C > 470 pF.
Examples
One Possible F=40KHz; T=25s; t1=t2=12.5s Solution: For a square-wave RA<<RB; Let RA=1K and RB=10K
t1=0.693(RB)(C); 12.5s=0.693(10K)(C); C=1800pF T=0.693(RA+2RB)C: T=0.693(1K+20K)1800pF T=26.2s; F=1/T; F=38KHz (almost square-wave). Example: A 555 oscillator can be combined with a J-K FF to produce a 50% duty-cycle signal. Modify the above circuit to achieve a 50% duty-cycle, 40 KHz signal.
One Possible Reduce by half the 1800pF. This will create a T=13.1s or F=76.35 KHz Solution: (almost square-wave). Now, take the output of the 555 Timer and connect
it to the CLK input of a J-K FF wired in the toggle mode (J and K inputs connected to +5V). The result at the Q output of the J-K FF is a perfect 38.17 KHz square-wave.
ECE 3450 M. A. Jupina, VU, 2010
4 Clock (output) 3
8 Ra 555 Timer 7 Rb
2
1
6
C1 5
0.01m F
(a) For 50% duty cycle and 500 KHz frequency, C1 = 100 pF, then Ra = 1 k and Rb = 14 k (b) For 75% duty cycle and 500 KHz frequency, C1 = 1000 pF, then Ra = 1.42 k and Rb = 0.71 k
ECE 3450 M. A. Jupina, VU, 2010
ECE 3450
Crystal Oscillator
An oscillator circuit that uses a piezoelectric crystal. Piezoelectric materials support an exchange of energy between mechanical compression and applied electric field. If a potential is applied between the electrodes, forces will be exerted on the bound charges within the crystal. Deformations take place within the crystal and an electromechanical system is formed which will vibrate when properly excited.
ECE 3450
fo
DPLL
Nfo
M. A. Jupina, VU, 2010
ECE 3450
Yi YN 0
equivalent circuit of Pierce oscillator
ECE 3450 M. A. Jupina, VU, 2010
ECE 3450
Clock Divider
ECE 3450
ECE 3450
ECE 3450
Example: Refer to the waveforms in (a) on previous page. Change the OS pulse duration to 0.5 ms and determine the Q output for both types of OS. Then repeat using a pulse duration of 1.5 ms.
Example
Solution:
ECE 3450
74121 Non-Retriggerable OS
ECE 3450
Example: (a) Show how a 74121 can be connected to produce a negative-going pulse with a 5 ms duration whenever A1 or A2 is connected to a negative-going trigger. (b) Modify the circuit so that when a signal G goes low it can be used to disable the 74121.
Example
Solution:
ECE 3450
tw = 0.33 RT Cext
ECE 3450
ECE 3450
ECE 3450
Detecting Edges
ECE 3450
ECE 3450
ECE 3450
ECE 3450
Q1
Q2
ECE 3450
-- retriggerable edge-triggered one-shot -- time delay = delay * clock period LIBRARY IEEE; USE IEEE.STD_LOGIC_1164.all; USE IEEE.STD_LOGIC_ARITH.all; USE IEEE.STD_LOGIC_UNSIGNED.all; ENTITY os1 IS PORT ( clock, trigger, reset delay q END os1; : IN BIT; : IN INTEGER RANGE 0 TO 15; : OUT BIT);
OS1 VHDL
ARCHITECTURE a OF os1 IS BEGIN PROCESS (clock, reset) VARIABLE count : INTEGER RANGE 0 TO 15; VARIABLE trig_was : BIT; BEGIN IF reset = '0' THEN count := 0; ELSIF (clock'EVENT AND clock = '0' ) THEN IF trigger = '0' AND trig_was = '1' THEN count := delay; trig_was := '0'; ELSIF count = 0 THEN count := 0; ELSE count := count - 1; END IF; IF trigger = '1' THEN trig_was := '1'; END IF; END IF; IF count /= 0 THEN q <= '1'; ELSE q <= '0'; END IF; END PROCESS; END a;
ECE 3450