50KHzPulse | mini project on STM 32 | 50Hz Line frequency detection | PWM pulse generation on STM32

แชร์
ฝัง

ความคิดเห็น • 9

  • @bennguyen1313
    @bennguyen1313 ปีที่แล้ว

    Any thoughts on general approaches to determine the frequency of a signal?
    For example..
    1a) Configure free-running timer, and whenever a transition is detected, the ISR code would read the timer's counter to compute the frequency
    1b) Configure Input-Timer Capture, where the timer value is latched when an edge is detected. The ISR code would read the timer's latched value to compute frequency
    2) Configure a timer for a specific period of time, and count the number of ISR interrupts due to edge transitions that occur during that time to compute frequency
    I've also seen some STM32 have pins that can be configured for "External Clock Input" Input, where the hardware peripheral automatically counts the number of transitions on the line! There's a post "External TRigger for TIMER 3" that even shows how a non-ETR pin (ex. CH3) can be used by as the input to the Slave Mode Controller (TIMx_CCMR1=1) by selecting the XOR of CH1,2,3 as the TI1 source (TIMx_CR2.TI1S = 1). However, I assume you still need a precise timer running to interrupt and see how many transitions were counted during that time?

  • @akshaykumbhar7507
    @akshaykumbhar7507 3 ปีที่แล้ว

    Good work

  • @mumbaikaladka6718
    @mumbaikaladka6718 3 ปีที่แล้ว +1

    Sir😇

  • @Vidpanas
    @Vidpanas 2 ปีที่แล้ว

    hello, it didnt work for me.
    In PLL SOURCE MAX i selected HSI instead of HSE and it worked. why is this happening

    • @stmetatronics6593
      @stmetatronics6593  2 ปีที่แล้ว

      Have you selected the correct clock source?

    • @Vidpanas
      @Vidpanas 2 ปีที่แล้ว

      @@stmetatronics6593 internal clock source yes

    • @stmetatronics6593
      @stmetatronics6593  2 ปีที่แล้ว

      Can you send screenshot?

  • @sushankka1410
    @sushankka1410 3 ปีที่แล้ว

    👌

  • @sanskarmaske456
    @sanskarmaske456 3 ปีที่แล้ว

    👍🏻👌🏻