Hello ufedor,
I have a question regarding the timers used for the watchdog. My T2080 system clock is 100Mhz. Now it states in the manual my platform clock is the ratio of the bits in RCW configuration. My configuration is 6:1 so my Platform clock is 600Mhz. For the time base register the clock is Platfrom clock / 16. The time base register also has a divisor which is set to 16. My time base clock then is 600Mhz/256. Now the equation I am using to calculate the bit to watch for the watchdog timer is:
period = 64 - (ln(time*600Mhz/256)/ln(2))
So in order to wait approximately one second I set the period to be 21. However when I use a printf() to show when my interrupt occurs it is way faster than 1 second. I was wondering if I am calculating my clock frequency wrong or something else is wrong. Also, if there is a way to create a loop that is approximately 1 second delay that might be better to verify my timing but I am not sure how to calculate it. Thanks for your help!