Regarding RTIn_RTICPUC0 register in RTI timer module.
The following screenshot is from data manual regarding the description of this register which works as a prescaler
The deception mentions two equations:
1- if CPUC0 == 0 then freq = RTICLCK/2^32
2- if CPU0 !=0 then freq = RTICLCK/(CPUC0+1)
I have two questions here:
1-From what I understand there is no value which will pass the input frequency as it is. eg input frequency == desired output frequency. Please confirm or tell me about a way to pass the input frequency as it is.
2-There is something strange in the above two equations as they overlap in certain value e.g when
a-CPUC0 == 0 then freq = RTICLCK/2^32
b-CPUC0 == (2^32) -1 then freq = RTICLCK/(((2^32) -1 )+1) = RTICLCK/2^32
So according to the mentioned two equations CPUC0 == 0 and CPUC0 == (2^32) -1 results in the same result which is RTICLCK/2^32
So why is that?