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

Comparator & Interrupt Base Programming πŸ”΄ PIC Microcontroller Programming Tutorial #18 MPLAB in C

4.9K views on YouTube

In this PIC programming tutorial I will demonstrates how to setup the comparator and using the internal voltage reference to trigger a LED output based on an external voltage input. Along with the comparator the video show how to program the PIC with interrupts to enter sleep state and wake when there is a state change on the inputs or an internal interrupt trigger from the timers or analog to digital converter. Using the XC8 compiler with MPLAB X and a PIC18F4520 PIC microcontroller.

Git Repository
https://github.com/Devilbinder/PIC_18F_Comparator

βž₯βž₯βž₯ SUBSCRIBE FOR MORE VIDEOS βž₯βž₯βž₯
https://www.youtube.com/bindertronics?sub_confirmation=1

Facebook β–Ά https://www.facebook.com/BinderTronics
Twitter β–Ά https://twitter.com/BinderTronic

Part List β–Ά https://bindertronics.com/shop

β˜•Coffee Fundsβ˜•
Shekels
https://www.paypal.me/bindertronics9/5
Patreon
https://www.patreon.com/BinderTronics
Bitcoin
19nohZzWXxVuZ9tZvw8Pvhajt5khG5mspW
Ethereum
0x5fe29789CDaE8c73C9791bEe36c7ad5db8511D39

00:00 Intro
00:07 PIC Microcontroller Schematic
00:57 PIC Microcontroller Datasheet Comparator
07:40 PIC Microcontroller Datasheet ADC
08:37 PIC Microcontroller Datasheet Timer
09:18 Code Overview p1
11:57 Code Comparator
13:17 Code Overview p2
15:03 Code Demo Comparator
16:00 Outro

#picprogramming #picmicrocontroller #MPLAB