I am using a MKE18F microcontroller, and am having a hard time figuring out how the Low Speed, Normal, and High Speed clock modes work.
The SCG module has RCCR, VCCR, and HCCR registers. The RCCR is for Normal Clock Control, VCCR is for Very Low Power Clock Control, and HCCR is for High Speed Clock Control. There is also the CSR register that shows the configuration set by one of the clock control registers I just mentioned.
I had a few questions on this topic:
1. I was wondering if there is something you can check to see what xCCR register the CSR is currently reflecting?
2. How do I enter the different clock modes (Normal, High Speed, Low Power)? Do I just set the VCCR to what I want if I want Low Power Mode? And RCCR if I want normal mode?