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.
jofic_334026
Level 3
Level 3
First like received

I'm using the CY8C4247AZI-M485 to generate tones with the IDAC and DMA components.  I can create a custom sequence of tones.  The total duration of my sequence is 125 ms.  I repeat the sequence every second for a "beeping" effect.  I can initiate the beeping with a CAN message and I can stop it with a CAN message.  The problem I'm having is starting it again.  I have a feeling I'm not resetting my DMA channels properly.  What is the proper way to reset the DMAs?

0 Likes
1 Reply
jofic_334026
Level 3
Level 3
First like received

I submitted a support case and they got back to me almost right away! I wanted to post the answer on here.

   
// Disable the DMA  CyDmaChDisable(channel);  CyDmaFree(channel);
   

 

   
// Then to restart the DMA...  DMA_ChEnable();
   

 

   

 

   
 
0 Likes