1 Reply Latest reply on Aug 31, 2016 6:04 AM by JoMe_264151

    Toggling a pin in less time than 1Us




      I am toggling a pin continuously with Delay between toggling around 1us using the function CyDelayUs.


      Is there a way to toggle the ping faster than 1us? or in other words how do I create a delay less than 1us?



        • 1. Re: Toggling a pin in less time than 1Us

          Toggling a pin by CPU is a bit (or byte) old-fashioned. You are burning MIPS and there is no time for controlling or other things.


          Better use a PWM, feed it with 12 MHz and you can get an output with 1MHz frequency that is controllable in duty cycle and frequency with just a little effort.


          That's PSoC