2021-01-08 08:45 AM
I have an application where I want an external input logic signal to capture a Timer counter value. In my situation the timing measurement is critical so I'm thinking of having the input signal trigger a Timer counter value capture and set a DMA interrupt.
I'm using the STM32G431 device and have read the Reference Manual but want to confirm: Does the input signal need to come in on a pin designated as TIMx_CHn or can I use a pin designated as GPIO input? The answer determines whether I need to rework a board :(
2021-01-08 10:53 AM
> Does the input signal need to come in on a pin designated as TIMx_CHn
Yes.
> The answer determines whether I need to rework a board
What's the current connection? Maybe there's a workaround.
JW
2021-01-08 03:35 PM
The device I'm using is the 48-pin STMG431C8Ux. This is for a motor control application so I'm already using TIM1 for the motor PWM. The pins in question are PB12 & PB13, shown below. I have the pins available to use TIM8_CH1 and TIM8_CH3 which on the board are now connected only to uncommitted test points. I could accomplish the change with two jumper wires then not use PB12 and PB13 (set them as reset mode).
.
Brian