AnsweredAssumed Answered

Capturing GPS Seconds Pulse STM32F1xx

Question asked by on Apr 20, 2015
Latest reply on Apr 20, 2015 by

i have an external GPS signal that delivers seconds pulses (a short pulse every second).
My goal is to count seconds in SW and trigger some actions every X seconds.

Question a) I intend to use EXTI interrupt on every rising edge and count to a certain total in SW. But, what do you think would be the proper method of doing this? A timer input capturing better than EXTI, you think?

b) What should be the timer config for TMR_PSC and TMR_PERIOD for the best precise detection, if you think Timer IC is better (timer freq is 24Mhz)?