bitfield dma transfer

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

cross mob
IvanoBono
Level 3
Level 3
25 sign-ins 10 sign-ins 10 replies posted

Hi,

I would need to make a copy of a bitfield at the event of an interrupt. currently i do this using an interrupt of a cpu but i would like to exploit the dma to make this copy freeing the load from the cpu. is it possible to configure the dma to copy a single bit instead of an entire byte?

0 Likes
1 Solution
LaneYE
Level 3
Level 3
25 sign-ins 10 replies posted 5 replies posted

I am afraid it's impossible to configure the DMA to copy a single bit. Because the atom of DMA read/write is one DMA Move, and the move data length must be above 1 byte(8-bit/16-bit/32-bit/64-bit/128-bit/256-bit). Pls see CHCFGRc.CHDW register for more information.

View solution in original post

1 Reply
LaneYE
Level 3
Level 3
25 sign-ins 10 replies posted 5 replies posted

I am afraid it's impossible to configure the DMA to copy a single bit. Because the atom of DMA read/write is one DMA Move, and the move data length must be above 1 byte(8-bit/16-bit/32-bit/64-bit/128-bit/256-bit). Pls see CHCFGRc.CHDW register for more information.