您的位置: OpenADSP社区论坛 -> Blackfin专区 -> 新手上路 -> BF609的TDM模式如何配置?
本帖共有194个阅读者
发表帖子 发表投票 回复主题
BF609的TDM模式如何配置?
尊贵身份标志
OpenADSP(管理员)
OpenADSP
头衔:社区公民
帮派:无帮无派
帖数:5187
金钱:34761
积分:6369
注册时间:2011/6/7
楼主信息 | 留言 | Email | 主页 | 编辑 | 管理 | 离线
BF609的TDM模式如何配置?
问题:如题,我们想用ADSP BF609 EZKIT评估板做声信号处理算法的评估。现在决定用SPORT口的TMD模式,声信号经过别的板子已经转换为数字信号,现在需要配置接口,但是并没有找到相关的实例,BSP中也没有。查找硬件手册也未发现寄存器之类配置,我是新手,可能找的不对。请指教!O(∩_∩)O谢谢,很着急呀!!!

我是OP...
等级:管理员 参考IP地址:*.*.*.*
2018/3/14 10:13:36
尊贵身份标志
OpenADSP(管理员)
OpenADSP
头衔:社区公民
帮派:无帮无派
帖数:5187
金钱:34761
积分:6369
注册时间:2011/6/7
1信息 | 留言 | Email | 主页 | 编辑 | 管理 | 离线
答:SPORT defaultly work in I2S mode, when you want to let it work in TDM mode, you should download and study on BF609's hardware reference mannual through the following link:

    http://www.analog.com/media/en/dsp-documentation/processor-manuals/blackfin_hwr_bf60x_rev0.5.pdf

    Go to SPORT chapter and you can find the following information, FYI.

    Multichannel Mode

    The processor's SPORTs offer a multichannel mode of operation, which allows the SPORT to communicate in a time division multiplexed (TDM) serial system. In multichannel communications, each data word
of the serial bit stream occupies a separate channel. Each word belongs to the next consecutive channel.

    For example, a 24-word block of data contains one word for each of the 24 channels.

    The multichannel mode of SPORT can be selected by setting SPORT_CTL_A.OPMODE = 0 and SPORT_MCTL_
A.MCE = 1.

    Up to 128 channels are available for transmitting or receiving. The SPORT can automatically select some words for particular channels while ignoring others. In other words, each SPORT can receive or transmit data selectively from any of the 128 channels. These 128 channels can be any 128 out of the 1024 total channels in the system. The SPORT can do any of the following on each channel:

• Transmit data ( SPORT_CTL_A.SPTRAN = 1)
• Receive data ( SPORT_CTL_A.SPTRAN = 0)
• Do nothing during inactive channels

    Optionally, data companding and DMA transfers can be used in multichannel mode on both primary andsecondary data lines.

    The SPORT multichannel select registers ( SPORT_CS0_A) must be programmed before enabling SPORT operation for multichannel mode. This is especially important in DMA data unpacked mode, since the SPORT data buffers begin operation immediately after the SPORT data lines are enabled. The SPORT_
MCTL_A.MCE must also be enabled prior to enabling SPORT operation.

    Multichannel mode operates completely independently and each SPORT uses its own serial clock andframe sync signal either internally generated or externally provided.


我是OP...
等级:管理员 参考IP地址:*.*.*.*
2018/3/14 10:13:52
Powered by OpenADSP Copyright © 2010 www.Openadsp.com. All rights reserved.154264 Call, 1 Queries, Processed in 0.031250 second(s),