1 / 16

Serial versus Parallel Data Transfers

Serial versus Parallel Data Transfers. Shift Registers Converting data from Serial  Parallel . Shift Registers . Shift Registers convert numbers expressed in terms of several bits ( many signal lines) into a stream of 0s, 1s and a Clock.

suchi
Download Presentation

Serial versus Parallel Data Transfers

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Serial versus Parallel Data Transfers Shift Registers Converting data from Serial  Parallel Jordan Nash - Microprocessor Course

  2. Shift Registers • Shift Registers convert numbers expressed in terms of several bits (many signal lines) into a stream of 0s, 1s and a Clock. • Advantage: A convenient way to reduce the number of Electrical signal lines by factors of 8, 16, 32, 64. • Disadvantage: For the same transfer rate the electronics must be faster by factors of 8, 16, 32, 64. Jordan Nash - Microprocessor Course

  3. This Shift Register converts data on a 4 bit parallel data bus into a serial bit stream When Parallel load is set, the S/R bits on the Flip Flops are arranged to latch in the bits on the data bus (1 bit on each Flip Flop) On each rising edge of the clock, The Data on the Flip Flops is put on the Q (Output Line), which appears at the input of the next flip flop. The input data is latched, and the bits move from one FF to the next It takes 4 clock cycles to move the 4 bits out to the serial ouput line A Four Bit Shift RegisterComposed of 4 D-Flip-FlopsParallel to Serial Conversion Jordan Nash - Microprocessor Course

  4. Data is placed on the parallel data bus 1 0 1 0 PL: Data Loaded into Flip Flops 0 On Clock edge Data is shifted from output of each FF to the Input of the next Jordan Nash - Microprocessor Course

  5. 8 Bit Parallel to Serial Shift Register Jordan Nash - Microprocessor Course

  6. Parallel to Serial Conversion:Parallel load a number then clock it out Jordan Nash - Microprocessor Course

  7. Serial to Parallel shift register At each clock transition, the data is shifted to the next flip-flop in the chain We need to keep track of how many clock pulses we have sent to know when the full byte is on the outputs Jordan Nash - Microprocessor Course

  8. Suppose you feed a ‘1’: Jordan Nash - Microprocessor Course

  9. The 74HC165 Shift Register: Parallel to Serial 8-bit Word *Load Serial Data in Serial Out Clock Jordan Nash - Microprocessor Course

  10. The 74HC165 Function Table Jordan Nash - Microprocessor Course

  11. The 74HC164 Shift Register: Serial to Parallel Serial Data In Clock *Reset Parallel out Jordan Nash - Microprocessor Course

  12. 74HC164 Function Table Jordan Nash - Microprocessor Course

  13. High Level Design The Project: Parallel To Serial ATmega128 Board 8-Bits of data (Parallel) Serial Data Shift Register 74HC165 PORTA Clock Shift/*Load Shift Register 74HC164 PORTD Clock 8-Bits of data (Parallel) Serial to Parallel Jordan Nash - Microprocessor Course

  14. Low Level Design Wire up LEDs so that you can see the data arrive on the output Wire up a switch to the MR* line to allow you to clear the Shift Register outputs (make sure you understand how this works) Wire the input data to PORTA – remember to use the resistor packs The clock and PL bits should come from PORTD Jordan Nash - Microprocessor Course

  15. The Serial Link Test Program Start Send new pattern to PORTA Look at the LEDs Load into the 165 using PORTD Clock the 165/4 8 times using PORTD Delay several seconds Jordan Nash - Microprocessor Course

  16. Task Plan: Construct a device that will turn 8-bit parallel data from Port-A to serial data + clock . Construct a device that will receive serial data, convert them to parallel data and display them using LEDs. Write a program that will send several patterns down your ‘serial link’ and demonstrate that it works. Jordan Nash - Microprocessor Course

More Related