Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Manchester Code Transmitter - Laboratory 6 | ECE 491, Lab Reports of Electrical and Electronics Engineering

Material Type: Lab; Class: Senior Project; Subject: Electrical & Computer Engineer; University: Lafayette College; Term: Fall 2007;

Typology: Lab Reports

Pre 2010

Uploaded on 08/18/2009

koofers-user-0zq
koofers-user-0zq 🇺🇸

10 documents

1 / 4

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
1
ECE 491 – Senior Design 1
Laboratory 6 – Manchester Code Transmitter
Revised October 12, 2007
Goals
To develop an FPGA design of a circuit that transmits data using the Manchester
Code.
To gain additional skill designing and debugging complex digital circuits using
Verilog and FPGAs.
Background
The Manchester Code transmits data serially while guaranteeing that each transmitted bit
contains either a rising or falling transmission in the center of the bit transmission period
(“cell”). Figure 1 shows a common variation of the Manchester code, in which a “1”
value is transmitted with a logic high in the first half of a cell and a logic low in the
second half. A “0” value is transmitted with a logic low in the first half of the cell and a
logic high in the second half. A third “idle” value is sometimes used when a transmitter
has no data to transmit; this makes it possible for multiple transmitters to use a shared
medium like the original Ethernet. In Figure 1, an “idle value” is transmitted as a logic
high in both halves of the cell. The fourth possibility (a logic low in both halves of the
cell) should not occur and is treated as an error.
Figure 1 – Manchester Code Bit Values
The presence of a bit transition in each cell means that a receiver circuit can re-
synchronize on each successive bit transition. This allows the transmission of a frame
(i.e., a long string of bits). In contrast, asynchronous serial transmission schemes using a
START and STOP bit can only be used to transmit short frames of data (e.g. 8 bits)
because they only synchronize on the falling transition of the START bit.
Manchester transmitters usually begin a frame with a preamble that allows clock
recovery circuits to synchronize to a starting transmission. The preamble is followed by
a Start Frame Delimiter (SFD) which signals the beginning of actual data. In IEEE 802.3
Ethernet, the preamble is a 56-bit sequence of alternating 1’s and 0’s followed by an 8-bit
SFD that transmits (LSB first) the value 11010101 (i.e., a sequence of alternating 1 and 0
values ending with two adajacent 1 values). Data is then transmitted bit-by-bit until the
end of the frame is reached and the transmitter returns to the idle state. Figure 2
illustrates this process.
pf3
pf4

Partial preview of the text

Download Manchester Code Transmitter - Laboratory 6 | ECE 491 and more Lab Reports Electrical and Electronics Engineering in PDF only on Docsity!

ECE 491 – Senior Design 1 Laboratory 6 – Manchester Code Transmitter Revised October 12, 2007

Goals

  • To develop an FPGA design of a circuit that transmits data using the Manchester Code.
  • To gain additional skill designing and debugging complex digital circuits using Verilog and FPGAs.

Background

The Manchester Code transmits data serially while guaranteeing that each transmitted bit contains either a rising or falling transmission in the center of the bit transmission period (“cell”). Figure 1 shows a common variation of the Manchester code, in which a “1” value is transmitted with a logic high in the first half of a cell and a logic low in the second half. A “0” value is transmitted with a logic low in the first half of the cell and a logic high in the second half. A third “idle” value is sometimes used when a transmitter has no data to transmit; this makes it possible for multiple transmitters to use a shared medium like the original Ethernet. In Figure 1, an “idle value” is transmitted as a logic high in both halves of the cell. The fourth possibility (a logic low in both halves of the cell) should not occur and is treated as an error.

Figure 1 – Manchester Code Bit Values

The presence of a bit transition in each cell means that a receiver circuit can re- synchronize on each successive bit transition. This allows the transmission of a frame (i.e., a long string of bits). In contrast, asynchronous serial transmission schemes using a START and STOP bit can only be used to transmit short frames of data (e.g. 8 bits) because they only synchronize on the falling transition of the START bit.

Manchester transmitters usually begin a frame with a preamble that allows clock recovery circuits to synchronize to a starting transmission. The preamble is followed by a Start Frame Delimiter (SFD) which signals the beginning of actual data. In IEEE 802. Ethernet, the preamble is a 56-bit sequence of alternating 1’s and 0’s followed by an 8-bit SFD that transmits (LSB first) the value 11010101 (i.e., a sequence of alternating 1 and 0 values ending with two adajacent 1 values). Data is then transmitted bit-by-bit until the end of the frame is reached and the transmitter returns to the idle state. Figure 2 illustrates this process.

1 0 1 0 1 0

1 0 1 0 1 0 1 1

preamble

SFD

1 1 0 1 0

data idle

idle

Figure 2 – Ethernet-Style Manchester Transmission

Requirements

  1. Your design will implement the interface shown in Figure 3. The parallel data interface accepts data in 8-bit chunks. The transmitter converts these into serial Manchester bits on the "txd" output. The "txen" output is an enable output that will be used with a high-impedance buffer that drives a shared transmission line (called the "ether" in the Metcalfe and Boggs paper). Whenever the circuit is actively transmitting bits, the "txen" output should be high. At all other times, it should be low so that other units can transmit.

txen txd

start data ready

transmitter

driver

“ether”

parallell data interface

Figure 3 – Manchester Transmitter Interface Figure 4 shows a timing diagram that illustrates the desired operation of the transmitter. When no data is being transmitted, the "ready" and "txd" outputs are asserted high and the "txen" enable output is asserted low. The user of the transmitter starts transmission by asserting an 8-bit data value on the "data" input and asserting the "start" input true.

  1. A short technical memorandum which describes (a) what was done, (b) what you learned, and (c) what difficulties you encountered. Include a block diagram of your design showing its major components and state diagrams of any FSMs in your design.
  2. Verilog listings of all files, including transmitter design and testbench.
  3. Timing diagram printouts showing correct simulation of your transmitter design, including all required test cases.
  4. Entries in your Lab Notebook documenting design ideas, the steps taken to create and debug your design, any pitfalls you encountered, and recorded data (if any). Each Lab Notebook entry should be dated and signed by all students in the lab group.

txen txd

start data ready

transmitter

test module mxtest.v

clock generator

pb run

led

to oscilloscope

clk (50MHz))

byte_limit d0 d1 d2 d

2 8 8 8 8

connect to constants and/or switches

testclk

Figure 5 – Hardware Test Configuration