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 - Наука
Full playlist on the PIC microcontroller Programming ruclips.net/video/KSI6fzOPVz0/видео.html
thank you for your videos, please make more
New one coming later today.
Binder Tronics very cool, thanks
Tqq so much
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
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
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 ?
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.
@@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.
Which software are you using?
ruclips.net/video/KSI6fzOPVz0/видео.html
ruclips.net/p/PLtuqBdbsL-DtSo1a9pS4sLkoaU3Or2pl3
More up to date version
ruclips.net/p/PLtuqBdbsL-DuQB1DQAowWUEhTdI4KCVIZ
any programming tutorial on external watchdog?
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.
@@BinderTronics or
MAX6373? how will you code that. thanks
@@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.
Sir,I need your guidance for my project. Can you please share your mail.? Thank you