1 Reply Latest reply on Nov 7, 2017 1:48 AM by JoMe_264151

    How to fire pulse using button on PSoC 4?


      I am using PSoC 4 CY8CKIT042 BLE Pioneer kit. I want generate pulse when I press a button and count the number of  pulses by capturing them and firing them on serial port. I am using CY8C4248LQI-BL583.

        • 1. Re: How to fire pulse using button on PSoC 4?

          Divide et impera.


          When I understand you right:

          1. Enable the pulse counter
          2. Enable UART
          3. When push the button (read pin) a stream of pulses is generated -> Start a PWM
          4. When button released (read pin) -> Stop the PWM, read pulse counter, convert to ASCII, send via UART, clear Pulse counter
          5. Loop to 3.


          Try to implement and test one part after the other, use the debugger, use comments in your code