This second PIC assembly language tutorial introduces several assembly language instructions, the General Purpose Input Output (GPIO) register, the TRIState Input Output (TRISIO) register and the register bank select bit. Also covered are 2 new assembler directives ORG and EQU as well as program labels. Then the boss starts shouting at me and I have to think laterally 🙂

By Julian

Youtuber, shed dweller, solar charge controller aficionado

18 thoughts on “Pic assembly language tutorial: #2 – led blinky”
  1. Avataaar/Circle Created with python_avatars Premji Patel says:

    Very impressed with simplified explanation, very informative for beginners like me

  2. Avataaar/Circle Created with python_avatars CS says:

    Really liked this one. Didn't really want to do anything with assembly till I watched this. You make it sound so simple and easy.

  3. Avataaar/Circle Created with python_avatars FInePix30 says:

    Actually the best way if you want to allow the micro controller to do other stuff while the LED blinks, you use the watchdog timer which can do an interruption request to change the LED status on fix intervals.

  4. Avataaar/Circle Created with python_avatars Liban Abu says:

    hey what is the board you are using and where can I buy

  5. Avataaar/Circle Created with python_avatars Good Man says:

    very good

  6. Avataaar/Circle Created with python_avatars meIOT says:

    thank you so much, sir

  7. Avataaar/Circle Created with python_avatars Sudara Premathilaka says:

    Great video tutorial. Clearly explaining Assembly language basics. Please do some more assembly language tutorials, it's very interesting. Thank u so much.

  8. Avataaar/Circle Created with python_avatars moataz maged says:

    Hey bro….how can i write an assembly code that will turn on a LED when i presses a push-button switch. When the switch is released, the LED will turn off. After the switch is pressed and released a specific number of times, a second LED is to turn on and stay lit forever. Using PIC16F84A and PICKIT2 Programmer

    Thanks in advance for your help

  9. Avataaar/Circle Created with python_avatars Samantha Kerridge says:

    I wrote a stepper motor driver years ago in ASM on a 16f84 then moved on to a satellite tracker a bio diesel process controller and many more than wanted to do more maths which was so long winded I move on to proton pic basic which was very slow in comparison to ASM but woohoo you can embed the bits you want fast in ASM 😁

  10. Avataaar/Circle Created with python_avatars Elyes Mehri says:

    really really clever !

  11. Avataaar/Circle Created with python_avatars Richard Smith says:

    I am a programmer and I am not offended. You simply added a turbo button 🙂

    And yes, turbo means slower, not faster.

  12. Avataaar/Circle Created with python_avatars scotia807 says:

    Is there an episode for someone who's had no programing experience? I've searched for some way tomlearn how to setup the software with only people saying click here and do this and don't tell why. Some say i'll explain why i did this later and then they don't. The ones that really bother me are the experts that have such a bad accent i can't understand them.

  13. Avataaar/Circle Created with python_avatars andr27 says:

    again, perfectly explained things. Huge thanks. I really appreciate your effort making this video

  14. Avataaar/Circle Created with python_avatars Michael O'Toole says:

    TRISIO = three states… Hi/Low/Disconnected (hi impedance)… if memory serves…

  15. Avataaar/Circle Created with python_avatars Stan Whattmore says:

    Really, REALLY good videos. Thank you 🙂

  16. Avataaar/Circle Created with python_avatars Steffen Dahlberg says:

    You know, looking back I think this might be your greatest initiative yet.
    Electronics and especially programming often goes from "Easy" to "Hard" skipping "Medium" alltogether.
    Arduino might give you some insight, but if you're only using other peoples' libraries and snippets of code you're really not prepared for setting up the infrastructure of code needed for a standalone system.

  17. Avataaar/Circle Created with python_avatars Readme .txt says:

    It is not designed for normal people to use. End of story.

  18. Avataaar/Circle Created with python_avatars Chris Perkins says:

    Hi, I am curious to know if you are going to take this tutorial series any further ? Really enjoyed it.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.