+ All Categories
Home > Documents > Chapter 20 This chapter provides a series of applications. There is no daughter cards with the...

Chapter 20 This chapter provides a series of applications. There is no daughter cards with the...

Date post: 29-Mar-2015
Category:
Upload: silas-redford
View: 219 times
Download: 2 times
Share this document with a friend
Popular Tags:
29
Chapter 20 Chapter 20 This chapter provides a series This chapter provides a series of applications. of applications. There is no daughter cards with There is no daughter cards with the DSK6713 and DSK6416 the DSK6713 and DSK6416 Part 1: Applications using the PCM3003 Part 1: Applications using the PCM3003 AUDIO AUDIO DAUGHTER CARD TMDX326040A) DAUGHTER CARD TMDX326040A) by Richard Sikora by Richard Sikora Part 2: USB Daughter Board. Part 2: USB Daughter Board. by ATE Communications by ATE Communications Part 3: Part 3: PCI ‘C6711 DSP Educational Board. PCI ‘C6711 DSP Educational Board. by ATE Communications by ATE Communications
Transcript
Page 1: Chapter 20 This chapter provides a series of applications. There is no daughter cards with the DSK6713 and DSK6416 Part 1: Applications using the PCM3003.

Chapter 20Chapter 20

This chapter provides a series of This chapter provides a series of applications.applications.

There is no daughter cards with the There is no daughter cards with the DSK6713 and DSK6416DSK6713 and DSK6416

Part 1: Applications using the PCM3003 AUDIO Part 1: Applications using the PCM3003 AUDIO

DAUGHTER CARD TMDX326040A)DAUGHTER CARD TMDX326040A)

by Richard Sikoraby Richard SikoraPart 2: USB Daughter Board.Part 2: USB Daughter Board.

by ATE Communicationsby ATE Communications

Part 3: Part 3: PCI ‘C6711 DSP Educational Board.PCI ‘C6711 DSP Educational Board.

by ATE Communicationsby ATE Communications

Page 2: Chapter 20 This chapter provides a series of applications. There is no daughter cards with the DSK6713 and DSK6416 Part 1: Applications using the PCM3003.

Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004

Chapter 20, Slide 2

IntroductionIntroduction

Some audio applications for the TMS320C6711 DSK with Audio Daughter Card have been provided. Some audio applications for the TMS320C6711 DSK with Audio Daughter Card have been provided. These include:These include:

Alien VoicesAlien Voices: Changing voices using ring modulation. Widely used in science- fiction films for alien voices.: Changing voices using ring modulation. Widely used in science- fiction films for alien voices. Delays and EchoDelays and Echo: Using buffers to delay a signal up to 4 seconds to simulate echo from a valley / cavern.: Using buffers to delay a signal up to 4 seconds to simulate echo from a valley / cavern. Electronic CrossoverElectronic Crossover: Dividing audio signal into bass and treble using Finite Impulse Response (FIR) filters.: Dividing audio signal into bass and treble using Finite Impulse Response (FIR) filters.

Page 3: Chapter 20 This chapter provides a series of applications. There is no daughter cards with the DSK6713 and DSK6416 Part 1: Applications using the PCM3003.

Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004

Chapter 20, Slide 3

IntroductionIntroduction

These include:These include: Guitar EffectsGuitar Effects: Changing sound of an electric guitar by adding reverberation, treble boost and distortion.: Changing sound of an electric guitar by adding reverberation, treble boost and distortion. Guitar TunerGuitar Tuner: Tuning the strings of an electric guitar using an adaptive filter. Display of accuracy of tuning on : Tuning the strings of an electric guitar using an adaptive filter. Display of accuracy of tuning on

LEDs.LEDs. Playback and RecordPlayback and Record: Using buffers to record and playback sounds. Half speed and double speed playback. : Using buffers to record and playback sounds. Half speed and double speed playback.

Introduces concepts of decimation and interpolation.Introduces concepts of decimation and interpolation. ReverberationReverberation: Simulation of reflections from walls to make a small room sound like an auditorium.: Simulation of reflections from walls to make a small room sound like an auditorium.

Page 4: Chapter 20 This chapter provides a series of applications. There is no daughter cards with the DSK6713 and DSK6416 Part 1: Applications using the PCM3003.

Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004

Chapter 20, Slide 4

IntroductionIntroduction

These include:These include: Signal GeneratorSignal Generator: Generating test waveforms – sine : Generating test waveforms – sine

and triangle, continuous, burst and sweep between 60 and triangle, continuous, burst and sweep between 60 Hz and 12 kHz.Hz and 12 kHz.

Page 5: Chapter 20 This chapter provides a series of applications. There is no daughter cards with the DSK6713 and DSK6416 Part 1: Applications using the PCM3003.

Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004

Chapter 20, Slide 5

Code LocationCode Location

The CCS projects are in the following location:The CCS projects are in the following location: \Code\Chapter 20 – Other Applications\Audio \Code\Chapter 20 – Other Applications\Audio Daugter card…Daugter card…

See the following for more information:See the following for more information: \Links\Using the \Links\Using the Applications.pdfApplications.pdf

Page 6: Chapter 20 This chapter provides a series of applications. There is no daughter cards with the DSK6713 and DSK6416 Part 1: Applications using the PCM3003.

Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004

Chapter 20, Slide 6

Chapter 20, Part 2Chapter 20, Part 2

USB Daughter BoardUSB Daughter Board

by ATE Communicationsby ATE Communications ( (www.ate.co.ukwww.ate.co.uk))

Page 7: Chapter 20 This chapter provides a series of applications. There is no daughter cards with the DSK6713 and DSK6416 Part 1: Applications using the PCM3003.

Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004

Chapter 20, Slide 7

OverviewOverview

Combined signal acquisition/generation Combined signal acquisition/generation and USB interface card:and USB interface card: Data acquisition/generation via 1 audio Data acquisition/generation via 1 audio

CODEC, 2 ADCs and 2 DACs. (CODEC, 2 ADCs and 2 DACs. (See See Chapter 8 for applicationsChapter 8 for applications).).

PC interface to DSK via USB chipset.PC interface to DSK via USB chipset. USB chipset to DSP on DSK via EMIF.USB chipset to DSP on DSK via EMIF.

Page 8: Chapter 20 This chapter provides a series of applications. There is no daughter cards with the DSK6713 and DSK6416 Part 1: Applications using the PCM3003.

Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004

Chapter 20, Slide 8

Audio CODEC: CS4218Audio CODEC: CS4218(see Chapter 8)(see Chapter 8)

High quality stereo audio input and High quality stereo audio input and output.output.

Sampling rate of 48 kHz.Sampling rate of 48 kHz. 16 bit output (same resolution as audio 16 bit output (same resolution as audio

CD).CD). Interface to DSP via serial ports.Interface to DSP via serial ports.

Page 9: Chapter 20 This chapter provides a series of applications. There is no daughter cards with the DSK6713 and DSK6416 Part 1: Applications using the PCM3003.

Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004

Chapter 20, Slide 9

ADCs and DACs: AD9220 and AD768ADCs and DACs: AD9220 and AD768

Two ADCs for digital to analogue Two ADCs for digital to analogue conversion of high frequency signals.conversion of high frequency signals.

Two DACs for arbitrary waveform Two DACs for arbitrary waveform generation of high frequency signals. generation of high frequency signals.

Interface between DSP and converters Interface between DSP and converters via DSP's EMIF.via DSP's EMIF.

Page 10: Chapter 20 This chapter provides a series of applications. There is no daughter cards with the DSK6713 and DSK6416 Part 1: Applications using the PCM3003.

Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004

Chapter 20, Slide 10

USB Interface ChipsetUSB Interface Chipset

USB revision 1.1 full speed device.USB revision 1.1 full speed device. 16 bit interface to DSP via EMIF.16 bit interface to DSP via EMIF. Data transfer rates between DSP and Data transfer rates between DSP and

PC of up to 7M bits per second.PC of up to 7M bits per second. Internal FIFOs with programmable Internal FIFOs with programmable

empty and full flags connected to DSP's empty and full flags connected to DSP's timer input pins.timer input pins.

Page 11: Chapter 20 This chapter provides a series of applications. There is no daughter cards with the DSK6713 and DSK6416 Part 1: Applications using the PCM3003.

Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004

Chapter 20, Slide 11

Using the Audio CODEC (1)Using the Audio CODEC (1)

Set up transmit and receive serial ports' Set up transmit and receive serial ports' pins. Serial ports should be set up to use pins. Serial ports should be set up to use external frame synch and clock signals. external frame synch and clock signals.

Rising edges are used to clock Rising edges are used to clock transmit/receive data and frame synchs transmit/receive data and frame synchs are active high.are active high.

Page 12: Chapter 20 This chapter provides a series of applications. There is no daughter cards with the DSK6713 and DSK6416 Part 1: Applications using the PCM3003.

Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004

Chapter 20, Slide 12

Using the Audio CODEC (2)Using the Audio CODEC (2)

Set up the serial ports to use 32 bit Set up the serial ports to use 32 bit words, the data are delayed by one words, the data are delayed by one clock edge, no companding is used.clock edge, no companding is used.

The sample data are in the upper 16 bit The sample data are in the upper 16 bit words of each 32 bit word. The lower 16 words of each 32 bit word. The lower 16 bits are used for control information.bits are used for control information.

Page 13: Chapter 20 This chapter provides a series of applications. There is no daughter cards with the DSK6713 and DSK6416 Part 1: Applications using the PCM3003.

Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004

Chapter 20, Slide 13

Using the DACs and ADCs (1)Using the DACs and ADCs (1)

The DACs and ADCs are connected to The DACs and ADCs are connected to the DSP's EMIF.the DSP's EMIF.

DACs and ADCs can be accessed by DACs and ADCs can be accessed by reading from and writing to the DSP's reading from and writing to the DSP's CE3 memory space.CE3 memory space.

Page 14: Chapter 20 This chapter provides a series of applications. There is no daughter cards with the DSK6713 and DSK6416 Part 1: Applications using the PCM3003.

Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004

Chapter 20, Slide 14

Using the DACs and ADCs (2)Using the DACs and ADCs (2)

A 32 bit read from the CE3 memory A 32 bit read from the CE3 memory space reads packed data, two 16 bit space reads packed data, two 16 bit words per 32 bit word. The ADCs have words per 32 bit word. The ADCs have 12 bit resolution and should be 12 bit resolution and should be converted to 2's complement signed converted to 2's complement signed values.values.

A 32 bit write to the CE3 memory space A 32 bit write to the CE3 memory space writes data to both DACs. The data are writes data to both DACs. The data are packed, two 16 bit words per 32 bit packed, two 16 bit words per 32 bit word. The DACs have 16 bit resolution.word. The DACs have 16 bit resolution.

Page 15: Chapter 20 This chapter provides a series of applications. There is no daughter cards with the DSK6713 and DSK6416 Part 1: Applications using the PCM3003.

Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004

Chapter 20, Slide 15

Using the USB interface (1)Using the USB interface (1)

Using the USB interface from the PC Using the USB interface from the PC requires software to communicate with requires software to communicate with the device driver.the device driver.

The USB chipset is connected to the The USB chipset is connected to the DSP via the EMIF.DSP via the EMIF.

The USB chip is mapped to the DSP's The USB chip is mapped to the DSP's CE2 memory space.CE2 memory space.

The CE2 memory space should be set The CE2 memory space should be set up using the following value for the CE2 up using the following value for the CE2 control register: 0x7136C424.control register: 0x7136C424.

Page 16: Chapter 20 This chapter provides a series of applications. There is no daughter cards with the DSK6713 and DSK6416 Part 1: Applications using the PCM3003.

Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004

Chapter 20, Slide 16

Using the USB interface (2)Using the USB interface (2)

Reading and writing to USB Reading and writing to USB accomplished by accessing CE2 memory accomplished by accessing CE2 memory space.space.

FIFO flags connected to DSP’s timer FIFO flags connected to DSP’s timer inputs provide information on USB inputs provide information on USB chip’s FIFO status.chip’s FIFO status.

DSP should monitor FIFO flags to avoid DSP should monitor FIFO flags to avoid under or overruns.under or overruns.

Page 17: Chapter 20 This chapter provides a series of applications. There is no daughter cards with the DSK6713 and DSK6416 Part 1: Applications using the PCM3003.

Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004

Chapter 20, Slide 17

PC - USB daughter board communicationPC - USB daughter board communication

Communicating with the board from Communicating with the board from the PC requires code to interface to the the PC requires code to interface to the USB device driver.USB device driver.

Lower level details of communicating Lower level details of communicating with the device are handled by the with the device are handled by the device driver.device driver.

Code running on a built-in micro Code running on a built-in micro controller on the USB chip is used to controller on the USB chip is used to move the data between the USB buffers move the data between the USB buffers and external port FIFOs.and external port FIFOs.

Page 18: Chapter 20 This chapter provides a series of applications. There is no daughter cards with the DSK6713 and DSK6416 Part 1: Applications using the PCM3003.

Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004

Chapter 20, Slide 18

PC - USB daughter board communicationPC - USB daughter board communication

Application: Application: FFT processed on the DSK,FFT processed on the DSK,

results sent to the PC via the USB interface results sent to the PC via the USB interface

and the spectrum is display on the PC.and the spectrum is display on the PC.

Files location:Files location:

\Chapters\Usb

Page 19: Chapter 20 This chapter provides a series of applications. There is no daughter cards with the DSK6713 and DSK6416 Part 1: Applications using the PCM3003.

Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004

Chapter 20, Slide 19

Chapter 20, Part 3Chapter 20, Part 3

PCI ‘C6711 DSP Educational Board, PCI ‘C6711 DSP Educational Board, PCIC67ATPCIC67AT

by ATE Communicationsby ATE Communications ( (www.ate.co.ukwww.ate.co.uk))

DatasheetDatasheet

Block DiagramBlock Diagram

Page 20: Chapter 20 This chapter provides a series of applications. There is no daughter cards with the DSK6713 and DSK6416 Part 1: Applications using the PCM3003.

Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004

Chapter 20, Slide 20

Overview (1)Overview (1)

C6711 based PCI card with a variety of C6711 based PCI card with a variety of signal acquisition and generation signal acquisition and generation peripherals.peripherals.

Video encoder for acquisition of video Video encoder for acquisition of video data.data.

Video decoder for generation of video Video decoder for generation of video signals.signals.

Stereo audio CODECs for acquisition Stereo audio CODECs for acquisition and generating audio signals.and generating audio signals.

High frequency ADCs and DACS for High frequency ADCs and DACS for high frequency signal acquisition and high frequency signal acquisition and generation.generation.

Page 21: Chapter 20 This chapter provides a series of applications. There is no daughter cards with the DSK6713 and DSK6416 Part 1: Applications using the PCM3003.

Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004

Chapter 20, Slide 21

Overview (2)Overview (2)

Additional features:Additional features: PC has access to DSP via PCI interface.PC has access to DSP via PCI interface. JTAG controller for tight integration JTAG controller for tight integration

with CCS.with CCS. Bus matching FIFOs for managing high Bus matching FIFOs for managing high

bandwidth of video data on video bandwidth of video data on video encoder and decoder.encoder and decoder.

Large amount of SDRAM for program Large amount of SDRAM for program and data storage.and data storage.

Page 22: Chapter 20 This chapter provides a series of applications. There is no daughter cards with the DSK6713 and DSK6416 Part 1: Applications using the PCM3003.

Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004

Chapter 20, Slide 22

Video encoderVideo encoder

DSP has access to video encoder output DSP has access to video encoder output data via memory mapped FIFO.data via memory mapped FIFO.

FIFO flag connected to DSP's external FIFO flag connected to DSP's external interrupt to facilitate using EDMA to interrupt to facilitate using EDMA to move data from FIFO to other memory move data from FIFO to other memory locations.locations.

Video encoder set up using I2C bus.Video encoder set up using I2C bus. Video encoder should write framing Video encoder should write framing

codes to FIFO to facilitate codes to FIFO to facilitate synchronising to data stream.synchronising to data stream.

Page 23: Chapter 20 This chapter provides a series of applications. There is no daughter cards with the DSK6713 and DSK6416 Part 1: Applications using the PCM3003.

Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004

Chapter 20, Slide 23

Video decoderVideo decoder

DSP has access to video decoder input DSP has access to video decoder input port via memory mapped FIFO.port via memory mapped FIFO.

Video decoder data input format Video decoder data input format compatible with output format of compatible with output format of encoder.encoder.

Video encoder internal registers set up Video encoder internal registers set up via I2C bus.via I2C bus.

Page 24: Chapter 20 This chapter provides a series of applications. There is no daughter cards with the DSK6713 and DSK6416 Part 1: Applications using the PCM3003.

Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004

Chapter 20, Slide 24

Audio CODECs: CS4218 Audio CODECs: CS4218

Connected to DSP's serial ports.Connected to DSP's serial ports. Two stereo audio CODECs available Two stereo audio CODECs available

providing four input and four output providing four input and four output channels.channels.

Audio CODECs use 16 bit data at 48 Audio CODECs use 16 bit data at 48 kHz sampling rate.kHz sampling rate.

Page 25: Chapter 20 This chapter provides a series of applications. There is no daughter cards with the DSK6713 and DSK6416 Part 1: Applications using the PCM3003.

Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004

Chapter 20, Slide 25

ADCs and DACs: AD9220, AD768ADCs and DACs: AD9220, AD768

High frequency ADCs for capturing of High frequency ADCs for capturing of high frequency signalshigh frequency signals

ADCs memory mapped in DSP for high ADCs memory mapped in DSP for high bandwidth parallel interfacebandwidth parallel interface

DACs useful for outputting processed DACs useful for outputting processed waveforms or arbitrary waveform waveforms or arbitrary waveform generationgeneration

DACs memory mapped in DSP for high DACs memory mapped in DSP for high bandwidth parallel interfacebandwidth parallel interface

Page 26: Chapter 20 This chapter provides a series of applications. There is no daughter cards with the DSK6713 and DSK6416 Part 1: Applications using the PCM3003.

Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004

Chapter 20, Slide 26

Programming the DSPProgramming the DSP

Use of JTAG emulator connected to Use of JTAG emulator connected to JTAG header on board.JTAG header on board.

Directly in CCS via on board JTAG Directly in CCS via on board JTAG controller.controller.

Single step debugging of DSP possible Single step debugging of DSP possible when using CCS .when using CCS .

Access to all internal memory locations Access to all internal memory locations of DSP via HPI connected to PCI of DSP via HPI connected to PCI interface.interface.

Page 27: Chapter 20 This chapter provides a series of applications. There is no daughter cards with the DSK6713 and DSK6416 Part 1: Applications using the PCM3003.

Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004

Chapter 20, Slide 27

Accessing data on DSP from PCAccessing data on DSP from PC

Using PCI device driver.Using PCI device driver. PCI devices are plug and play, set up of PCI devices are plug and play, set up of

devices in PC straightforward.devices in PC straightforward. PCI device connected to DSP's HPI.PCI device connected to DSP's HPI. Via DSP's EMIF programmer has Via DSP's EMIF programmer has

access to all peripherals connected to access to all peripherals connected to EMIF.EMIF.

Page 28: Chapter 20 This chapter provides a series of applications. There is no daughter cards with the DSK6713 and DSK6416 Part 1: Applications using the PCM3003.

Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004

Chapter 20, Slide 28

Stand alone operationStand alone operation

External power connector for stand External power connector for stand alone operation.alone operation.

Programming DSP via JTAG header Programming DSP via JTAG header using JTAG interface board such as using JTAG interface board such as XDS510.XDS510.

Less complex than PCI set up, no Less complex than PCI set up, no operating system trouble or need for operating system trouble or need for device drivers.device drivers.

Page 29: Chapter 20 This chapter provides a series of applications. There is no daughter cards with the DSK6713 and DSK6416 Part 1: Applications using the PCM3003.

Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004

Chapter 20, Slide 29

Chapter 20Chapter 20

- End -- End -


Recommended