In both programs you posted you are not calling any of the component macros of the timer component. This as I said is problematic.
Aha Leigh beat me to itAs you're not calling any of the component macros that can cause problems in the code generation.