Microesque
Microesque
  • 26
  • 122 268
PIC MCU DEBUGGING #8 - Debug macro (Absolute Beginner)
In this video, I'll talk about the predefined macros in MPLAB X IDE and XC8 compiler, specifically the "__DEBUG" macro.
___________________________
- "config.h" file download link:
drive.google.com/file/d/1oYbaLrEpA7kMuveNtDkmMM_YHBX9wq34/view?usp=sharing
- "main.c" file download link:
drive.google.com/file/d/1YUXh6bH736jSO7zzGB4X_F26QZgST9tF/view?usp=sharing
- MPLAB X IDE User's Guide (page 104 for the macros):
ww1.microchip.com/downloads/en/DeviceDoc/50002027D.pdf
- XC8 C Compiler User’s Guide (page 233 for the macros):
ww1.microchip.com/downloads/en/devicedoc/50002053g.pdf
___________________________
- Microcontroller used in the video: PIC18F46K22
- Programmer/debugger used in the video: PICKIT3
___________________________
Why does my MPLABX IDE look different?:
th-cam.com/video/6LHv4dIbv_o/w-d-xo.html
___________________________
- Next video:
(TBD)
- Previous video:
th-cam.com/video/N6k7jgPHrKM/w-d-xo.html
___________________________
Timestamps:
[0:00] Start of the video
[0:18] What are macros & preprocessor?
[1:30] A relevant example
[4:29] Predefined macros (debug macro)
[6:24] End of the video
มุมมอง: 1 068

วีดีโอ

PIC MCU DEBUGGING #7 - Disassembly windows & Assembly instructions (Absolute Beginner)
มุมมอง 514ปีที่แล้ว
In this video, I'll talk about the "disassembly" windows in more detail, along with basic information about architectures and assembly instructions. Disassembly windows allow you to see the assembly equivalents of your C code, and there are many reasons why you may want to inspect this code. I'll talk about all of the disassembly windows, how to read them, and why do it in the first place in th...
PIC MCU DEBUGGING #6 - I/O View & SFRs Windows (Absolute Beginner)
มุมมอง 641ปีที่แล้ว
In this video, I'll talk about the "I/O Views" and "SFRs" windows, which are used to view SFRs. You can already do that using the "watches" window, which I talked about in the previous video. However, these two windows are specialized for viewing SFRs in particular... - "config.h" file download link: drive.google.com/file/d/1v2tbhX_jNZpI0_2XSPrjuTwu8FSbwI_Z/view?usp=sharing - "main.c" file down...
PIC MCU DEBUGGING #5 - Watches & Variables Window (Absolute Beginner)
มุมมอง 1.2Kปีที่แล้ว
In this video, I'll talk about the most important windows for debugging in the MPLAB X IDE called "watches" and "variables" windows. These windows allow you to view and change variables while actively debugging, and there's a lot more to them, which I'll be talking about as well... - "config.h" file download link: drive.google.com/file/d/148oIE3dxyuT0aV7aGtHU5rnmBpygjVqP/view?usp=sharing - "mai...
PIC MCU DEBUGGING #4 - Debug toolbar & buttons (Absolute Beginner)
มุมมอง 5692 ปีที่แล้ว
In this video, I'll talk about the debug toolbar and buttons I've been using to control the debugging process. I'll also explain how they work and show you their various use cases... - "config.h" file download link: drive.google.com/file/d/1Gm1JnATk5EDAstvsFpe-uPGc5xEVmbVQ/view?usp=sharing - "main.c" file download link: drive.google.com/file/d/1GeR1_66w8c7zK3MvyTU5XPZQudKcKsw-/view?usp=sharing ...
PIC MCU TUTORIALS #17 - Reentrancy & Volatile keyword (Interrupt traps) (Absolute Beginner)
มุมมอง 1.6K2 ปีที่แล้ว
In this video, I'll talk about the reentrancy problem and the "volatile" qualifier. These terms are related to issues caused by interrupts. These issues are more complicated than what I've talked about until now, but since I made videos about interrupts and recommended that you use them, I feel obligated to talk about them. I'll also explain multiple concepts to help you understand these issues...
PIC MCU DEBUGGING #3 - Breakpoints (Absolute Beginner)
มุมมอง 9592 ปีที่แล้ว
In this video, I'll talk about all of the breakpoints types available to you in the MPLAB X IDE. I already talked about how breakpoints work in previous videos in this series, but here I'll talk about the different types and how you can use them in MPLAB... - "config.h" file download link (base example): drive.google.com/file/d/1AYeXtLhFsjmV4gyrepSiCHj1V8N0DVH3/view?usp=sharing - "main.c" file ...
PIC MCU DEBUGGING #2 - How does debugging work? (Hardware, Builds, Skidding) (Absolute Beginner)
มุมมอง 1.5K2 ปีที่แล้ว
In this video, I'll talk about how debugging is implemented in both hardware (microcontroller) and in software (MPLAB X IDE). Since microcontrollers are hardware-oriented systems, the way debugging is implemented differs from a typical computer software. I'll also talk about a problem called the "skid effect" that arises from this fact and show you solutions to combat it... - "config.h" file do...
PIC MCU DEBUGGING #1 - Basic info & Example (Absolute Beginner)
มุมมอง 3.7K2 ปีที่แล้ว
In this series, I'll talk about the concept of debugging and the related tools available to you in the MPLAB X IDE. Debugging microcontrollers is a bit more complicated than debugging software written for our computers or phones since you're debugging a more hardware-oriented system that doesn't have many resources to begin with, which makes the process a bit more unique. So, in this video, I'l...
PIC MCU TUTORIALS #18 - Using LCDs & LCD library (Absolute Beginner)
มุมมอง 4.9K2 ปีที่แล้ว
In this video, I'll talk about the LCD library I wrote to use with those 2x16 and 4x20 LCDs you see people use with their Arduino projects. I'm adding this video to this series because I plan on using this LCD for my future videos too. Note 1: I added thorough descriptions on all of the functions, so you don't need to re-watch this video if you forget how a function works. Also, if I update the...
PIC MCU TUTORIALS #16 - Interrupt On Change (IOC) (Absolute Beginner)
มุมมอง 3.8K2 ปีที่แล้ว
In this video, I'll talk about the interrupt-on-change (IOC). IOC is another external interrupt source like the external interrupts (INT) I talked about in the previous video. IOC is similar to INT except that it is less straight-forward and more complex to work with. This video is, in a way, a continuation to my previous two videos explaining how interrupts work, how they're implemented, and h...
PIC MCU TUTORIALS #15 - External Interrupts (INT) & Interrupts in MPLAB (Absolute Beginner)
มุมมอง 6K2 ปีที่แล้ว
In this video, I'll talk about the external interrupts (INT). I'll also explain how to code interrupts in MPLAB X IDE in general with various examples. This video is, in a way, a continuation to my previous video explaining how interrupts work and how they're implemented, so I recommend watching that too if you haven't already... - Example files download (also includes the "config.h" file): dri...
PIC MCU TUTORIALS #14 - Interrupts & How do they work? (Absolute Beginner)
มุมมอง 5K2 ปีที่แล้ว
In this video, I'll talk about the concept of "interrupts", and how they're implemented in our microcontroller. This topic might be confusing for people who have never heard of or used it, but try to power through it, as knowing interrupts is an ABSOLUTE MUST when it comes to programming microcontrollers; there's just no way around it. If you still have trouble after watching this video, it's f...
PIC MCU TUTORIALS #13 - TRIS, LAT, PORT registers & I/O explained (Absolute Beginner)
มุมมอง 10K2 ปีที่แล้ว
In this video, I'll talk about TRIS, LAT and PORT registers. These registers are used to manipulate the I/O of PIC microcontrollers. I'll also talk about ANSEL and WPU registers, along with extra information and tricks... - "config.h" file download link (MPLAB example): drive.google.com/file/d/1V_-TYNpSNL66fc0DoVNTOlapKq46kIp9/view?usp=sharing - "main.c" file download link (MPLAB example): driv...
PIC MCU TUTORIALS #12 - Delays & Built-in delay functions (Absolute Beginner)
มุมมอง 6K2 ปีที่แล้ว
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): drive.google.com/file/d/1hUl_C1ZWJRcKVQpqIrJcaT369Z4Tl9Kd/view?usp=sharing - "main.c" file download link (blinking LED example): drive.google.co...
PIC MCU TUTORIALS #11 - Oscillator block & Clock generation (Absolute Beginner)
มุมมอง 8K2 ปีที่แล้ว
PIC MCU TUTORIALS #11 - Oscillator block & Clock generation (Absolute Beginner)
PIC MCU TUTORIALS #10 - Configuration bits & How to configure them (Absolute Beginner)
มุมมอง 6K2 ปีที่แล้ว
PIC MCU TUTORIALS #10 - Configuration bits & How to configure them (Absolute Beginner)
PIC MCU TUTORIALS #9 - Introduction to PIC datasheets & Registers (Absolute Beginner)
มุมมอง 7K2 ปีที่แล้ว
PIC MCU TUTORIALS #9 - Introduction to PIC datasheets & Registers (Absolute Beginner)
PIC MCU TUTORIALS #8 - Info about C language in MPLABX IDE (Absolute Beginner)
มุมมอง 3.7K2 ปีที่แล้ว
PIC MCU TUTORIALS #8 - Info about C language in MPLABX IDE (Absolute Beginner)
PIC MCU TUTORIALS #7 - MPLABX IDE gui explained for beginners & Useful shortcuts (Absolute Beginner)
มุมมอง 3.3K2 ปีที่แล้ว
PIC MCU TUTORIALS #7 - MPLABX IDE gui explained for beginners & Useful shortcuts (Absolute Beginner)
PIC MCU TUTORIALS #6 - Negative numbers in binary - Binary Part2 (Absolute Beginner)
มุมมอง 2.7K2 ปีที่แล้ว
PIC MCU TUTORIALS #6 - Negative numbers in binary - Binary Part2 (Absolute Beginner)
PIC MCU TUTORIALS #5 - Binary basics & Bitwise operations - Binary Part1 (Absolute Beginner)
มุมมอง 4.5K2 ปีที่แล้ว
PIC MCU TUTORIALS #5 - Binary basics & Bitwise operations - Binary Part1 (Absolute Beginner)
PIC MCU TUTORIALS #4 - Everything you need to start & Uploading our first code! (Absolute Beginner)
มุมมอง 6K2 ปีที่แล้ว
PIC MCU TUTORIALS #4 - Everything you need to start & Uploading our first code! (Absolute Beginner)
PIC MCU TUTORIALS #3 - Couple of notes before starting for beginners! (Absolute Beginner)
มุมมอง 5K2 ปีที่แล้ว
PIC MCU TUTORIALS #3 - Couple of notes before starting for beginners! (Absolute Beginner)
PIC MCU TUTORIALS #2 - How to make MPLABX IDE dark mode & Basic customizations (Absolute Beginner)
มุมมอง 10K2 ปีที่แล้ว
PIC MCU TUTORIALS #2 - How to make MPLABX IDE dark mode & Basic customizations (Absolute Beginner)
PIC MCU TUTORIALS #1 - MPLABX IDE Installing, Uninstalling & Backing Up Projects (Absolute Beginner)
มุมมอง 19K2 ปีที่แล้ว
PIC MCU TUTORIALS #1 - MPLABX IDE Installing, Uninstalling & Backing Up Projects (Absolute Beginner)

ความคิดเห็น

  • @damianhartley1163
    @damianhartley1163 23 วันที่ผ่านมา

    Great guidance - How would I use code configurator to set up the device and run with the same lcd.h and lcd.c ive tried and believe I am close but cant display the hello world section of the video. I think my issue us differences between your config.h and mcc generated code i have attempted to set up ( no peripherals just the PortA pins) but as i cant see your config.h file i am a little stuck to make a comparison. thanks

    • @Microesque
      @Microesque 22 วันที่ผ่านมา

      This library only manipulates the I/O pins, so I didn't include "config.h" files etc., since they shouldn't matter. Config file used in this video is the same as all of my other videos, you can get it from here: drive.google.com/drive/u/2/folders/1CIP7N4szf0-AqrUNIvPVLEe5mSTxsLH-

  • @adityaedara3499
    @adityaedara3499 หลายเดือนก่อน

    you are the best, you make such complicated stuff make sense to beginners thank you

    • @Microesque
      @Microesque 22 วันที่ผ่านมา

      Thanks 👍

  • @filipp7611
    @filipp7611 หลายเดือนก่อน

    Can you share please the project configured for PIC16F887, no matter what Im doing I have a blank screen :( Ive configured ADCON1, switched RA4 to RB4 (also tried RA4 with resistor), all headers has correct oscillator value (im using 20mhz), but nothing works :( PIC works for sure because in parallel im blinking LED and reading time from RTC3231, all works fine. P.S FINALLY !! was able to make it work! Just used another LCD + switched to RD pins, maybe first LCD is broken or something with soldering.

    • @Microesque
      @Microesque หลายเดือนก่อน

      Glad you got it to work 👍

    • @filipp7611
      @filipp7611 หลายเดือนก่อน

      ​@@Microesque Can you answer on one question please, for some reason my LCD blinking every ±2-3s, can't understand it is a text or backlight, blinking I mean the text becomes more darker for about 0.2s and get back to normal, I update only last line every 1s, but blinking happens every ±2-3s. Im using good power supply, added all "filter" capacitors.

    • @Microesque
      @Microesque หลายเดือนก่อน

      ​@@filipp7611 I couldn't quite understand the problem. Is it the text or the backlight blinking? Either way, something like that will be the result of a power supply issue. If your text is blinking or resetting, make sure to check if the LCD is actually receiving 5V. These LCDs have a very tight operating voltage range. Getting even close to 4.5V may cause it to reset. If you have relatively high power components in the same circuit, or if you have long/thin power lines, your supply rail might be sagging just long enough to reset your LCD, but not long enough to be picked up by your multimeter. If the backlight is blinking periodically every couple of seconds, and you're switching something in your circuit every couple of seconds as well, there's likely a short circuit in your setup shunting the power rail to ground. The backlight is just an LED, it's not connected to anything else on the LCD. Unless there was a short, it wouldn't just turn off like that.

  • @abdoullatifabdoumoussa1990
    @abdoullatifabdoumoussa1990 2 หลายเดือนก่อน

    Woaahh very good and clear explanation. Thank you Sir .😃

    • @Microesque
      @Microesque 2 หลายเดือนก่อน

      Thanks 👍

  • @SsadikAmhil
    @SsadikAmhil 2 หลายเดือนก่อน

    Thank you very much for your effort. Well, it is an advanced way of explaining a subject that is difficult to understand, even for beginners. Thanks again. I am actually determined to benefit from all these episodes.

  • @filipp7611
    @filipp7611 2 หลายเดือนก่อน

    Can't compile this for PIC16F877, is it possible at all? The main error is "use of undeclared identifier 'LATAbits'".

    • @Microesque
      @Microesque 2 หลายเดือนก่อน

      PIC16 microcontrollers are very old and use a different architecture; you shouldn't use them even for learning purposes, unless you have to. You can check the comment from "@joshuvajohnvarghese2372" below, where I explained the issue further. Basically you can make it work by: 1 - Changing the LAT... definitions in the header file to their PORT... equivalent. 2 - Making sure the pins you're using are properly set to digital (use PCFG bits in ADCON1). 3 - Making sure to not use an open-drain only pin.

    • @filipp7611
      @filipp7611 2 หลายเดือนก่อน

      @@Microesque Thank you a lot for the quick answer, I just have 6 units of 16f877 and don't want to buy new ones until I use those, next time will buy something new.

  • @brettholden3763
    @brettholden3763 2 หลายเดือนก่อน

    FOCUS

  • @FatihAkkaya-vo7xp
    @FatihAkkaya-vo7xp 2 หลายเดือนก่อน

    What book did you use?

    • @Microesque
      @Microesque 2 หลายเดือนก่อน

      No books, just "XC8 User's Guide" and general C knowledge.

  • @sravankumarreddy8063
    @sravankumarreddy8063 3 หลายเดือนก่อน

    Hello sir, Good article which would be helpfull for beginers, But when i am using alternating signal to detect zero crossing signal, I am not able to find the signal whether it crosses zero axis. I am using to detect three phase(440v 50Hz) by zerocrossing with the help of PIC12f1501. Could you please help me on that or can you please make one tutorial on that.

    • @Microesque
      @Microesque 3 หลายเดือนก่อน

      There are many ways to detect zero crossings, you don't even really need a microcontroller depending on what you're trying to do. Without seeing your circuit I can't really help you.

  • @maiszaaim8843
    @maiszaaim8843 4 หลายเดือนก่อน

    best yt tutor ever

  • @mustafashaikh6742
    @mustafashaikh6742 4 หลายเดือนก่อน

    Can make a video in adc conversation in pic microntroller

    • @Microesque
      @Microesque 4 หลายเดือนก่อน

      That is supposed to be the next video on the list, but I haven't had the time to make videos for a while now😟

  • @maiszaaim8843
    @maiszaaim8843 4 หลายเดือนก่อน

    thank you, thank you till the world ends

    • @Microesque
      @Microesque 4 หลายเดือนก่อน

      Thanks 👍

  • @RajinderSingh-bx3cz
    @RajinderSingh-bx3cz 5 หลายเดือนก่อน

    Thank you so much for this video. If possible please continue to make more videos.

    • @Microesque
      @Microesque 5 หลายเดือนก่อน

      Thanks 👍 I want to, believe me, but it doesn't seem like it'll be possible for a while still...

  • @fifaham
    @fifaham 5 หลายเดือนก่อน

    @27:07 I believe this will reduce power consumption and decrease the latency period for the ISR mechanism to respond to an external request - because of how IRQ works.

    • @Microesque
      @Microesque 5 หลายเดือนก่อน

      That depends. Most of the time, efficiency won't change since you'll enter and leave the interrupt routines the same number of times. Power consumption would only reduce if you also utilized low-power modes along with interrupts. As an extra note: Jumping to the interrupt routine takes 3-4 instructions. Checking which interrupt routine has been fired also takes many instructions. If you're using two interrupt routines at the same time, that also adds a bunch of instructions since there's only one set of "shadow registers" for this microcontroller. So technically, depending on the application, interrupts may even reduce the efficiency.

  • @dabeasthalofan6276
    @dabeasthalofan6276 5 หลายเดือนก่อน

    I'm using a PIC24FJ64GU205 Curiosity Nano, used your code and redefined all the pins for my device and nothing displays on my LCD :(. I did however skip the OSCCON code in the main file. Not sure how this would impact my results.

  • @cesarborjaruiz3584
    @cesarborjaruiz3584 5 หลายเดือนก่อน

    Just watched all ur videos, the best mC videos to ever be released! Congrats

  • @swiftgamer13
    @swiftgamer13 5 หลายเดือนก่อน

    great video ! anyways do you know how to change the font color of the "groups" (I'm not sure what it's called, when i click on set configuration bits under production, the tab appears on the bottom. i want to change the font color of it.) thanks

    • @Microesque
      @Microesque 5 หลายเดือนก่อน

      Anything custom from Microchip in the IDE (NetBeans) seems to use hard-coded colors. There's an output tab in the miscellaneous options, but it only seems to work on native NetBeans windows. Windows for MCC or analyzers are still completely white too. Unfortunately, there's no official support for dark-mode, so this is all we get. You just have to bear with it, or accept getting flashbanged forever...

  • @waynegnarlie1
    @waynegnarlie1 5 หลายเดือนก่อน

    For those unable to see their own named general purpose register names (labels) in watches and variables, do this: Click the toolbox (Project Properties) icon from the Dashboard (extreme upper left icon), then select 'mpasm (Global Options)' and check the box for 'build in absolute mode', apply and exit. Then debug. It's taken me a couple of years to getting around to finding this fix, I have searched countless Microchip forums and watched as many YT videos to no avail. Hope this helps you.

  • @proxy7547
    @proxy7547 6 หลายเดือนก่อน

    you are the best !

    • @Microesque
      @Microesque 6 หลายเดือนก่อน

      Thanks 👍

  • @badalnishant9203
    @badalnishant9203 6 หลายเดือนก่อน

    What a nice explaination you have done, do you have any other courses on advanced emebdded system. pls share .

    • @Microesque
      @Microesque 6 หลายเดือนก่อน

      Thanks 👍I don't have any courses or anything like that. This is kind of like a hobby I do for fun.

  • @hassanrezaei6837
    @hassanrezaei6837 6 หลายเดือนก่อน

    You are wonderful, bro

    • @Microesque
      @Microesque 6 หลายเดือนก่อน

      You too my man 👍

  • @sivapriyarnath4377
    @sivapriyarnath4377 6 หลายเดือนก่อน

    What is the built-in function for pic24fj128ga704

    • @Microesque
      @Microesque 6 หลายเดือนก่อน

      PIC24 are 16-bit microcontrollers, so the process is a little different. This is why I try to tech how to read datasheets and manuals. Answers to questions like these will almost always be somewhere in the user's guide of the compiler. I've included a short and a long answer below. I recommend reading both, but it's up to you 👍 ------------------------------- *Short answer:* -> Define the "FCY" macro as the instruction frequency of your microcontroller, so for 10MHz: _"__#define__ FCY 10000000UL"_ -> Include the "libpic30.h" library in your code: _"__#include__ <libpic30.h>"_ -> Now you should be able to use the same "__delay_ms()" and "__delay_us()" functions. Be careful, you need to define "FCY" before including the library! ------------------------------- *Long answer:* -> If you open the XC16 user's guide ( ww1.microchip.com/downloads/en/DeviceDoc/50002071K.pdf ) and go to page 63, there is a section for "How Can I Implement a Delay in My Code?". There, it tells you that there are library functions, but you have to download it to use them. It also directs you to another manual dedicated to 16-bit libraries for XC16. -> If you open the 16-bit libraries document ( ww1.microchip.com/downloads/en/DeviceDoc/16-Bit-Language-Tools-Libraries-DS50001456K.pdf ) and read the introduction etc, it tells you that the XC16 comes with the libraries pre-installed already. You just have to explicitly include them in your code. -> Now you can just search the term "delay" in the page to see your options. After finding the function you're looking for, it tells you which library you have to include, the signature of the function, and also a general description. I recommend you glance over some of the functions, as there are a lot of convenient ones that may catch your eye 👍

  • @JacksonBockus
    @JacksonBockus 6 หลายเดือนก่อน

    It’d be great if you could provide links to the data sheets you’re using.

    • @Microesque
      @Microesque 6 หลายเดือนก่อน

      It's very easy to find datasheets aside from the lesser-known brands, so I didn't bother. Just type the name of your chip + "datasheet", and it should be the first link 👍

  • @hassanrezaei6837
    @hassanrezaei6837 6 หลายเดือนก่อน

    Very useful 😍

  • @tedbastwock3810
    @tedbastwock3810 7 หลายเดือนก่อน

    AMAZING content, thank you !!! 🙏

    • @Microesque
      @Microesque 7 หลายเดือนก่อน

      Thanks 👍

  • @tedbastwock3810
    @tedbastwock3810 7 หลายเดือนก่อน

    Fantastic explanation, super clear

  • @tedbastwock3810
    @tedbastwock3810 7 หลายเดือนก่อน

    Good intro to datasheets, and great explanation and example of the wrapping capability of C vs. assembly. Very useful, thank you

    • @Microesque
      @Microesque 7 หลายเดือนก่อน

      Thanks 👍

  • @tedbastwock3810
    @tedbastwock3810 7 หลายเดือนก่อน

    Wow, such a clear explanation, I never knew this, thank you

    • @Microesque
      @Microesque 7 หลายเดือนก่อน

      Thanks 👍

  • @tedbastwock3810
    @tedbastwock3810 7 หลายเดือนก่อน

    On video 4 of 18 .. this is a fantastic video series, well done and thank you 🙏

    • @Microesque
      @Microesque 7 หลายเดือนก่อน

      No, thank YOU for watching 👍

  • @anithasshenoy6662
    @anithasshenoy6662 7 หลายเดือนก่อน

    I have not seen registers explained in a more simpler manner. I have trying to understand these , but found too much of undigestable jargon. Tris registers -> PIN as INPUT or OUTPUT Lat registers -> PIN as HIGH or LOW Port registers -> READS PIN HIGH or LOW ANSEL registers -> PIN as ANALOG or DIGITAL WPU -> Enable / Disable INTERNAL PU-UP Resistors How simple to understand!! Great job. Thank you.

    • @Microesque
      @Microesque 7 หลายเดือนก่อน

      Glad you found it useful 👍

  • @weekendle5564
    @weekendle5564 7 หลายเดือนก่อน

    Hello, I am using PIC32MK052MCJ and MPLAB X IDE v6.05, and I am running into issue when following your example. It's break the breakpoint whenever I debugging! Do you know how to fix it?

    • @weekendle5564
      @weekendle5564 7 หลายเดือนก่อน

      Update: I have found the problem and now it worked correctly. It was due to the way I name my folder and directory (with space and special character).

    • @Microesque
      @Microesque 7 หลายเดือนก่อน

      @@weekendle5564 Glad you resolved your issue 👍

  • @vigneshpr.5814
    @vigneshpr.5814 7 หลายเดือนก่อน

    Can you make any tutorials on using JTAG or much more about debugging techniques

    • @Microesque
      @Microesque 7 หลายเดือนก่อน

      I already have a debugging tutorial series, which is mostly done. Aside from that, I plan on keeping this series to this particular microcontroller and programmer for now. Maybe in the future 👍

  • @syaffiqriyaacob9800
    @syaffiqriyaacob9800 7 หลายเดือนก่อน

    Sorry sir i just want to ask do you have adc.h library tutorials

    • @Microesque
      @Microesque 7 หลายเดือนก่อน

      Unfortunately, not yet. That's supposed to be the next video on the list, but I haven't had the chance to work on it for a long time.

  • @volerdenuit1582
    @volerdenuit1582 8 หลายเดือนก่อน

    you are GREAT

    • @Microesque
      @Microesque 8 หลายเดือนก่อน

      Thanks 👍

  • @mitchellhw2006
    @mitchellhw2006 8 หลายเดือนก่อน

    What happened to 2's compliment notation for subtraction?

    • @Microesque
      @Microesque 8 หลายเดือนก่อน

      That's in the part-2 of this video. Link is in the description 👍

    • @mitchellhw2006
      @mitchellhw2006 7 หลายเดือนก่อน

      I was born during the dinosaur period....thought maybe it was not used anymore. (we counted using dinosaur bones)@@Microesque

  • @icarossavvides2641
    @icarossavvides2641 8 หลายเดือนก่อน

    Very interesting, at about 15:45, you mention maximum source and sink currents, whilst the user needs to take notice of these limits they must also take in to account the maximum chip dissipation i.e. don't expect to be able to source or sink the maximum current through all the IO pins at the same time.

    • @Microesque
      @Microesque 8 หลายเดือนก่อน

      Of course. I was just trying to keep it simple since most of them rarely matter 👍 There are a bunch of limiting factors, and which ever one is the most limiting will apply. Max instantaneous current, max continuous current, max port current, max device current, max temperature, max power dissipation etc... Also, these are absolute maximum values. Ideally, you should never get close to these.

  • @ryleebrownfox
    @ryleebrownfox 8 หลายเดือนก่อน

    He is right. I'm a beginner and experience the same mismatch problem. Thank you very much

    • @Microesque
      @Microesque 8 หลายเดือนก่อน

      Appreciate the compliment 👍

  • @ngtony5428
    @ngtony5428 8 หลายเดือนก่อน

    In learning , I like separate 21 file . I watched more than 10 youtube about PIC LED , YOU ARE THE BEST. THANK.

  • @thanhphucnguyen8436
    @thanhphucnguyen8436 9 หลายเดือนก่อน

    Very useful tutorial, thank you so much

    • @Microesque
      @Microesque 9 หลายเดือนก่อน

      Thanks 👍

  • @LandLord-od8pr
    @LandLord-od8pr 9 หลายเดือนก่อน

    good job

    • @Microesque
      @Microesque 9 หลายเดือนก่อน

      Thanks 👍

  • @jeroenwk
    @jeroenwk 9 หลายเดือนก่อน

    These tutorials are great. If you are new to PIC programming like me it will help you to get up to speed in very little time. It’s very well explained and it is amazing how much knowledge is compressed into just some minutes of video. 👍🏻

    • @Microesque
      @Microesque 9 หลายเดือนก่อน

      Thanks 👍

  • @homemade-it2495
    @homemade-it2495 9 หลายเดือนก่อน

    Before it was socomplicated for me to understand assembly language to talk directly to microcontrollers, since i found your channel my understanding levels up. Many thanks from Morocco 😊

    • @Microesque
      @Microesque 9 หลายเดือนก่อน

      Glad it was helpful 👍

  • @sapient_design
    @sapient_design 9 หลายเดือนก่อน

    FYI! If using a PIC16F74 MCU then during the "Configuring the library for your connections" section, Change LATAbits.LATA0 to PORTAbits.RA0 and so on for 1,2,3,4,5 This had me stumped for awhile. After consulting the datasheet I was able to identify the issue. Thanks for the awesome video!

    • @Microesque
      @Microesque 9 หลายเดือนก่อน

      Yeah, PIC16 microcontrollers are ancient and don't have LAT bits; they use their PORT bits to change their outputs. Ideally, no one should use them in this day and age. If you have any questions you can just mail me btw, I usually check it every day 👍

  • @SanelKeys
    @SanelKeys 9 หลายเดือนก่อน

    My second comment on this video, after while: I use your code as reference for making my own libraries. I use CCS PIC C. I've made my own headers for every PIC I use, just like headers in XC8. So, every register has bit names like those in XC8, just like every register has same or similar names, and is used in very similar fashion (dereferencing appropriate union).

    • @Microesque
      @Microesque 9 หลายเดือนก่อน

      I'm assuming it worked out then 👍 Normally, ordering of the bit-fields is implementation defined in C; XC8 compiler strictly states that it orders them by their definition order, I guess that's also how CCS compiler is too.

    • @SanelKeys
      @SanelKeys 9 หลายเดือนก่อน

      @@Microesque CCS has hidden bit definitions, that I was unable to find. It's part of so called built in code of compiler. One of reasons I've made my structures/unions was an exercise for working with unions and structures, emulating CMSIS and bare metal programming for the STM32 MCUs.

  • @OviMG
    @OviMG 10 หลายเดือนก่อน

    Ok, but the question is, does the led turn on when bit is 1 or bit is 0? TRISE = 0b11111110; LATE = 0b00000001; because from this code the led (coresponding to the last bit) is turning OFF, while you said "1" is for turning the led ON

    • @Microesque
      @Microesque 10 หลายเดือนก่อน

      When the LAT bit is 1, the pin connects to positive rail; if the LAT bit is 0, the pin connects to ground, that's all LAT bit does. If the cathode (-) pin of your led is connected to the microcontroller and the resistor connected to the positive rail, the LED will turn on when the LAT bit is 0.

    • @OviMG
      @OviMG 10 หลายเดือนก่อน

      @@Microesque Thank you so much! Now, it makes sense!

    • @Microesque
      @Microesque 10 หลายเดือนก่อน

      @@OviMG np 👍

  • @sisakestgroup
    @sisakestgroup 10 หลายเดือนก่อน

    ThANK YOU SO MUCH FOR ALL THERE VIDEOS, THANK YOU

    • @Microesque
      @Microesque 10 หลายเดือนก่อน

      Thanks 👍

  • @bakeronews1
    @bakeronews1 10 หลายเดือนก่อน

    The font size is too small. It’s difficult to see what you’re explaining.

  • @suntzu1409
    @suntzu1409 10 หลายเดือนก่อน

    This by far the best series on programming PIC that i have come across. To anyone watching this, make sure to check out various resources in the video descriptions

    • @Microesque
      @Microesque 10 หลายเดือนก่อน

      Appreciate the compliment 👍

  • @pradeepmenaria2364
    @pradeepmenaria2364 10 หลายเดือนก่อน

    Excellent

    • @Microesque
      @Microesque 10 หลายเดือนก่อน

      Thanks 👍

  • @abdulbarirawan5694
    @abdulbarirawan5694 11 หลายเดือนก่อน

    ❤❤❤