DSPRelated.com

McBSP Initialization

Started by Leigh Wells in TMS320c54x25 years ago

I am attempting to initialize a McBSP on the '5410 to receive. I put the port into reset by writing 0h to SPCR(1,2), then write to...

I am attempting to initialize a McBSP on the '5410 to receive. I put the port into reset by writing 0h to SPCR(1,2), then write to configuration registers, wait for two clocks, enable the port by writing 1h to SPCR(1,2), then want to set bit 7 to 1 in SPCR2 to set up for


Audio Left and Right interchanged!!

Started by Rajaraman Kannappan in TMS320c54x20 years ago

hello all, I am using c5409 based board in the development environment. I have connected PCM3008 with McBSP of c5409. I...

hello all, I am using c5409 based board in the development environment. I have connected PCM3008 with McBSP of c5409. I have programmed the McBSP such that, Recevie/Transmit Frame Length is 2 words per frame and Receive/Transmit Word Length is 32-bits.


using McBSP for TI Codecs

Started by sahana rao in TMS320c54x22 years ago 1 reply

hello i am working on codec TL320AD50c on TMS320VC5402 DSP kit. i have to send data to the codec. should i use DXR or DRR...

hello i am working on codec TL320AD50c on TMS320VC5402 DSP kit. i have to send data to the codec. should i use DXR or DRR register of McBSP In my program i have used DXR register to output the sample. i am getting the data in the DXR reg. when i tried to call


McBSP as GPIO

Started by lfouilhac in TMS320c54x21 years ago 1 reply

Hi all, I have configured the McBSP #1 as GPIO (RRST_ = 0 RIOEN = 1). When I read the voltage on that pin (the pin is not...

Hi all, I have configured the McBSP #1 as GPIO (RRST_ = 0 RIOEN = 1). When I read the voltage on that pin (the pin is not connected, working with 5509 EVM from Spectrum Digital), I read 0 but the DSP read a logical 1 If I link the pin to the ground, the DSP sees a 0.


question about C5409 multiframe mode

Started by Li Hao in TMS320c54x22 years ago

I am trying to get C5409 McBSP port0 and DMA channel 0 and 1 working in Multiframe mode. There are two isrs, rx and tx. Basically,...

I am trying to get C5409 McBSP port0 and DMA channel 0 and 1 working in Multiframe mode. There are two isrs, rx and tx. Basically, frame sync comes every 125us, after McBSP fills and empties rx and tx DMA buffers, isrs are invoked. I have a dilemma right now, it seems that I have to reset


mcbsp spi receive

Started by Lucy Jordan in TMS320c54x22 years ago 5 replies

When I transmit over spi it also seems to be receiving (when i don't want it to). Should I transmit whatever I need to. _Then_...

When I transmit over spi it also seems to be receiving (when i don't want it to). Should I transmit whatever I need to. _Then_ enable the receive part of the mcbsp, then send a "dummy" transmit to get the clocks, then read DRR, then disable receive, and transmit again...? w


accesing McBSP duplex mode using DMA?

Started by Swarna Kumar BA in TMS320c54x23 years ago

Hi all I want to use the McBSP-codec interface in the 54x dsk in full duplex mode using DMA.I tried to use codec_cont_play(),...

Hi all I want to use the McBSP-codec interface in the 54x dsk in full duplex mode using DMA.I tried to use codec_cont_play(), codec_cont_capture() functions declared in codec.h. I find that using these functions I can do only a half duplex conversation with t


Re: Observation [McBSP]

Started by George Crouse in TMS320c54x22 years ago

You need to operate the McBSP in clock-stop (SPI) mode. Set it up as SPI slave device it will use external frame/clock/data inputs...

You need to operate the McBSP in clock-stop (SPI) mode. Set it up as SPI slave device it will use external frame/clock/data inputs from your serial device. I remember seeing waveforms in the book showing how to set up the start bit timing relative to clock, etc. If you're not


40 bit SPI transfers with McBSP master

Started by lolo_mk1 in TMS320c54x19 years ago

Hi, I'm trying to work out how to do this. My current idea is... 1. unpack 16 bit words into 8 bit words so the DMA can copy over...

Hi, I'm trying to work out how to do this. My current idea is... 1. unpack 16 bit words into 8 bit words so the DMA can copy over each word correctly. 2. Setup the DMA, 16 bit transfers. 3. McBSP for SPI operation, XFRLEN1 = 4 (5 - 1), XWDLEN = 8bits. I can't actually test this out yet so I was hoping whether someone


DMA and MCBSP syncronization

Started by jason_c_wachholz in TMS320c54x19 years ago 1 reply

I'm having troubles getting the DMA and the BSP to syncronize with interrupts. In general I cannot get the DMA to fire an interrupt...

I'm having troubles getting the DMA and the BSP to syncronize with interrupts. In general I cannot get the DMA to fire an interrupt after a block transfer is complete. The interrupts are enabled in the IMR. I can enter my interrupt with the MCBSP running alone. I can also run my DMA in no sync mode. I can conduct one block transfer based on t


McBSP as GPIO

Started by mahmood molaei in TMS320c54x17 years ago 2 replies

Dear Group people I am going to use three pins of Mcbsp and I read Volume 5: Enhanced Peripherals document(section 2.9) and I wrote this...

Dear Group people I am going to use three pins of Mcbsp and I read Volume 5: Enhanced Peripherals document(section 2.9) and I wrote this program . #include "tonecfg.h" #include "dsk5416.h" #include "dsk5416_pcm3002.h" #include "csl_mcbsp.h" #include #include "csl_gpio.h" #include "csl_hpihal.h" #include "csl_gpio.h" #include "tonecfg.h" void delay(void) { long i, j=0; f


McBSP clock generation on the C5402

Started by blindf22 in TMS320c54x21 years ago 1 reply

I want to create a continuous clock (set by the baud rate registers) and fsync from the MCBSP and im not sure what bits need to be...

I want to create a continuous clock (set by the baud rate registers) and fsync from the MCBSP and im not sure what bits need to be set in the baud rate registers to make this work. I have tried and got the fsync working but not the clock. Can anyone help? Tim King CES Co


Can I use the C5402 simulator in CCS2.1 to simulate DMA,McBSP and HPI?

Started by Bruce.J Sam in TMS320c54x20 years ago

     I haven't EVM and emluator because they are so expensive for a college student.I know CCS2.1 have many function to...

     I haven't EVM and emluator because they are so expensive for a college student.I know CCS2.1 have many function to program.For example, I can use the File I/O and Probe point to simulate the I/O read or write.But I use them to simulate DMA, McBSP and HPI,I failed.Perhaps my me


A little bit confusion in Interrupt response to the MCBSP

Started by liusheng12 in TMS320c54x21 years ago

Hi, For DSK5416, If in the MCBSP configuration, the word length is setup as 32bits/word and frame length setup as 2...

Hi, For DSK5416, If in the MCBSP configuration, the word length is setup as 32bits/word and frame length setup as 2 words/frame, sigle phase, The interrupt response is setup to response to each XRDY signal. So for each frame, how many interrupts will be evoked? I


MCBsp and DMA syncronization problem

Started by m_mo...@yahoo.com in TMS320c54x13 years ago

Dear all In 5416 DSP processor : I used MSBSP number 0 and 1 to get CODEC sound data by using DMA channel 4 and 5. Both DMAs are used to get...

Dear all In 5416 DSP processor : I used MSBSP number 0 and 1 to get CODEC sound data by using DMA channel 4 and 5. Both DMAs are used to get data from mcbsp ports. Frame sync and clock signals are input to this DSP processor. But I have reset problem. When I reset the board I find that sometimes input data is correct and has no problem but some other times input data is not correct. and s...


IOM-2 interfacing using McBsp

Started by in TMS320c54x25 years ago

Dear everyone   I'm tryng to connect c5402 with IOM-2 bus using McBsp   But it is not so easy.. ...

Dear everyone   I'm tryng to connect c5402 with IOM-2 bus using McBsp   But it is not so easy..  


Does anyone have the initiation, read,write functions of the McBSP (DSK5416) ?

Started by Yuri_Feigin in TMS320c54x21 years ago

written in c .

written in c .


How to connect a PC using Mc BSP?

Started by in TMS320c54x22 years ago

Hi, I've to make a serial connection between PC and 'C54x EVM. Can I just use the McBSP port? Could you please tell me where to...

Hi, I've to make a serial connection between PC and 'C54x EVM. Can I just use the McBSP port? Could you please tell me where to find relative articles? Thank you very much! rgds, maming


McBSP speed

Started by Sekovanic Krunoslav ITWEH1 in TMS320c54x21 years ago

Hi! Are McBSP0s of C5441 capable of 8 Mbps (multichannel selection mode)? What is the highest frequency of incoming interrupts...

Hi! Are McBSP0s of C5441 capable of 8 Mbps (multichannel selection mode)? What is the highest frequency of incoming interrupts RINTM and XINTM? Thanks. Kruno


SPI protocol

Started by fg0846 in TMS320c54x23 years ago 3 replies

Hi everyone, Does anyone know how SPI protocol works? I need to design some drivers to connect SPI devices to a C54x via McBSP...

Hi everyone, Does anyone know how SPI protocol works? I need to design some drivers to connect SPI devices to a C54x via McBSP and DMA, and I would need to know the standard first. Thanks, Fran