This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

TWI - Easy DMA

Hi,

I have some troubles using TWI easy DMA. I set EASY_DMA flag to 1, but I can't see any results in my performance tests. Can anyone explain me the required steps?

Thanks!

Parents Reply
  • Hi Roei,

    That's not that too big of packets, could you test with 255 to see if you get any higher throughput.

    (btw. the nrf52840 supports 16 bit MAXCNT register, so you could send 65535 bytes in one transfer)

    Anyway, the TWI has to send an address for each new transfer, including start/stop/repeated start bits which takes throughput. 

    Most likely it takes a few µs each time you have to update the buffer, etc. You should also make sure that you do not do anything special in the callback handler that could slow things down. (Like logging etc.)

Children
Related