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.

  • Usually the CPU configures the TWI peripheral and starts an operation, then goes to sleep. If it is a TX operation, EasyDMA can be used by TWI to read the data directly from RAM, while the CPU is sleeping. If it is an RX operation, EasyDMA can be used by TWI to write the data directly to RAM, while the CPU is sleeping. After an operation is complete, the TWI can trigger an interrupt to wake the CPU to take appropriate action.

Reply
  • Usually the CPU configures the TWI peripheral and starts an operation, then goes to sleep. If it is a TX operation, EasyDMA can be used by TWI to read the data directly from RAM, while the CPU is sleeping. If it is an RX operation, EasyDMA can be used by TWI to write the data directly to RAM, while the CPU is sleeping. After an operation is complete, the TWI can trigger an interrupt to wake the CPU to take appropriate action.

Children
No Data
Related