DSPRelated.com

DMA with auto initialization

Started by eli_zarka in TMS320c54x23 years ago

Hi all, I am using a DMA channel with autoinitialization. I have a frame of 4 16-bit words. My question is how I have to...

Hi all, I am using a DMA channel with autoinitialization. I have a frame of 4 16-bit words. My question is how I have to configure the DMA and the McBSP in order to synchronize the DMA to the frame sync signal. The problem is that the McBSP gives an event every 16-bit wo


McBSP clock generation on the C5402

Started by blindf22 in TMS320c54x23 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


A little bit confusion in Interrupt response to the MCBSP

Started by liusheng12 in TMS320c54x22 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


gpio

Started by G.Sateesh Kumar in TMS320c54x22 years ago

Hi, I am working with XDS510pp board.How can I configure the MCBSP as GPIO Pins.The hardware contains adc/dac as TLV320AIC10...

Hi, I am working with XDS510pp board.How can I configure the MCBSP as GPIO Pins.The hardware contains adc/dac as TLV320AIC10 codecs.Is there any chance to configure I2c setup for this board?Already i configured the codec to the McBsp with dcsi configurration.Is it posible to do


C5409 DMA configuration

Started by rk_appan in TMS320c54x22 years ago

Hello All, I am using C5409 for a audio application. When I configure McBSP with CPU interrupts(XINT0,RIN0) I am able to play...

Hello All, I am using C5409 for a audio application. When I configure McBSP with CPU interrupts(XINT0,RIN0) I am able to play audio properly. I want DMA to be implemented for processing the audio data. I have configured both McBSP and DMA0(syncd on Transmit Event) and D


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

Started by Bruce.J Sam in TMS320c54x22 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


Audio Left and Right interchanged!!

Started by Rajaraman Kannappan in TMS320c54x22 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.


mcbsp2 and DMA

Started by bsd_mike in TMS320c54x22 years ago 1 reply

Can anybody point me to the document that talks about the MCBSP's and DMA? I understand that only some of the DMA channels...

Can anybody point me to the document that talks about the MCBSP's and DMA? I understand that only some of the DMA channels are available to certain MCBSP's...but I can't find a document that talks about that. Thanks in advance. -Mike


more mcbsp questions

Started by bsd_mike in TMS320c54x22 years ago 1 reply

I am using the TI sample code for the MCBSP described in their T1 interface book. I am getting receive interrupts for...

I am using the TI sample code for the MCBSP described in their T1 interface book. I am getting receive interrupts for every frame, but no transmit interrupts. I am using MCBSP0 and DMA channels 0 and 1. Anybody have any good guesses of what I should


DMA and MCBSP syncronization

Started by jason_c_wachholz in TMS320c54x21 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


40 bit SPI transfers with McBSP master

Started by lolo_mk1 in TMS320c54x21 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 interrupt issue ...

Started by haideralibaig in TMS320c54x20 years ago

I am currently working on the C54CST version of the DSP and am having issues with configuring a DMA channel. What I am trying to do is...

I am currently working on the C54CST version of the DSP and am having issues with configuring a DMA channel. What I am trying to do is capture(recieve) the DATA coming in on MCBSP 0 and just simply store the data in memory to read it later (basically I am testing part of the functionality of the DMA). MCBSP 0 is connected to an ST-BUS device (TP3071 CODEC) and the clock and frame sync are


McBSP as UART

Started by Andrew Ness in TMS320c54x20 years ago

Hi, I've followed the directions in SPRA661 to implement a software UART using the McBSP port 0. I am using a C5416 device and modified the...

Hi, I've followed the directions in SPRA661 to implement a software UART using the McBSP port 0. I am using a C5416 device and modified the included assembly slightly to allow for using a far memory model. Things work okay for the most part, but I am experiencing parity and framing errors every now and then when transmitting to the DSP. Sometimes I can transmit 100 or more characters wi...


Use McBSP as RS-232?

Started by bsd_mike in TMS320c54x20 years ago 3 replies

How hard is it to use an McBSP as an RS-232 serial port? I understand I would need a level converter, but how complicated is the software to...

How hard is it to use an McBSP as an RS-232 serial port? I understand I would need a level converter, but how complicated is the software to write? Is there any free code from TI which will do this? -Mike


McBSP as GPIO

Started by mahmood molaei in TMS320c54x18 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 and DMA syncronization problem

Started by m_mo...@yahoo.com in TMS320c54x15 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...


Sign extension

Started by Leigh Wells in TMS320c54x27 years ago

Can anyone tell me the fastest way to sign extend a value in data memory? I need to sign extend every piece of data that comes in...

Can anyone tell me the fastest way to sign extend a value in data memory? I need to sign extend every piece of data that comes in through the McBSP using the DMA on '5410. Thanks, Leigh Wells Electrical Engineer Acoustic Positioning Research


54x DMA Initialization

Started by Leigh Wells in TMS320c54x27 years ago 1 reply

Hi, all. I'm setting up the DMA for use with the McBSP on the '5410. I have set it up similar to how it is illustrated in...

Hi, all. I'm setting up the DMA for use with the McBSP on the '5410. I have set it up similar to how it is illustrated in SPRU302 pg. 3-50. Using the emulator and DMA channel 1, the DRR1_1 gets loaded with data from an A/D I have implemented, but I can't get the data to move f


SPI mode for 5409

Started by nikhil rao in TMS320c54x25 years ago 1 reply

I am trying to do read and writes using the SPI mode on the MCBSP. I can see the correct signals (data, clk and fsx) for writes but...

I am trying to do read and writes using the SPI mode on the MCBSP. I can see the correct signals (data, clk and fsx) for writes but for reads, clk toggles from 0 -> 1 and fsx toggles from 1->0 and then stays there, has anybody seen this ??? I am not using the DSK. Thanks


Interrupt von DMA Channel 0

Started by T.Hupp in TMS320c54x25 years ago 3 replies

Hi there, I'm just implementing a DMA transfer in ABU Mode from the McBSP to internal Memory. Everything works correct,...

Hi there, I'm just implementing a DMA transfer in ABU Mode from the McBSP to internal Memory. Everything works correct, but - when I use DMA Channel 0 I was never able to get an IR from the DMA. I have tried the same (with the same code) for DMA chann