Hi,
How do I write to the PDB0_MOD register? PDB0_MOD = x is not working.
The registers view doesn't work either.
Thanks,
-Mike
Solved! Go to Solution.
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
Hi
After modified the value of MOD then click "Write" buttom, will not the period change?
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.
The setting of LDMOD and LDOK in PDBx_SC will impact when the MOD will update.
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
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
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