Skip to main content
eittinfo
Associate II
November 20, 2016
Question

Extract Some Data From A Signal By Timer

  • November 20, 2016
  • 2 replies
  • 521 views
Posted on November 20, 2016 at 01:33

Hi Guys

i have a board(a) and this board send some async data with clock to my stm32f4 device.

in this data transferred by board(a) have some dummy clock and i want reject this dummy clock.

0690X00000603DCQAY.jpg

i want to capture input clock by timer and count clock and make a signal like signal3 on above picture.

signal3 will connect to a buffer chip OE (Output Enable) pin to accept real data & real clock and reject extra dummy clock.

how can i do this by timer?

data input clock from board(a) is around 20MHz.

tnx for help me
    This topic has been closed for replies.

    2 replies

    Tesla DeLorean
    Guru
    November 20, 2016
    Posted on November 20, 2016 at 03:05

    20 MHz is on the high side, might be better addressed with logic than a general purpose timer.

    Perhaps you can use the timer in external clock mode, and the output channel in PWM mode, rising edge with CCRx and falling edge with Update. Or perhaps Toggle mode?

    Or external clock mode driving TIM, driving DMA, to GPIO BSRR

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    eittinfo
    eittinfoAuthor
    Associate II
    November 21, 2016
    Posted on November 21, 2016 at 23:54

    hi 

    tnx

    could describe more pls?

    i want use this 20MHz clock as timer clock source.

    so which timer mode could make a signal like signal3 in picture and how?

    tnx for your replay