So I'm trying to set up a very simple periodic interrupt on my STM32VL-Discovery board using the libopencm3 libraries on linux. I've looked at the documentation and I just want to verify with somebody that I understand what's going on.
My understanding is that the prescaler register scales the internal clock to another frequency/clock that the timer actually sees. i.e. you set the timer prescaler register to 24Mhz/DesiredHz to get the timer to operate at the desired frequency. Is this correct?
Assuming that's correct, say I want to generate an interrupt on every timer clock cycle. I didn't see anything in the docs that would allow me to do that besides setting the period register to 1. This would generate an overflow interrupt every clock correct?