Baseline PIC C programming lesson 1 - Flash an LED

Поділитися
Вставка
  • Опубліковано 17 гру 2024

КОМЕНТАРІ • 40

  • @NoodleFlame
    @NoodleFlame 2 роки тому +1

    This is hands down the best tutorial I have found to get started with mplab x, thank you so much!

  • @DarkMatterTales_YT
    @DarkMatterTales_YT 6 років тому +3

    Thanks for making these videos to accompany the lessons!

  • @Paul-ls9lx
    @Paul-ls9lx 2 роки тому

    Your students are lucky to be there teacher.

  • @RAINE____
    @RAINE____ 4 роки тому +2

    Mate, this is a fantastic tutorial. Thanks

  • @electron7373
    @electron7373 Рік тому

    Excellent tutorial ! Thanks GT!

  • @naadirprofootballeur
    @naadirprofootballeur 5 років тому +9

    2:08 "Sign your life away to Microchip" lol. Nice video though. Thank you!

  • @VitorVitalino
    @VitorVitalino Рік тому

    Amazing content! Helped me a lot. Thank you!

  • @techattack5171
    @techattack5171 2 роки тому

    Wow. What an amazing tutorial!

  • @alphahr
    @alphahr 6 років тому +1

    Great job, I struggled with Moab x

  • @KingDuken
    @KingDuken 2 роки тому +1

    "Sign your life to Microchip" LOL

  • @krish2nasa
    @krish2nasa 6 років тому

    Hi David, Excellent tutorial, Thank you very much

  • @NoelKipkorir-f5e
    @NoelKipkorir-f5e Рік тому

    i have been trying to program a pic12f683 using mplab x but i get builder fail can you make a video on this

  • @pettypavlow8330
    @pettypavlow8330 11 місяців тому

    There is no pic10f200.h file in mac xc8/v2.45/include folder.Is there any new changes?

  • @ankitkailashi9777
    @ankitkailashi9777 2 роки тому

    sir i am using explorer 8 kit with pic18f87k22 i am unable to blink a simple led
    can u pls guide me

  • @dimitrisblane6368
    @dimitrisblane6368 4 роки тому +1

    What is the 0b1101?

  • @luisalfredosanchezramos6289
    @luisalfredosanchezramos6289 5 років тому +1

    Hi I love your video I need to do two input and two output with two push button ,You could help me a Code Optimizing C Compilers for Microchip PIC

  • @abandonedcranium6592
    @abandonedcranium6592 4 роки тому +1

    // #pragma config statements should precede project file includes.
    I see you did not do this. Does it have any negative effect?

    • @GooligumElectronics
      @GooligumElectronics  4 роки тому

      No negative effect that I can detect - no compiler warnings, code seems to work perfectly.

  • @flowcharttocodeconverter936
    @flowcharttocodeconverter936 5 років тому

    Good one.
    Use flowchart to code converter for firmware designing and auto code conversion.

  • @mayur00123
    @mayur00123 6 років тому

    Please make a tutorial flash an led on pic12f510 in embedded c

    • @GooligumElectronics
      @GooligumElectronics  6 років тому

      Pretty much exactly the same as the 10F200 version, just a different config section, which MPLAB can generate for you (as shown in this lesson). In the next lesson I'll switch to a different PIC (12F509), and that will demonstrate changing the config, but the procedure is same as shown in this one.

    • @mayur00123
      @mayur00123 6 років тому

      Gooligum Electronics this is code built and simulate and flash but not working on hardware..pls suggest..
      #include
      // PIC12F510 Configuration Bit Settings
      // 'C' source line config statements
      #include
      // #pragma config statements should precede project file includes.
      // Use project enums instead of #define for ON and OFF.
      // CONFIG
      #pragma config OSC = IntRC // Oscillator Select (INTOSC with 1.125 ms DRT)
      #pragma config WDT = OFF // Watchdog Timer Enable bit (WDT disabled)
      #pragma config CP = OFF // Code Protect (Code protection off)
      #pragma config MCLRE = ON // Master Clear Enable bit (GP3/MCLR Functions as MCLR)
      #pragma config IOSCFS = ON // Internal Oscillator Frequency Select bit (8 MHz INTOSC Speed)
      #define _XTAL_FREQ 8000000
      #define LED1 GPIObits.GP0
      void main()
      {
      TRISGPIO= 0x00;
      GPIO = 0x00;

      while(1)
      {

      LED1=1;
      __delay_ms(4000);
      LED1=0;
      __delay_ms(4000);
      }
      }

  • @naylinaung786
    @naylinaung786 5 років тому +1

    Sir, Thank you very much.

  • @FloppyEmulatorPicF
    @FloppyEmulatorPicF 4 роки тому +1

    very good

  • @ProgrammerSheep
    @ProgrammerSheep 5 років тому +3

    2:08 LOL

  • @torstenvwn
    @torstenvwn 4 роки тому

    There is a buzzing noise when you use the microphone

    • @GooligumElectronics
      @GooligumElectronics  3 роки тому

      Thanks for letting me know - but improved in the later videos, I think?

  • @Lifeless11111
    @Lifeless11111 2 роки тому +1

    Can someone explain what is 0b0010 ? is that a byte ? how do i learn this? All of this video is kinda pointless , i already have an ide and i already program in C , but i do not understand this type of code, is it asci? or just binary in a way?

    • @mkhaled23
      @mkhaled23 2 роки тому +1

      b means binary, x means hexadecimal. 8 bits = 1 byte. 0 means configure as output, 1 means configure as input (configured as input by default, I think). This chip only has 4 available pins. Hence, TRIS = 0b1101 (bit3 bit2 bit1 bit0, where bit1 corresponds to GP1). A binary can only be 0 or 1 (base 2). Similarly, GPIO = 0b0010 (bit3 bit2 bit1 bit0) means you are setting bit 1 as HIGH, which means it will provide a voltage to drive that pin (maybe 3.3V) and this will basically provide power to turn ON the LED. And other 3 pins are driven LOW. You can search on UA-cam for further tutorials.
      ua-cam.com/play/PLjueKcCvkvtpE8GoDSWoej_mh3gAIV150.html

    • @Lifeless11111
      @Lifeless11111 2 роки тому +1

      @@mkhaled23 okay ty for clarifying. now it makes a little more sense . No one seems to explain this basic stuff

  • @jasbirsingh6070
    @jasbirsingh6070 5 років тому

    Thank you

  • @ahmednawaz4858
    @ahmednawaz4858 4 роки тому

    Pic microcontroller's programing in ccs pic c compiler video link:m.ua-cam.com/video/psG88sLUSv4/v-deo.html

  • @nitonixnitron5569
    @nitonixnitron5569 2 роки тому

    Personally, I would prefer not to have the background music, but nice tutorial

  • @lavieuinme
    @lavieuinme 5 років тому

    Thank you!!!!!

  • @kB-hg2ci
    @kB-hg2ci 4 роки тому

    This is probably the fifth or sixth tutorial I followed and couldn't run. Nothing but errors.

    • @GooligumElectronics
      @GooligumElectronics  3 роки тому

      Sorry you've had that experience. I can only say that the videos are real, i.e. no tricks. What worked for me should work for you if you follow along closely.

    • @amajout
      @amajout 2 роки тому

      @@GooligumElectronics just want to drop a tip, PIC10F204 & PIC10F206 have a comparator, if not disabled (put all 0) no pin would work, I learned it the hard way

  • @IngeBall
    @IngeBall 2 роки тому

    Sign your life away 😂😂😂
    Sad but true..