
The basic PSoC 5 Timer functionality is as follows: the counter register starts at the “period”.
#PSOC SOFTWARE FULL#

trigger (a signal to start counting – either rising or falling edge).capture fifo (a place to store the counter value when a capture event occurs).period (a register which holds the value to put back into the counter when the 0 is reached).
#PSOC SOFTWARE 32 BIT#
#PSOC SOFTWARE CODE#
The UDB based timer is synthesized from RTL, Datapath and Code into the Universal Digital block which exits in all three of the PSoCs 3/4/5. The two fixed-function timers (TCPWM and “Fixed Function” are implemented as hard blocks in the silicon of PSoC3/5 and PSoC4 (TCPWM) which saves silicon area.

#PSOC SOFTWARE SOFTWARE#
Explain the debugging process of my software project.Explain a minimally changed software based solution.Show the problems in the original implementation.Explain the Cypress PSoC 5 Timer functionality.I thought, “OK, that makes good sense, we will do that”.

I can easily do this on an Arduino using pin change interrupts but I wanted to implement this on a PSOC so I decided to use the timer component”. The original email says “ I am simply trying to measure the pulse width of a signal that ranges from 1 to 2ms. RC, thats wireless right? that counts as IoT, right :-)? This article doesn’t really have much to do with IoT, except that the engineer who sent me the problem originally is using an RC servo motor remote control (I think). I explained my problem and literally 10 seconds later he gave me a good fix, which I implemented and then sent off to the customer. So, I called my PSoC secret weapon, specifically, the bad-ass engineer Greg. Finally at 3:08 (yes exactly 3:08) I stopped because there was one part of my solution that I didnt like. Sunday around noon I posted a couple of working projects to the forum… but… and there is always a but … I didn’t really like the answer so I kept working on it. I always like using PSoC 5, so I looked at it for a while (until my wife started yelling at me about working), then right before bed, I sent him a short statement of the cause and told him that I would send the project on Sunday. He had already posted on the Cypress forum and did not have functional answer. Then, after dinner I checked my email for where I found an email from a customer in California who was having a problem with a PSoC 5 Timer. I spent all day Saturday working on the firmware for the next post in my series of articles about PSoC4 BLE Centrals.
