The TOF status flag doesn't seem right in a S08TPMV3 type module of an SH8.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

The TOF status flag doesn't seem right in a S08TPMV3 type module of an SH8.

714 Views
CustomSarge
Contributor III

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 <<<)))

Labels (1)
0 Kudos
Reply
1 Reply

588 Views
weapon
Senior Contributor I

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

0 Kudos
Reply