Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/22/10 17:11
Read: times


 
#175279 - software debounce done :-)
Responding to: ???'s previous message
Hello Erick
as correctly pointed by you software debounce really helped rejecting those minute and small pulses as earlier whenever their was a noise pulse my ISR runs and evaluate the key and do the jobs , but now after my ISR runs (as this is from nand o/p saying a touch) I check for two samples to be same after a fixed small delay and if they are same I proceed else reject the same .
here is code part it was simple done yesterday only but couldn’t post , the machine I have is proto showing improvement the actual unit reside at a far point it will take two to three days to get positive report from there

the control loss of TR0 shows at the final product only (differ in body size and aluminium based membrane keypad ) and the problem over there is quite repetitive
two or three zaps from gas lighter to the body initiates the problem and it remains until we do a HARD RESET i.e the TR0 part fails whereas the input part works ,still not clear to me the reason for the same ?





...

char getKeyCode()	
{
	volatile char keyPressed=0,keyPressed_1=0,rowStatus=0,keyCode,i;
	keyPressed_1 = KEY;		// get first value 
	for(i=0;i<30;i++) delay_ms(); // wait here from some time
	 keyPressed = KEY;		//check port for same value as before
	 if(keyPressed_1 == keyPressed ){ //valid key do the job
	
}


 



List of 25 messages in thread
TopicAuthorDate
Hobbyist asking for professionals to solve noise problems            01/01/70 00:00      
   images on web upload            01/01/70 00:00      
   sounds like missing debounce            01/01/70 00:00      
      yes no software debounce            01/01/70 00:00      
         Sample superloop            01/01/70 00:00      
   Hhm, many problems to solve...            01/01/70 00:00      
      can only post after 7pm india            01/01/70 00:00      
      detailed reply with images link            01/01/70 00:00      
         Fast and low voltage drop            01/01/70 00:00      
            still have some doubts            01/01/70 00:00      
               ?? any replies            01/01/70 00:00      
                  Think about which polarity you want the diode to conduct            01/01/70 00:00      
                     it should be case2            01/01/70 00:00      
                        just a question            01/01/70 00:00      
                           adding it now            01/01/70 00:00      
                              software debounce done :-)            01/01/70 00:00      
                                 if you do not need "wake up" on a keypress ...            01/01/70 00:00      
                                    got it            01/01/70 00:00      
                                       you don't, so what            01/01/70 00:00      
                                          Thanks for pseudo            01/01/70 00:00      
         Two major mistakes...            01/01/70 00:00      
            points taken,my understandings            01/01/70 00:00      
               Design for an industrial environment!            01/01/70 00:00      
                  the oft missed point            01/01/70 00:00      
                     thanks for feedbacks            01/01/70 00:00      

Back to Subject List