Skip to main content
a_niedworok2
Associate II
October 21, 2010
Question

Frequncy counter on STM32

  • October 21, 2010
  • 7 replies
  • 1522 views
Posted on October 21, 2010 at 09:20

Frequncy counter on STM32

    This topic has been closed for replies.

    7 replies

    lowpowermcu
    Associate III
    May 17, 2011
    Posted on May 17, 2011 at 14:12

    Hi andrew,

    Do you want to measure the frequency/duty of an external signal ?

    I remembre that there is an example provided by ST that shows how to measure signal frequency.

    Herzlich,

    MCU Lüfter

    a_niedworok2
    Associate II
    May 17, 2011
    Posted on May 17, 2011 at 14:12

    Yes I want measure frequency/duty of an external signal (from two external sources).

    I heard that I can do so by using the PWM input mode for a timer 1 or 2.

    But I can not write this in the software.

    Can You help me in this case...

    Andrew

    arkarinimp
    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 14:12

    I can not find the example. Can you show me the example?

    Is it in Application Note?

    lowpowermcu
    Associate III
    May 17, 2011
    Posted on May 17, 2011 at 14:12

    Hi andrew,

    There is an example provided by ST that shows how to measure signal frequency.

    Check it then tell me ...

    MCI Lüfter,
    arkarinimp
    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 14:12

    Vielen Dank.

    Frohe Weihnachten und guten Rutsch ins Jahr 2011 :)

    lowpowermcu
    Associate III
    May 17, 2011
    Posted on May 17, 2011 at 14:12

    Hi arkar,

    You can download the ST library from the link below:

    http://www.st.com/stonline/stappl/resourceSelector/app?page=resourceSelector&doctype=FIRMWARE&FamilyID=141

    The name is ''ARM based 32-bit MCU STM32F1xx standard peripheral library''

    The example is located in:

    STM32F10x_StdPeriph_Lib_V3.4.0/Project/STM32F10x_StdPeriph_Examples/TIM/PWM_Input

    Good luck,

    Herzlich,

     

    MCU Lüfter

    lowpowermcu
    Associate III
    May 17, 2011
    Posted on May 17, 2011 at 14:12

    So viel dank arkar :)