Welcome in the forum!
Can you please post your complete project (that one that doesn't work as expected), so that we all can have a look at all of your settings. To do so, use
Creator->File->Create Workspace Bundle (minimal)
and attach the resulting file.
I upload the project, Bob. I forgot to make a minimal bundle and made a complete one.. I hope that is not a big issue since the bundle is only 2MB even after all that.
I tested you project and suggest the following changes:
1) Change the 'Run mode' to 'Continuous'. In the project attached, it is 'One Shot(halt on Interrupt)'.
2) Include this line in the ISR:
This basically reads the status register of the Timer. If you read the datasheet carefully, you will see that the interrupt on TC is "sticky". So you have to read the Status register in order to clear the sticky Terminal Count (TC) bit in the status register.
I must have changed the Timer mode to "One-shot (halt on interrupt)" while tweaking things around figuring out why the initial setup did not work. I meant to use Continuous. Sorry about that.
Regarding the having to read the Status Register, I admit only wentthrough the datasheet anywhere it says "Interrupt." It never occurred to me that the interrupt is tied to the TC flag, which being cleared requires reading the Status Register.
It works now. Thank you,