Skip to main content
freppa
Associate II
Jan 18, 2018 8:42 AM UTC
Question

Map Timer TRGO to GPIO

Posted on January 18, 2018 at 09:42

Is it possible to map timer trigger output signal to a GPIO pin. Typical use-case for my application is to trigger an external adc with the same signal which is used to trigger internal ADC on MCU. The MCU in question is F303.

    This topic has been closed for replies.

    1 reply

    waclawek.jan
    Super User
    Jan 18, 2018 9:22 AM UTC
    Posted on January 18, 2018 at 10:22

    Not directly. You can feed it as TRGI to other timer (if there's such link and the slave timer is available), and use it to trigger a one-pulse process which some of the outputs set to PWM. There will be some latency.

    It may be much simpler to use those ADC triggers which are sourced in TIMx_CCy, e.g. regular EXT0 (EXTSEL = 0) triggers from TIM1_CC1 event  event.

    JW