1 2 3 4 Previous Next 46 Replies Latest reply on Aug 25, 2014 1:23 PM by userc_39867 Go to original post
      • 45. Re: problem in dumping my program to the chip

        I can open the project with 5.4

           

        @devmania,

           
             1.       You need to add debounce as suggested by Dana a while ago.   
           
             2.       I f your button connects to 5V when pressed, you use pull down, if your button connects to ground when pressed, you use pull up   
           
             3.       After adding the debounce, your program would toggle from on to off and off to on with every pressing of the button   
        • 46. Re: problem in dumping my program to the chip
          DaKn_263916

          "Normally" when one presses a button you do not process it

             

          until it is released. And you debounce it, both becoming active

             

          and releasing. Once released then action is taken, like test

             

          PWM8running flag to see if it should be started or stopped.

             

           

             

          Regards, Dana.

          1 2 3 4 Previous Next