Before sending any command to CPCR register please perform the following.
1. Clear entire DPRAM by filling it by zeros
2. Issue "reset" command by setting CPCR[RST] along with CPCR[FLG] flag.
3. Wait for FLG bit cleared.
After this procedure you can begin initialization of CPM peripherals and issue commands to CPCR.
Have a great day,
Alexander
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------