cancel
Showing results for 
Search instead for 
Did you mean: 

Input Trigger capture sources on STM32G4xx

BTrem.1
Senior II

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 :(

2 REPLIES 2

> 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

BTrem.1
Senior II

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).

0693W000006I4vBQAS.jpg.

Brian