Now consisting of just 2 instructions, this must be the world's shortest Microchip PIC flashing LED program. And this time I explain how it works.

By Julian

Youtuber, shed dweller, solar charge controller aficionado

9 thoughts on “World’s shortest microchip pic flashing led program”
  1. Avataaar/Circle Created with python_avatars JasonMasters says:

    It's not two instructions. It's 4096 instructions. It's just that you only wrote two of those 4096 instructions. ๐Ÿ˜‰

    It's still a clever way to make the LEDs flash, though.

    I've done a 16-instruction program which sweeps 4 LEDs back and forth on port A of the 16F84A. Next on my list is to do a 4-player "first player to press the button wins" game, with a different sound for each player.

  2. Avataaar/Circle Created with python_avatars Raymond Heath says:

    I was surprised on the specs of the 16F690. I might start using it more than the 627/8

  3. Avataaar/Circle Created with python_avatars emcosta says:

    Ah, the hacks of low-level programming…

  4. Avataaar/Circle Created with python_avatars Graham says:

    Clever! And thanks for explaining it so well! I only have a novice understanding of assembly but this makes sense. Stuff like this is also why I love assmbly

  5. Avataaar/Circle Created with python_avatars Orion Argorion says:

    Hi Julian, I have this Pickit 2,16F690 and the lowpin board but cant find a simpel program thats turn the led on by pushing sw1

  6. Avataaar/Circle Created with python_avatars Julian Ilett says:

    It is the full code

  7. Avataaar/Circle Created with python_avatars Emilio Marcano says:

    Men show the full code that not is the full code

  8. Avataaar/Circle Created with python_avatars Julian Ilett says:

    Try the Arduino – blinking LEDs made easy

  9. Avataaar/Circle Created with python_avatars Robert Yau says:

    Hi. I need some help and I hope you can give me the information I need. I build models at home and I some times put LEDs in my models to make them look good. I'm building a Star Trek ship and need to put some led's in it. You can pay the lights and chips from a web site trekmodeler but it is in the USA and a lot of money to but. Do you know if I can make my own circuit board and blinking lights. Thanks sir.

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.