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

nRF52 direct access to EasyDMA

Hello,

Is it possible to use EasyDMA directly with nRF52 SDK without using one of the higher level libraries that use it, i.e SPI / UART? I am interested in implementing something similar to Octows2811.

I also looked at the PWM module for this but it seems like it has a max frequency of 200 kHz which is too slow for what I am trying to do.

Thanks!

Parents
  • Of course you can - it's all documented in the manual - you just set up the registers and let it roll.

    Note that EasyDMA has quite a few anomalies on the preview chips, so ensure you're using hardware resources which are actually working.

  • Yes you can have from-memory waveforms, you can even change the top counter limit to change the frequency as you go although you wouldn't need to. That documentation is very dense however and since the preview chip didn't have PWM working, I've not looked at it in detail. 5us is quite long isn't it, that's 320 clock cycles, or 80 16MHz cycles if you're thinking in terms of that peripheral clock. I'd have though easyDMA would be able to load and update the registers faster than that. You want 1.25us however and that really is quite short.

    If I had a chip with working PWM, I'd be tempted to try it and see how fast I could make it go reliably.

Reply
  • Yes you can have from-memory waveforms, you can even change the top counter limit to change the frequency as you go although you wouldn't need to. That documentation is very dense however and since the preview chip didn't have PWM working, I've not looked at it in detail. 5us is quite long isn't it, that's 320 clock cycles, or 80 16MHz cycles if you're thinking in terms of that peripheral clock. I'd have though easyDMA would be able to load and update the registers faster than that. You want 1.25us however and that really is quite short.

    If I had a chip with working PWM, I'd be tempted to try it and see how fast I could make it go reliably.

Children
No Data
Related