K65 PDB0_MOD

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
1,639件の閲覧回数
Mike_d
Contributor IV

Hi,

How do I write to the PDB0_MOD register?  PDB0_MOD = x is not working.

The registers view doesn't work either.

pastedImage_1.png

Thanks,

-Mike

0 件の賞賛
返信
1 解決策
1,475件の閲覧回数
Mike_d
Contributor IV

Hi Robin,

I was able to make the MOD update.  The register requires a write to LDOK for the update to happen. Thanks for pointing me in the right direction.

Regards,

-Mike

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
1,475件の閲覧回数
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi

After modified the value of MOD then click "Write" buttom, will not the period change?

pastedImage_1.png

PDBx_MOD[MOD] specifies the period of the counter. When the counter reaches this value, it will be reset back to zero. If the PDB is in Continuous mode, the count begins anew. Reading this field returns the value of the internal
register that is effective for the current cycle of PDB.

PDBx_MOD.png

The setting of LDMOD and LDOK in PDBx_SC will impact when the MOD will update.

PDBx_SC.png

Would you please tell us which example are you testing? Example in MQX or Kinetis SDK.
Which IDE are you using? CodeWarrior10.x or Kinetis Design Studio.

Best Regards,

Robin

0 件の賞賛
返信
1,476件の閲覧回数
Mike_d
Contributor IV

Hi Robin,

I was able to make the MOD update.  The register requires a write to LDOK for the update to happen. Thanks for pointing me in the right direction.

Regards,

-Mike

0 件の賞賛
返信
1,475件の閲覧回数
Mike_d
Contributor IV

Hi Robin,

That's correct, the write button in the register view does not change the MOD value.  I have a K65 and I'm using K64 PE generated code from CodeWarrior 10.7 as an example.  Multi-Link FX debugger.

Regards,

-Mike

0 件の賞賛
返信