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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
07/04/06 14:46
Modified:
  07/04/06 15:12

Read: times


 
#119623 - Not scary at all...
Responding to: ???'s previous message
Abhishek said:
But only to begin with I will have two simple programs running rather than 1 complicated one. As you know I am a beginner and would not like to scare myself away from things!

The code isn't scary at all! We would explain it for you.

Abhishek said:
I have to monitor 64 relays, each sends closes at least once every second. So I have to run the debouncing routine 8 times on the input port before I get input form all the relays. Don’t you think that is going to be a problem?

You should read all the contacts every 10msec or so, to adequately debounce them. I think it's only your main code, which could make trouble. The debouncing code should be fast enough. You can estimate it: Each instruction needs less than 24 oscillator periods, makes 2µsec at 12MHz clock frequency. So, the debouncing code needs less than 12 x 2µsec = 24µsec for each byte. 8 bytes need less than 24µsec x 8 = 192µsec then, so say 200µsec. What needs your main code?

Abhishek said:
And by the way, please also let me know if the latch is mandatory.

Could you draw a schematic? I'm not quite clear what you are intending to do. Do you have only one free port for all the relay contacts?

Kai

List of 34 messages in thread
TopicAuthorDate
Debouncing with an 8051 of 16 I/O pins            01/01/70 00:00      
   You don't need these slave micros            01/01/70 00:00      
      yes, but some more questions            01/01/70 00:00      
         Not scary at all...            01/01/70 00:00      
            In that case.....            01/01/70 00:00      
            here is the schematic            01/01/70 00:00      
               I would try shift registers            01/01/70 00:00      
               just a note            01/01/70 00:00      
                  The joke is:            01/01/70 00:00      
                     the reality is            01/01/70 00:00      
                     Re: The joke is            01/01/70 00:00      
      correct, but            01/01/70 00:00      
         I was assuming...            01/01/70 00:00      
   Bounce time of your relays?            01/01/70 00:00      
      Not very clearly            01/01/70 00:00      
         Bravo!            01/01/70 00:00      
   The original question            01/01/70 00:00      
      What's wrong with the shift register sol            01/01/70 00:00      
      HUH?            01/01/70 00:00      
         I am sorry            01/01/70 00:00      
            that was not the issue            01/01/70 00:00      
   why oh why oh why oh why            01/01/70 00:00      
      because it cost nothing            01/01/70 00:00      
         yeah right            01/01/70 00:00      
            yes, they do            01/01/70 00:00      
            Design is a state function            01/01/70 00:00      
               All the more using shift registers!            01/01/70 00:00      
                  I think your solution is better            01/01/70 00:00      
                     I guessed so...            01/01/70 00:00      
                  hidden part            01/01/70 00:00      
                     I can see a 'lucky sample' of a shift re            01/01/70 00:00      
                     True, but...            01/01/70 00:00      
   jezwolds hardware switch debouncer            01/01/70 00:00      
   The facts about costs of Debouner chips            01/01/70 00:00      

Back to Subject List