- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I would like to convert and move 8 bit data in one SRAM buffer into 16 bit data in another SRAM buffer. The data bytes can be twinned, as I will be interpolating using the Digital Filter Block later on.
I have used DMA to move data from SRAM to Peripheral, and Peripheral to SRAM, but early on my attempts to move from SRAM to SRAM did nothing. I'm sure I will figure it out now, since I *have* to. <grin>
I would like to do this at as high a speed as possible. I guess I could DMA into a register and then DMA out of a register; however, PSOC only supports 8 bit registers.
Any suggestions?
Thanks in advance!
- Labels:
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
wsm,
moving data with CPU will be faster. To use intermediate location for DMA transfer look at similar example by "pavloven"
http://www.cypress.com/comment/348136#comment-348136
I believe you can feed the Filter directly with 8-bit data, while shifting bit by using Filter Alignment (and Coherency) properties. Check e.g. this example