DMA Usage with CTU and S-RAM (MBD MPC574x)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

DMA Usage with CTU and S-RAM (MBD MPC574x)

723 Views
abhishek_kumar1
Contributor IV

Dear All

I am trying to use DMA to access the result of an ADC conversion.

I use PWM with 20KHz switching and enable the ADC sampling every 2 PWM cycles and strore the ADc results in CTU FIFO. 

pastedImage_1.png

I am using DMA Transfer to get the results and pass into SRAM (reg value : 0x40000000 - 0x4005FFFF)

pastedImage_5.pngpastedImage_6.png

When DMA transfer is complete, I want to read the value from the register.

Question

I can not use read register to read SRAM register values. How can I do this?

I have attached the model. 

Best Regards

Abhishek

mariuslucianandrei

rafael.barbosa@chassisbrakes.com

sudip.chattopadhyay@chassisbrakes.com

constantinrazvan.chivu

Tags (1)
0 Kudos
0 Replies