Reply by "Paulo Ricardo [Delfos]"●June 3, 20092009-06-03
I'm new in DSP programming and I have trouble moving data from ADC to my
buffer.
The device is a F2808. I want to get the max speed from ADC (~6MSPS), but
due my copy routine inside the interrupt I can get only ~1.5MSPS. I'm
using
8 consecutive acquisitions in 2 channels (interleaved). At end of 8th
acquisition my adc interrupt is called. The entire code is written in C and
inspecting the asm code generated I can see that is too much instructions to
be processed, growing up my acquisition time.
Then I decide to do it in asm, but my knowledge in asm is near zero. I had a
pointer to my buffer and another that's points to AdcRegs.ADCRESULT0.
Can
anyone send the asm code that copy data (uint) from the second pointer to
the first pointer?
TIA
-Paulo
_____________________________________
Reply by "Paulo Ricardo [Delfos]"●June 8, 20092009-06-08
My code is just running in RAM. What I need is a high efficient copy routine
in asm.
-----Mensagem original-----
De: n... [mailto:n...] Em nome de
mr_raffa
Enviada em: quinta-feira, 4 de junho de 2009 00:03
Para: Paulo Ricardo [Delfos]
Assunto: Re: [c28x]: moving adc data
--- In c..., "Paulo Ricardo [Delfos]" wrote: >
> I'm new in DSP programming and I have trouble moving data from ADC to
my
> buffer.
>
> The device is a F2808. I want to get the max speed from ADC (~6MSPS), but
> due my copy routine inside the interrupt I can get only ~1.5MSPS. I'm using > 8 consecutive acquisitions in 2 channels
(interleaved). At end of 8th
> acquisition my adc interrupt is called. The entire code is written in C and > inspecting the asm code generated I can see that is
too much instructions to > be processed, growing up my acquisition time.
>
> Then I decide to do it in asm, but my knowledge in asm is near zero. I had a > pointer to my buffer and another that's points
to AdcRegs.ADCRESULT0. Can
> anyone send the asm code that copy data (uint) from the second pointer to
> the first pointer?
>
> TIA
> -Paulo
>
Hi,
I suggest you to read SPRA958 from TI, specially the section named "Copying
sections from FLASH to RAM"; this increase your code's speed execution.