Watchdog Timer (WDT) 🔴 PIC Microcontroller Programming Tutorial #19 MPLAB in C

Поделиться
HTML-код
  • Опубликовано: 26 июл 2024
  • In this PIC programming tutorial I will demonstrates how to setup the Watchdog Timer (WDT) to wake the PIC microcontroller from sleep mode. Using the XC8 compiler with MPLAB X and a PIC18F4520 PIC microcontroller.
    Git Repository
    github.com/Devilbinder/PIC_18...
    ➥➥➥ SUBSCRIBE FOR MORE VIDEOS ➥➥➥
    ruclips.net/user/bindertronics...
    Facebook ▶ / bindertronics
    Twitter ▶ / bindertronic
    Part List ▶ bindertronics.com/shop
    ☕Coffee Funds☕
    Shekels
    www.paypal.me/bindertronics9/5
    Patreon
    / bindertronics
    Bitcoin
    19nohZzWXxVuZ9tZvw8Pvhajt5khG5mspW
    Ethereum
    0x5fe29789CDaE8c73C9791bEe36c7ad5db8511D39
    00:00 Intro
    00:15 PIC Microcontroller Datasheet WDT
    03:39 Code Overview
    03:49 Code WDT
    08:11 WDT Demo
    08:47 Outro
    #picprogramming #picmicrocontroller #MPLAB
  • НаукаНаука

Комментарии • 17

  • @BinderTronics
    @BinderTronics  4 года назад

    Full playlist on the PIC microcontroller Programming ruclips.net/video/KSI6fzOPVz0/видео.html

  • @easyamp123
    @easyamp123 4 года назад +1

    thank you for your videos, please make more

    • @BinderTronics
      @BinderTronics  4 года назад

      New one coming later today.

    • @easyamp123
      @easyamp123 4 года назад

      Binder Tronics very cool, thanks

  • @hareesh7021
    @hareesh7021 2 года назад +1

    Tqq so much

  • @suatkaleli5075
    @suatkaleli5075 2 года назад

    Hi Binder Tronics. Please explain that we will use wdt in such kind of real project and I want to make a project that a led will be on 3 times in a day for instant delay_hours(8); and output_high(led1), such programming is possible or I should use timer0 , timer1, timer2 specifiction?-thanks

    • @BinderTronics
      @BinderTronics  2 года назад

      WDT is there to prevent a MCU form stalling. I suggest using a RTC to switch your LED.
      ruclips.net/video/VsWx12BDuVo/видео.html
      ruclips.net/video/tu4vGNo6mvc/видео.html

  • @PerchEagle
    @PerchEagle 4 года назад

    Can I use it for saving my multitasking cooperative code from freezing up ? so how to use the WDT to be triggered only when the program freeze up ?

    • @BinderTronics
      @BinderTronics  4 года назад +1

      Yes you can. I use WDTs with FreeRTOS with no problems. Create a task or timer with low priority and reset the WDT in that task/timer. If you know witch task is locking up then put the WDT rest there.
      Note it's better to find what is causing the lockup.

    • @PerchEagle
      @PerchEagle 4 года назад

      @@BinderTronics Yep, you're right. Of course I should know the cause of the lockup, but you know in case if any external issue happened; like, missing a signal, hardware problem .. etc. But also I'm in the beginning, I have a lot to learn about designing systems.

  • @arpitmourya4814
    @arpitmourya4814 6 месяцев назад

    Which software are you using?

    • @BinderTronics
      @BinderTronics  6 месяцев назад

      ruclips.net/video/KSI6fzOPVz0/видео.html
      ruclips.net/p/PLtuqBdbsL-DtSo1a9pS4sLkoaU3Or2pl3
      More up to date version
      ruclips.net/p/PLtuqBdbsL-DuQB1DQAowWUEhTdI4KCVIZ

  • @SA-ys8eg
    @SA-ys8eg 3 года назад

    any programming tutorial on external watchdog?

    • @BinderTronics
      @BinderTronics  3 года назад +1

      74LS90 decade counter. Some sort of clock source (NE555 easiest). Microcontroller pin firing at a set interval to the 74LS90 reset. Output pin from 74LS90 (QD) to Microcontroller reset. Output pin (QD) from 74LS90 to 74LS90 reset. Most Microcontroller need a active low input to reset so the reset outputs may need a not gate.

    • @SA-ys8eg
      @SA-ys8eg 3 года назад

      @@BinderTronics or
      MAX6373? how will you code that. thanks

    • @BinderTronics
      @BinderTronics  3 года назад +1

      @@SA-ys8eg WDO to Microcontroller reset. Microcontroller pin firing (high low) at a set interval to WDI. SET0 - SET2 Table 1. Minimum Timeout Settings in the datasheet.

  • @hiteshkumar5204
    @hiteshkumar5204 4 года назад

    Sir,I need your guidance for my project. Can you please share your mail.? Thank you