1 Reply Latest reply on Jan 24, 2020 9:57 PM by MoTa_728816

    using timers, PSoC

    AmCi_3754291

      Hey,

       

      Probably a nube question but here it goes.

       

      I was trying to use a timer to time stamp the occurrence of a task in my application.

       

      I tried starting from the iotExpert project that I found here: https://iotexpert.com/2017/05/17/psoc-5-timer-circuit-debug/

       

      However, I never seem to get a counter reading. My period is always 9999 and I can't figure out what I'm doing wrong.

       

      Please find attached a bundle of my project

        • 1. Re: using timers, PSoC
          MoTa_728816

          Hi,

           

          I think you assumed that the initial level of Channel_1 is low with

          001a-Channel_1_pin.JPG

          But since it's an open drain bidirectional, I'm afraid that you need an external pull down or external signal attached.

          So I changed the Channel_1 to a Resistive pull down

          001-Channel_1_pin.JPG

          Then your program seems start working.

          000-teraterm-log.JPG

          If you had an external signal attached to the pin, may be the initial project was also working.

           

          moto