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

Set easyDMA

For Setting the easyDMA on I2C, Do I need just to set the TWI0_USE_EASY_DMA to 1 ?

Also do I need to set an arrayList? which?

or can I just use the same settings that I use for TIW as a regular TWI transmission, if this is the case: what is the difference that it has when I use easyDMA wrt I2C?

I am currently using it for taking data from a Inertial Sensor.

Is there any API for using easyDMA? or maybe an example?

In the case that I want to save data on the RAM, is easyDMA the only way of doing it?

Thanks!

Parents
  • For Setting the easyDMA on I2C, Do I need just to set the TWI0_USE_EASY_DMA to 1 ?

    If you are using the TWI driver, yes.

    Also do I need to set an arrayList? which?

    No.

    or can I just use the same settings that I use for TIW as a regular TWI transmission, if this is the case: what is the difference that it has when I use easyDMA wrt I2C?

    The same settings. EasyDMA allows peripherals to access RAM directly. See this for more information.

    Is there any API for using easyDMA? or maybe an example?

    This is an example.

    In the case that I want to save data on the RAM, is easyDMA the only way of doing it?

    If you want the peripheral to save data directly to RAM, yes. The CPU can of course read data from a peripheral and write it to RAM.

  • Thank you for your answer Peter, I have still one doubt. Can I use easyDMA for reading or writing data from a sensor using EasyDMA while the CPU is sleeping?Or it can be used only for writing/reading from the RAM? This is actually the reason of why I am thinking on using easyDMA. Thanks again

Reply Children
No Data
Related