Sign in

username:

password:



Not a member?

Search c54x



Search tips

Subscribe to c54x



c54x by Keywords

5409 | 5416 | AD5 | ADC | BIOS | Boot | Booting | Bootloader | C540 | C5402 | C5409 | C5416 | CCS | Codec | DMA | Dmad | DSK | DSKPlus | Dsplib | EVM | FFT | FIR | Flash | GPIO | HPI | Initialization | Interrupt | JTAG | LOG_printf | MCBSP | RFFT | RTDX | Sampling | STLM | UART | VC540

Ads

Discussion Groups

Discussion Groups | TMS320C54x | Dma element counter, Texas 5402

Technical discussions about the TI C54x DSPs (including the c5401, c5402, c5402a, c5404, c5407, c5409, c5409a, c5410, c5410a, c5416, c5420, c5421, c5441, c549, c5470 and c5471).

  

Post a new Thread

Dma element counter, Texas 5402 - Torgeir Jakobsen - Nov 26 15:50:00 1999



I use the DMA channel 0 to send data to the DXR11 register ( transmit
register McBsp1 ) and the DMA channel 1 to receive data from
the DRR11 register (receive register McBsp1 ). The McBsp1 serial port
is connected to a Texas ADC ( TLV 1570 ).
The clock and frame sync is generated from the internal sample rate
generator.
The DMA element counter registers are set equal to the number of
samples from the ADC. I check these registers to see when the
sampling of the ADC is finished ( element counter=0 -> sampling
finished ).
It looks like the element counter registers start decrementing before I
enable the DMA channel, receiver, transmitter and sample rate
generator.

I have also seen something similar on DMA channel 2. I use the DMA
channel 2 to send data from the DSP to DXR10 register
( transmit register McBsp0 ). The McBsp0 is connected to a
microcontroller, and the microcontroller generates the frame and
clock signals.
For example, if I want to send 8 bytes, I have to set the element
counter register to 10. The correct value should have been one less
than the number of bytes, 8-1=7. Here it also looks like the element
counter start decrementing to early. The bytes send out on the
serial port is correct, but the element counter has to be set equal to
10 to allow transmission of 8 bytes.
This is very strange. I assume that the trigger event to the DMA should
trigger both the element counter, the copying of data from
source to destination and the post increment of the adress index.

Have anyone else experienced anything similar to this problem ?

Best regards
Torgeir Jakobsen
e-mail:





(You need to be a member of c54x -- send a blank email to c54x-subscribe@yahoogroups.com )

Re: Dma element counter, Texas 5402 - Torgeir Jakobsen - Nov 29 10:53:00 1999

We found the problem ourselves. The serial port was disabled before all
the
bytes were send out. After the element counter is zero we have to wait
before
disabeling the transmitter.

Best regards
Torgeir Jakobsen
e-mail:




(You need to be a member of c54x -- send a blank email to c54x-subscribe@yahoogroups.com )