How do I trigger the DMA with a PWM signal in the P4100S Plus?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
MiRo_263836
Level 5
Level 5
100 replies posted 50 likes received 50 replies posted

I am trying to generate a sine wave by using a PWM to trigger a DMA which writes a sinewave table to the IDAC.  This works fine on the CY8CKIT-043 (P4200M) but when I try to port it to the P4100S Plus (CY8CKIT-149)  I can get a hardware trigger to route.  Can you help?  I have attached my project for the P4100S Plus.

Thanks,

Mike Roberts

Arrow Cypress Specialist

0 Likes
1 Solution

Hello Mike,

PSoC 4100S Plus DMA can be triggered using TCPWM triggers. I have attached screen shot for reference. Please make use of section 5.1.1 Trigger Sources and Multiplexing of TRM for more details.

Could you please share the working sample project for PSoC 4200M?

pastedImage_3.png

Best Regards,

Geon

View solution in original post

0 Likes
4 Replies
MiRo_263836
Level 5
Level 5
100 replies posted 50 likes received 50 replies posted

I meant that I can't get the hardware trigger to route. I tried the line output from the PWM.  I tried sending the PWM line to a pin and then bringing that pin back in on a different digital input pin.  Can the Smart IO be used?   There is no DSI so I am not sure it is possible. Is the DMA only triggered in Software? 

0 Likes

Hello Mike,

PSoC 4100S Plus DMA can be triggered using TCPWM triggers. I have attached screen shot for reference. Please make use of section 5.1.1 Trigger Sources and Multiplexing of TRM for more details.

Could you please share the working sample project for PSoC 4200M?

pastedImage_3.png

Best Regards,

Geon

0 Likes
lock attach
Attachments are accessible only for community members.

I will try to OV signal. For the P4200M, I used a UDB PWM and changing the period based on the position of a 5 element slider.

Thanks,

Mike

0 Likes
lock attach
Attachments are accessible only for community members.
MiRo_263836
Level 5
Level 5
100 replies posted 50 likes received 50 replies posted

With your help, I got this working on the CY8CKIT-149 kit.  I have attached the project. It generates a Sinewave using a 100 element array that it DMA'd to the IDAC control reg. The frequency is from 160Hz to 13.3Khz using the 6 position slider on the -149 kit.

Thanks for the help

0 Likes