Timer16 problems - resetting?? | Cypress Semiconductor
Timer16 problems - resetting??
I am getting ready to do a Real Project with a PSoC and am familiarizing myself with the toolset. We have a simple board with a CY8C20437, one debug LED, ISSP header, some capacitive switches and an I/O header.
I wanted to do a "hello world" by blinking my LED periodically. Fair enough...throw in an LED user module, can turn on and off. Well and good. Timer16...big problems. (Incidentally, I've gotten the same sort of idea to work with a Sleep Timer...and I'm not even sure I'll need a full timer on my project, but it's the thought that counts - I have to figure this out now, or it will bug me for weeks!)
Basically, my LED blinks every timer interrupt - even with no LED toggle call.
Yes, I put an lcall into the TIMERWHATEVER.ASM file. If I don't have it, or if I comment out either the Timer_EnableInt() or Timer_Start() call, the LED stays off. (I set the pin up to default on, then turn it off at the beginning of my code.)
If I didn't know better, I'd say it looks for all the world like I'm getting a watchdog reset. But I know better, because WDT is (was) disabled. Actually, the code I'm attaching has it enabled and fed quite regularly just in case (actually, if I don't feed the poor watchdog, the LED stays on all the time...another interesting data point).
Using PSoC Designer 5.4. Project and relevant schematic attached, although I really am just trying to follow the Timer16 d/s example. Some of the code is from other ideas I've been trying in order to troubleshoot, i.e. don't take it as exactly my project code (notice some things are commented out). Even without the other toggley count and toggley stuff I get the same problem.
I can't help but think that I'm missing something really simple here, but I just can't figure it out or find it in any UM d/s....
Anyhow, any and all help will be appreciated!