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.

  • So basically TWI itself works the same with easyDMA enabled or not, the difference comes from where TWI is reading/writing the data when TWI is transmitting/receiving? Is this correct? Then, easyDMA is very useful only when we are dealing with the RAM of the nrF52, NOT related with the memory of, for example, a sensor that I have connected to the nordic Microcontroller. Thanks again

Reply
  • So basically TWI itself works the same with easyDMA enabled or not, the difference comes from where TWI is reading/writing the data when TWI is transmitting/receiving? Is this correct? Then, easyDMA is very useful only when we are dealing with the RAM of the nrF52, NOT related with the memory of, for example, a sensor that I have connected to the nordic Microcontroller. Thanks again

Children
No Data
Related