This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Your source code is not easy to read without the line formatting. Can you improve the line formatting for this view of the source?
Not all simulators support the timer. Which exact simulator and which version of CCS are you using? In the comments with each simulator, it will list all of the components that are modeled; check if the timer is included.