I am a starter in ARM programming and I am using MKE04Z8VTG4 MCU.
I am a bit unsure if I understood the reference manual correctly. If I use fixed frequency clock for timer clock source the frequency will be about 37.5kHz?
Is there any way to determine the exact frequency if I use 20MHz external crystal?
Also how do I determine the exact system clock if I use an external 20MHz crystal?
Are there any advantages/disadvantages for either of the clock sources (except the higher frequency of course)? I will require 10kHz frequency so I think it does not matter which one I choose.
Another problem I am having is writing to CnSC and CnV registers (FTM2). I can't seem to be able to figure it out how to do it.
For other registers I use for example: FTM2 -> POL |= (1 << 5)
So how do I write to these two in the same (similar) way?
I am still having a bit of problems figuring a lot of stuff out so I appreciate all the help (everyone was a beginner once) .
With regards, Jure