This is selecting the fixed system clock, you want to set it to 0x0F to use the bus clock for the counter input. Are you sure that you are clearing the flags properly in your ISR? Have you checked to see if CH0F in TPM1C0SC is set or cleared?
awmark wrote:
TPM1SC = 0x17; // Overflow interrupt disabled, using bus rate clock, prescaler = 128
In a way it does, by saying X XX:00 but that is not clear.
However the QE128 manual says (p296 Table 16-5):
Setting ELSnB:ELSnA to 0:0 configures the related timer pin as a general purpose I/O pin not related to any timer functions. This function is typically used to temporarily disable an input capture channel or to make the timer pin available as a general purpose I/O pin when the associated timer channel is set up as a software timer that does not require the use of a pin.
Added p/n to subject.