Skip to content Skip to navigation Skip to collection information

OpenStax_CNX

You are here: Home » Content » DSP Laboratory with TI TMS320C54x (International Demo) » Lab 2: Lab

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 Digital Scholarship display tagshide tags

    This collection is included in aLens by: Digital Scholarship at Rice University

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

    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.
 

Lab 2: Lab

Module by: Douglas L. Jones, Swaroop Appadwedula, Matthew Berry, Mark Haun, Jake Janovetz, Michael Kramer, Dima Moussa, Daniel Sachs, Brian Wade, Patrick Frantz, Kanglin Wang. E-mail the authors

Based on: Multirate Filtering: Implementation on TI TMS320C54x by Douglas L. Jones, Swaroop Appadwedula, Matthew Berry, Mark Haun, Jake Janovetz, Michael Kramer, Dima Moussa, Daniel Sachs, Brian Wade

Summary: You will implement a multirate system that includes three fininte impulse response filters. The sample-rate compression and expansion factors can be controlled in real time using a MATLAB graphical user interface.

多频采样系统的实现

在实现Multirate Processing: Introduction中所描述的整个系统之前,我们建议你先设计一个只包含 FIR 1 和 FIR 2 而没有采样率压缩器和扩展器的的系统。在确认了该系统的响应正确后再实现整个多频采样系统并确认其整体响应。 首先,使用固定的压缩和扩展参数 D=U=4 D U 4 。然后可以通过MATLAB界面来调整该参数,并在编程时牢记所作的调整。

采样率压缩处理

为了使系统在低采样率下工作,在程序代码中加入一个计数器。该计数器将决定采样率压缩处理何时开始工作,以及决定何时在滤波器 FIR 3 中加入0来实现采样率扩展。

在实现多频采样系统时你可能需要用到以下指令:addm (add to memory);bc (branch conditional);banz (branch on auxiliary register not zero) 以及 b (branch)。

实时采样率调整及MATLAB界面

一个简单的图形用户界面(GUI:graphical user interface)可以通过串行口向DSP发送一个介于1和10之间的数字(程序代码mrategui.m,同时需要 ser_snd.m),用以实时改变采样率压缩和扩展参数。

在MATLAB窗口中键入 mrategui 来运行GUI。一个数字和一个游标将会自动出现。调整游标将会改变发送到DSP的压缩和扩展参数。

所提供的汇编代码将DSP从计算机收到的最后一个数字存贮在名为hold的内存单元中。因此你可以在该内存单元中找到最后的由GUI设定的压缩和扩展参数,除非你已经改变了代码的相关部分。你需要修改代码使得每当串行口收到一个新数字时压缩和扩展参数都会作响应的改变。如果收到的是"1",整个系统应该工作在全采样率下;如果收到的是"10",则系统在每次采样之间丢弃9个采样信号。

注意宏 READSERWRITSER 用来从串行口读取数据和发送数据至串行口,并覆盖 AR0AR1AR2AR3寄存器。因此你必须注意这些寄存器没有被程序所使用,或者在调用宏 READSERWRITSER之前保存其中的数值。这可以通过使用 mvdmmvmd 指令来完成。上述宏在每次被调用时都会重新设置寄存器 AR1AR3,因此没必要在调用宏之前对这些寄存器作改变。同时需要注意还有 BK 和状态标记TC

关于宏 READSERWRITSER 的更多细节可以在 Core File: Serial Port Communication Between MATLAB and TI TMS320C54x 中找到。

Collection Navigation

Content actions

Download:

Collection as:

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 ...

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:

Collection 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

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