# Lab 10 :Serial Data Transfer System:

## Presentation on theme: "Lab 10 :Serial Data Transfer System:"— Presentation transcript:

Lab 10 :Serial Data Transfer System:
Slide 2 Asynchronous Inputs. Slide 3 Loadable 4-Bit Shift Register. Slide 4 Re-circulating Shift Register

Lab 10 : Asynchronous inputs :
All flip flops have 2 additional inputs called “Asynchronous Inputs” (Pre and Clr). They allow the user to set initial conditions at Q. 5V R C AMBIGOUS! D and Clock control Q. 1 1 Pre is called the pre- set input. Connecting it to 0 sets Q to 1. D Q >Clk Pre Clr Clr is called the clear input. Connecting it to 0 resets Q to 0. D and Clk control Q Pre and Clr are called asynchronous because they can be used to set and clear the flip flop without the need of a clock. D and Clk are called synchronous inputs. They need a clock signal to change Q. Pre and CLr override the conditions at the synch inputs (D and Clk) if they are left asserted (0). Pre = Clr =1 allows D and Clk to control Q. 5 millisec. 1 Pre = Clr =0 is not allowed … or … AMBIGUOUS Pre and Clr can be used to set initial conditions at Q. Here is a “Power On Reset” circuit that ensures the flip flop starts at Q=0 when power is first applied to the flip flop. When the power is first applied to the circuit the capacitor is uncharged (0V) and grounds the Clr input. Clr=0 clears the flip flop! The cap charges to 5V through the resistor. The RC time constant determines the amount of time it takes for the capacitor to charge up. Assume that RC is chosen so that it takes 5 milliseconds to charge the capacitor. Clr will clear the flip flop for 5 milliseconds after the power is applied to the circuit. Once the cap is charged then Clr=1 and Q can be controlled by D and Clk. Slide #2

Lab 10 : Loadable 4-Bit Shift Register :
A 4-bit number can be loaded into the shift register (via inputs A, B, C, D and Load). The number can be shifted from output QA to QB to QC to QD. The shift register will be loaded with the number 6. Shift the number: Load is connected to 1. This enables the shift register to shift the number. Din is connected to 1. Din is the data input to QA. The data at QA will shift right to QB. The data at QB shifts to QC. QC shifts to QD. You have seen how it takes 4 clock pulses to move the number 6 out of the shift register and fill it with 1’s from the Din input. Din will be connected to 0. This will shift the 1’s out and fill the shift register with 0’s. Step 4 : Provide a 4th clock pulse. Step 3 : Provide a 3rd clock pulse. Step 2 : Provide a 2nd clock pulse. Step 3 : Provide a 3rd clock pulse. Step 2 : Provide a 2nd clock pulse. Step 1 : Provide a clock pulse. Step 4 : Provide a 4th clock pulse. Step 1 : Provide a clock pulse. Step 2 : Apply 0 to Load. Step 1 : Apply 6 to inputs A, B, C, D 1 1 Load 4-Bit >Clk QA QB QC QD Din A B C D 1 1 1 1 1 1 1 1 1 Slide #3

Lab 10 : Re-circulating Shift Register.
The loadable shift register can be configured as a re-circulating shift register. You must connect the last stage of the shift register (QD) to the data input (Din). The connection from QD output to Din data input creates a loop or a ring. The shift register will be loaded with the number 9. To re-circulate the number: Apply 4 clock pulses. 1 1 4-Bit Din >Clk QA QB QC QD Load A B C D 1 1 1 1 1 Slide #4

Download ppt "Lab 10 :Serial Data Transfer System:"

Similar presentations