K65 PDB0_MOD

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

K65 PDB0_MOD

Jump to solution
987 Views
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 Kudos
Reply
1 Solution
823 Views
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

View solution in original post

0 Kudos
Reply
3 Replies
823 Views
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 Kudos
Reply
824 Views
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 Kudos
Reply
823 Views
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 Kudos
Reply