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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

720件の閲覧回数
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 <<<)))

ラベル(1)
0 件の賞賛
返信
1 返信

594件の閲覧回数
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 件の賞賛
返信