Fix Function Timer Component help | Cypress Semiconductor
Fix Function Timer Component help
I have been struggling to have the fixed function timer component to do what I need. I need a timer that starts when needed and then programmatically check the status of the timer to determine if the timer has expired. For the life of me I cannot achieve this with the FF Timer component. This is to be accomplished through software, no hardware connections or interrupts needed.
What am I doing wrong?
Please take a look at the attached project. It is a very basic test project. The idea is to start a timer, check for timer expiration and if so turn an LED on, if not turn the LED off. The timer is configured for "one shot" and I would have thought that once the timer expired the timer would not be reset. But it appears the simple act of reading the status register is resetting the timer and causing it to start. The bottom line is that in the supplied project the LED blinks continuously which not what I am attempting to achieve.