pickit2 demo lesson 7 minus one LED

Discussion in 'Embedded Systems and Microcontrollers' started by IONS, May 2, 2011.

  1. IONS

    Thread Starter New Member

    May 2, 2011
    2
    0
    Hi, I would just like to run 3 LED's instead of 4 as the PicKit2 quick start demo lesson program is set up.This is where one LED chases around to three other LED's and returns back to the first LED and if pushing the button,it reverses direction.The control pot will control the blinking rate.Please let me know what changes in the assembly code are needed to accomplish this task.

    Thank You for your help,I'm still trying to learn how all this stuff works.

    IONS
     
  2. be80be

    Senior Member

    Jul 5, 2008
    431
    57
    The way that code works it loads the whole portc, you could mask off the led you don't want.

    Or just start over and write your own code that just rotates 3 leds
     
  3. t06afre

    AAC Fanatic!

    May 11, 2009
    5,939
    1,222
    Last edited: May 3, 2011
Loading...