pushbutton code does not work....split from thread on PWM

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

hello sir, i'm trying to make a on & off code. i'm using a delay by increasing a variable's value (x++) in isr ,if i'll press a button it will check for the x value. it is 1000 or not.(if(x>=1000)).then it will execute the further code and then x will be 0. but if i press the check buttom after 1 or 2 min  it does not work.

Rjchoudhary

Last Edited: Sun. Mar 22, 2020 - 05:36 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I split this as it has nothing to do with your orher thread. Also post your complete application as what you have described is pretty useless to dissect

Jim

I would rather attempt something great and fail, than attempt nothing and succeed - Fortune Cookie

 

"The critical shortage here is not stuff, but time." - Johan Ekdahl

 

"Step N is required before you can do step N+1!" - ka7ehk

 

"If you want a career with a known path - become an undertaker. Dead people don't sue!" - Kartman

"Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?"  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB, RSLogix user

Topic locked