Assignment 3 -- Data Representations

April 21, 2004

This work and all earlier assignments must be completed by Wednesday, May 19th:

Save all your work on your own work disc!

Task 9: Digital Data Formats: Parallel-to-Serial Conversion

Digital information may be represent in two distinct data formats -- "serial" and "parallel."  Within a computer, say, to maintain the most rapid internal communication rate, each information bit is in carried on a single connection (wire).  Thus, an informational word or bit configuration is carried on multiple connections in parallel (typically 4 parallel bits - a nibble, 8 parallel bits - a byte, 16 parallel bits, or 32 parallel bits).  On an external communication channel, however,  the informational word is carried in serial on a single connection (wire) as a time synchronous bit sequence.  To communicate between computers we must be able to convert data formats from parallel-to-serial and from serial-to-parallel.  Here we study how that conversion may be achieved.
  1. Subtask 9a: An important single bit memory element.

  2. First we need to learn about "D Flip Flops."  A D-FF is an very useful device for use in formatting digital signals.  First examine and then build the following Simulink configuration.  The inputs to the D-FF are labelled "D", "CLK" and "!CLR".  The outputs are labelled "Q" and "!Q".  Set your simulation parameters as follows: solver = fixed step/discrete; step = 1; and stop time = 99999999.  Start the simulation.  Notice that:

    Thus, we see that Q remembers the value of D at the moment when CLK rises from zero to one!  Be sure that you believe this assertion.
     
  3. Subtask 9b: A bit shift element.

  4. To keep things as simple as possible, we will now use two D_FFs to convert two parallel bits into a time sequence of two bits.  Examine and then build the following Simulink configuration.  In this configuration you will see that the "word" [D1 D2} is saved as a parallel word [Q1 Q2] on rising CLK when the "control" switch is in the lower position.  However, when the "control" switch is in the upper position, you will observe that the bit in Q1 is shifted to Q2 on rising CLK and we have the basic element of a parallel-to-serial converter.  Set your simulation parameters as in Subtask 7a.
     

  5. Subtask 9c: A shift register.

  6. Build and test the following parallel-to-serial shift register configuration.  Set your simulation parameters as in Subtask 7a.
     

  7. Subtask 9d: Digital encoding of an analog signal.
  8. Finally lets put it all together.  Please build and study the following module which takes in an analog signal (perhaps an analog sample such as you obtained in Tasks 5 and 6) and converts it to a  serial or time sequenced digital signal.  Set your simulation parameters as in Subtask 7a.  To get the A-to-D converter "sg_adconv4" go Here


Task 10: A Study of Video Signals


 
 

This page was prepared and is maintained by R. Victor Jones
Comments to: jones@deas.harvard.edu.

Last updated April 21, 2004