K65 PDB0_MOD

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

K65 PDB0_MOD

跳至解决方案
1,500 次查看
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,336 次查看
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,336 次查看
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,337 次查看
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,336 次查看
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 项奖励
回复