- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Labels:
-
PSoC 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
any idea?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hmm..
The problem is, that I do not know the correct counter register for dma transfer.
Which one should it been?
Thank you!