• Buradasın

    STM32 Timer Blockta Giriş Kaydı (Input Capture) Kullanımı

    youtube.com/watch?v=PeF6ddFf5to

    Yapay zekadan makale özeti

    • Bu eğitim videosunda Mehmet, STM32 mikrodenetleyicilerinde Timer bloğunda Giriş Kaydı (Input Capture) özelliğinin nasıl kullanılacağını göstermektedir.
    • Video, STM32 CubeMX programında bir proje oluşturma ve yapılandırma aşamalarıyla başlıyor. Ardından Timer bloğuna giriş kaydı özelliğinin nasıl ekleneceği, ayarlarının nasıl yapılacağı ve kodun nasıl yazılacağı adım adım anlatılıyor. Son bölümde ise oluşturulan proje STM32 Studio programında derlenip, bir basılış düğmesi ile test ediliyor. Video, giriş kaydı özelliğinin zaman ölçümü gibi uygulamalarda nasıl kullanılabileceğini gösteriyor.
    Introduction to Input Capture in Timer Block
    • Input capture is the most important and preferred feature for saving the amount of something that the timer counts.
    • Input capture allows you to save a specific count value when a certain event occurs.
    00:50Setting Up the Project in STM32CubeMX
    • Open STM32CubeMX and create a new project.
    • Configure the timer settings, selecting internal clock for input capture.
    • Set the prescaler to 8000 and the auto-reload register to 10000.
    03:33Configuring Timer Channels and Filters
    • Enable the input capture interrupt in the NVIC settings.
    • Configure the input filter to capture the amount of time counted.
    • Save the project with a name like "input_capture".
    04:33Writing the Code
    • Open the project and go to the main.c file.
    • Implement the input capture function and place it under the initialization in the while loop.
    • Define the input capture callback function.
    06:33Implementing Input Capture Functionality
    • The input capture callback function is triggered when the input capture event occurs.
    • Set the timer counter to zero and enable the input capture interrupt.
    • Save the captured count value when the event is detected.
    09:27Programming and Testing
    • Program the board using STM32CubeProgrammer.
    • Import the project into STM32CubeIDE.
    • Run the project and observe the counting and input capture functionality with a push button.

    Yanıtı değerlendir

  • Yazeka sinir ağı makaleleri veya videoları özetliyor