How to DMA from 32bit Counter to 32bit Shiftregister

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hi,

   

 

   

I need to transport 32bit from Counter to a 32bit shiftregister.

   

The direct way would be:

   

SR_OUT_WriteRegValue( Cnt2_ReadCounter() );

   


Cnt2_ReadCounter for itself reads the counter register from the STATICCOUNT_LSB_PTR register after pseudo-reading COUNTER_LSB_PTR.

   


What is the right way to do this without cpu interaction, e.g. dma transfer?

   

Thanks.

0 Likes
3 Replies
Anonymous
Not applicable

 any idea? 

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

I didn't try it yet, but my idea would be to

   

1st define what the trigger for the DMA should be.

   

2nd. Connect a DMA from counter to SRAM storing data in an array. Verify working

   

3nd. Connect a DMA from a SRAM array to the shift-register and verify working.

   

4th discard one of the DMAs and set the parameters accordingly into the second DMA

   

 

   

Now this should work.

   

give it a try

   

Bob

0 Likes
Anonymous
Not applicable

 Hmm..

   

 

   

The problem is, that I do not know the correct counter register for dma transfer.

   

 

   

Which one should it been?

   

 

   

Thank you!

0 Likes