I got the frequency and timing figured out, an external 20MHz crystal will be used (the same as for the system clock).
Unfortunately I can not open the examples since I use Keil uVision5 and there is still the problem with CnV and CnSC registers.
Another question about the timer functionality.
When the value in CnV register reaches a predefined value (1562) it sets the output to high.
Will the timer still count until it reaches the value stored in MOD register?
If yes that means I can use the timer interrupt to clear the previously set pin?
For example: The timer counts to 100 and at 100 it sets a pin high and continues to count.
The value in the MOD register equals a time of 110 so when the timer counts to this value it sets the interrupt and resets.
In the ISR i then turn the pin low and disable the timer (I enable the timer in another ISR).
So the pin would be 100us low, then 10us high and then low again.
I hope I was clear of what I am trying to achieve and if this is even possible. I read the datasheet and nowhere was written that this could not work but I am still unsure if it is possible :smileyhappy:.
Thank you for helping.