7 Replies Latest reply on Sep 25, 2017 1:46 PM by user_182022787

    How to generate step pulses for a stepper motor using PWM or counter ?




      I am developing a cnc controller using a CY8CKIT-049-41xx kit. For this I need to generate specific number of pulses of set pulse width (equal pulse widths no PWM), pulses for both X and Y axis is required.


      The first approach I used consists of pulsing an output high and low, however I also want the kit to send back UART data to a PC. There must be no delays as this can affect the pulse motion.


      Is this possible to do this using PWM or the Counter components, ?


      My scheme is to do this...


      I set the pulse widths, count values, then start the pulsing, since the main program loop is not involved in the actual pulsing I can send data to a PC via UART using the UART component