I am using the MIMXRT1050 board with Keilv5 Pro edition. I am working with the Quad Timer (QTMR) and I want to set the timer count to 1 second. Looking at the manual, it states that the QTMR timers all use the IP Bus Clock Frequency, and the QTMR_SetTimerPeriod function uses a 16 bit register to set the count.
This means that the max timer count time with a prescaler of 128 is 65535 resulting in a 55ms timer. Is there anyway to change the clock to the OSC_CLK or a slower clock? How can I use the QTMR timer to a higher count time?
My goal is to use the QTMR timer to clear the OFLAG when the counter time is reached. I will be changing the count time during runtime. Is there a way to do this with the current setup of the QTMR?
Also if I set the OUTMODE register to "Clear OFLAG output on successful compare (001), do I still need an interrupt for the timer or just hitting the count will work?
I will be setting the OFLAG using Force OFLAG Output bit.