Hello John, One change I would do is to not set the Timer into up mode until after your other settings are changed. This needs to be the last thing you do for the Timer starts counting as soon as that is set. You may also have to set Bit 7 on this device to the same bit settings found in the Pin Schematics section of the datasheet. P2.6 and P2.7 are linked here for they have to be used in tandem when using a LFXTAL. Beyond that, I would place a debug point in your main loop and double check the register settings to make sure everything is setup correctly. It could be something else you are setting up in your code is changing your pin setup.
↧