3 Replies Latest reply on Jan 15, 2018 2:07 PM by user_9986863

    How do I generate the specified number of high speed pulses(CY8C24894)

    Ranny.Lou_1827656

      Hi everyone,

      I need to generate 30 high speed pulses reach 12MHZ ,

      so I try to control GPIO pin as following code to achieve my purpose but its speed is around only 1MHZ

      for (i=0;i<15;i++)

      {

      PRT5DR&=~0x02;

      PRT5DR|=0x02;

      }

      I try another way using other user modules like Counter, Timer or PWM, their speed can reach 12MHZ but I can't stop them immediately when counting to the specified number I want, even I use interrupt.

       

      Dose anyone can give me a suggestion for this?

      thanks~~