Skip to content Skip to navigation

Connexions

You are here: Home » Content » DMT: A/D and D/A Conversion

Navigation

Lenses

What is a lens?

Definition of a lens

Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual member, a community, or a respected organization.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

This content is ...

Affiliated with (What does "Affiliated with" mean?)

This content is either by members of the organizations listed or about topics related to the organizations listed. Click each link to see a list of all content affiliated with the organization.
  • Rice University ELEC 301 Projects

    This module is included inLens: Rice University ELEC 301 Project Lens
    By: Rice University ELEC 301As a part of collection: "ECE 301 Projects Fall 2003"

    Click the "Rice University ELEC 301 Projects" link to see all content affiliated with them.

  • Rice Digital Scholarship

    This module is included in aLens by: Digital Scholarship at Rice UniversityAs a part of collection: "ECE 301 Projects Fall 2003"

    Click the "Rice Digital Scholarship" link to see all content affiliated with them.

Also in these lenses

  • Lens for Engineering

    This module is included inLens: Lens for Engineering
    By: Sidney Burrus

    Click the "Lens for Engineering" link to see all content selected in this lens.

  • EW Public Lens display tagshide tags

    This module is included inLens: Ed Woodward's Public Lens
    By: Ed WoodwardAs a part of collection: "ECE 301 Projects Fall 2003"

    Comments:

    "assafdf"

    Click the "EW Public Lens" link to see all content selected in this lens.

    Click the tag icon tag icon to display tags associated with this content.

Recently Viewed

This feature requires Javascript to be enabled.

Tags

(What is a tag?)

These tags come from the endorsement, affiliation, and other lenses that include this content.
 

DMT: A/D and D/A Conversion

Module by: Cosme Garza. E-mail the author

Summary: Gives details about the A/D and D/A converters used in our DMT project.

Why, you might ask, did we implement our system by using a sampled analog waveform as the input rather than an arbitrary bit stream? First, it allowed us to actaully see and hear the errors introduced by a noisy channel, rather than just having a tally of the bit errors. Second, we found it motivational to have a visible goal (i.e. the input waveform) to shoot for as we watched our results improved with every version of our code. Finally, it gave us more experience coding and lets us put these nifty plots in this module, which helps constrast the encoded time-domain plots seen in other subsystems with a real speech signal.

Analog-to-Digital (A/D)

The A/D converter in our system takes in a MATLAB vector corresponding to a sampled analog signal and converts it to a bit stream. This is a two step process: quantization and bit assignment. In quantization, the amplitude axis of the input signal is broken up into 2^B levels and each sample is rounded to the nearest level. Each level is assigned a B-bit binary number, so the length Q input vector of samples is mapped to a length BQ bitstream. Below are figures of the input and quantized input waveforms.

Figure 1: The input waveform used was the 'Handel' sound file built into MATLAB
Input sampled waveform
Input sampled waveform (speechin.jpg)
Figure 2: Quantized version of 'Handel'
Quantized input waveform
Quantized input waveform (quantin.jpg)

Digital-to-Analog (D/A)

The D/A converter in our system performs the inverse operation of the A/D converter: it takes in a MATLAB bitsream and converts it to sampled analog signal. Here, it is only a one step process: since we performed B-bit A/D conversion, we assign each block of B bits the original associated quantization level. There is an implicit error induced in D/A conversion due to quantization: since we originally rounded the sampled points to the nearest level, the information regarding their exact values is lost. This is called quantization error. However, with a speech waveform, a 4-bit (16 quantization level) approximation of the signal sounds reasonably close to the real thing. To actually see how well our output signal matched up with our input, we compared it with a quantized version of the input waveform.

Other sources for information about A/D conversion: Amplitude Quantization

Our related MATLAB functions: a2d.m, d2a.m

Home | Previous: Implementation | Next: Serial/Parallel, Parallel/Serial

Content actions

Download module as:

PDF | EPUB (?)

What is an EPUB file?

EPUB is an electronic book format that can be read on a variety of mobile devices.

Downloading to a reading device

For detailed instructions on how to download this content's EPUB to your specific device, click the "(?)" link.

| More downloads ...

Add module to:

My Favorites (?)

'My Favorites' is a special kind of lens which you can use to bookmark modules and collections. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need an account to use 'My Favorites'.

| A lens I own (?)

Definition of a lens

Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual member, a community, or a respected organization.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

| External bookmarks