如题,我们想用ADSP BF609 EZKIT评估板做声信号处理算法的评估。现在决定用SPORT口的TMD模式,声信号经过别的板子已经转换为数字信号,现在需要配置接口,但是并没有找到相关的实例,BSP中也没有。查找硬件手册也未发现寄存器之类配置,我是新手,可能找的不对。请指教!O(∩_∩)O谢谢,很着急呀!!!
答:
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. |