This is ported code from a working project using 908QY4. I can't seem to get the TPM TOF to be set at proper values.
I load the modulo $FFFE, then time an event based on not overflowing at a particular prescale value. On overflow, I set the prescale higher and retime.
I'd use the MTIM (Boy does that look like the QY TPM), but it's 8 bit, I need 16.
The TOF is being set not by any predictable manner I can see, sure isn't modulo overflow. Somebody got a clue for me? TNX <<<)))
Hi Sargent,
Your code is expected. one point you may take care:
1. TPMv3 get a coherency mechanism that means some registers like modulo, channel value...can't be updated immediately if CLKSB:CLKSA not = 0:0.
B.R
Weiping