如題,我們想用ADSP BF609 EZKIT評估板做聲信號處理算法的評估。現(xiàn)在決定用SPORT口的TMD模式,聲信號經(jīng)過別的板子已經(jīng)轉(zhuǎn)換為數(shù)字信號,現(xiàn)在需要配置接口,但是并沒有找到相關(guān)的實(shí)例,BSP中也沒有。查找硬件手冊也未發(fā)現(xiàn)寄存器之類配置,我是新手,可能找的不對。請指教!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. |