cancel
Showing results for 
Search instead for 
Did you mean: 

Undocumented behavior of capture/compare registers

rbraun
Visitor

Hello,

I tried to set a capture/compare register to a value beyond that of the auto-reload register, and the timer I used (TIM8) behaved as if the value had not been written. Reading back gives the expected value though. I haven't dug more but I'm curious : is there some undocumented behavior that prevents the shadow capture/compare register from having the value of the preload register if that value is higher than the auto-reload register ?

Please don't ask why I would do such a thing, that's just not the point.

Thanks.

2 REPLIES 2

It doesn't sanity check the content, they are just registers, there might be a comparator or equivalence signal, but I'm pretty sure it doesn't limit the setting, but rather drives an output used elsewhere in the TIM implementation

Some one would need to dig into the RTL to determine specific implementation detail.

@STOne-32  

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

What is the behaviour to expect, and how is the observed one different from it? 

JW