understanding timer terms
I have a 32f769i-disco board that has limited pins exposed on an arduino connector. I need what is termed a "capture compare timer" and I'm not sure I understand it. the capture compare time was used on the arduino version of this code.
1) I've setup timers that overflow, reload and keep counting. No issues there. I've not been able to get the count by count interrupt but I can read the counter duing overflows.
2) I've setup pins with external interrupts and when interrupted, I can read the timer counter again. This pin is just an exti configured GPIO pin and has nothing to do with the timer.
3) If I understand it correctly, a capture compare timer runs along, generating interrupts on overflow but also can be interrupted on another pin and with low latency, provide the current timer count, correct? This interruption comes on a different pin from the timer as I'm using a highly accurate external signal for the counter.
4) When this 2nd pin is interrupted, I need a low latency count of the timer external interrupt pin, not the overflow. Then I would like to just let it keep running so as to not un-sync the timer. So the timer counts along and every 10ms it overflows. I can count the oflows, and grab the counter, no problem.
5) the 32f769 board doesn't have a lot of pins exposed and I've been using timer3. timer 3 has channels ch1-ch4, has itr0-4 pins and etr and filtered pins. I've read through the timer cookbook but I just don't seem to understand what pins I can feed a clock into and then what pin I should use as a trigger, if that is the proper term. It's not a gate. In the timer cookbook they have a drawing with all the pins and I've tried a lot of them. I can get the overflow interrupt but not the counter interrupt. I can read the counter of course but thought there is a better way than that below.
6)Is it really that much difference if I just save the overflows and timer count during an exti on an unassociated timer pin? Or is timer capture compare the bet way to do it??
7) Though I didn't set it up, on my last build, the system setup an overflow count that ticks as well on timer 6. It looks like it is reading an external pin, and gives me everything that I want but I don't see timer6 listed as being available for capture compare??
any hints would be appreciated.
Thanks in advance. Everyone been very helpful.
Jerry