cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC™ 4

MiRo_263836
Contributor II

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
GeonaP_26
Moderator
Moderator

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
Contributor II

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
GeonaP_26
Moderator
Moderator

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
MiRo_263836
Contributor II

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
MiRo_263836
Contributor II

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