Re: the order in which some switches are turned on



On Tue, 22 Apr 2008 22:19:01 -0700 (PDT), in sci.electronics.design
laura <laura.brandusan@xxxxxxxxx> wrote:


Hi all,

I have an array of N switches . Initially all are OFF.

Somebody turns them ON in some order. It is possible that more
switches are turned ON in the same moment.

I need a device which shows me the order in which the switches were
turned ON. For instance the device should give me: 4,3,1,5,2 (this is
the order in which the switches were turned ON).

The way in which the output is shown in not important. It must be
simple to read (by a human, computer, etc).

It is important that the device is able to handle the turned ON (in
the same moment) of the multiple switches.

thanks,
Laura
Sounds like a simple job for a microprocessor.AVR, pic or 8051.

When 2 switches are turned on at the same time, how would you want to
decode that?


martin
.



Relevant Pages

  • Re: Help-a-Dummy Please
    ... stack around Switches is corrupt". ... As the memory for the array char * Args[] is allocated outside the object as ...
    (microsoft.public.vc.language)
  • Re: Help-a-Dummy Please
    ... #ifndef SWITCHES ... (a pointer to a pointer to char). ... array of "unknown bound of char*, ... Declaring an incomplete type is most certainly not a problem, ...
    (microsoft.public.vc.language)
  • Re: Help-a-Dummy Please
    ... #ifndef SWITCHES ... (a pointer to a pointer to char). ... array of "unknown bound of char*, ...
    (microsoft.public.vc.language)
  • Re: Help-a-Dummy Please
    ... #ifndef SWITCHES ... (a pointer to a pointer to char). ... Actually, it's writing past the end of the array, which is wrong. ...
    (microsoft.public.vc.language)
  • Re: confused, need help with a sorting program
    ... what i don't get is that this program sorts the words into reverse ... alphabetical order. ... let's look at what the above code does: It looks at an item in the array ... checks whether the item is less than the next one and if so, it switches them. ...
    (comp.lang.ruby)

Loading