Skip to content

PRO TIP Block youtube.com at the DNS level — Pi-hole, NextDNS or your hosts file — but allow youtube-nocookie.com and i.ytimg.com. These tutorials keep playing; the rabbit hole does not.

Learning without distractions

PIC MCU TUTORIALS #12 – Delays & Built-in delay functions (Absolute Beginner)

10.1K views on YouTube

In this video, I’ll talk about the delay functions available to you in MPLAB X IDE. I’ll also show you some basic calculations that shed light on how these functions work, along with an example…
___________________________
– “config.h” file download link (blinking LED example):
https://drive.google.com/file/d/1hUl_C1ZWJRcKVQpqIrJcaT369Z4Tl9Kd/view?usp=sharing

– “main.c” file download link (blinking LED example):
https://drive.google.com/file/d/1P4RiDGigd7xlLR6-Es4ZKIZyZkWY4s57/view?usp=sharing
___________________________
– Microcontroller used in the video: PIC18F46K22
– Programmer used in the video: PICKIT3
___________________________
– Why does my MPLABX IDE look different?:

___________________________
– Next video:

– Previous video:

___________________________
Timestamps:
[0:00] Start of the video
[0:38] Background knowledge about delays
0:38 What really are delay functions?
1:18 Frequency & Period
2:06 Delay example
[3:04] Delay functions in MPLAB X IDE
3:04 Delay function syntaxes and locations
4:48 Explaining the delay equations
6:54 Recapping delay functions
7:21 Explaining “_XTAL_FREQ”
[9:04] Limitation of delay functions
[10:17] Commenting about the usage of delay
[11:39] End of the video