Re: Can I do this with a uProcessor?



On Wed, 23 May 2007 08:59:42 -0400, tempus fugit wrote:

You have made an error in thinking here. The switch only informs the
micro that the switch is closed. The micro knows which group of
things to activate for a given switch. This makes the wiring very
simple.

I understand that, but do I then need 1 input pin for each switch, and 1 for
each output? That would mean 15 ins, plus 6 outs. Since I only have 6
different parameters to control, I was wondering if there was a way to use
only 6 input pins and 6 outs, plus the 1 extra for the bank switch.

Are you not reading any responses here? People have been explaining
multiplexing for about three days now!

You need ONE output for ANY NUMBER OF ROWS OF SWITCHES, and
ONE INPUT FOR ANY NUMBER OF COLUMNS OF SWITCHES!

Activate one row, and read the state of the columns. If there is an active
input, decode it and put it into your queue. Activate the next row, and
read the state of the columns. If there is an active input, decode it, and
put it into your queue. Activate the NEXT row, read the inputs, and if
one is active, put THAT into your queue. Continue, until you've scanned
all of the rows.

I don't know how much more simply it can be explained, short of actually
doing your homework for you, and I charge $240.00/hour to do that.

Cheers!
Rich

.



Relevant Pages

  • Re: Having trouble with a Sonar
    ... number of counts corresponds to the 3 milliseconds my micro is ... need a receiver with some smarts, ... That 3.8volt square wave then goes thru a common emitter transistor ... That signal is fed to a 2N 4401 in a switch ...
    (comp.robotics.misc)
  • Re: Can I do this with a uProcessor?
    ... You want to have 14 port connections to do this with so we now know ... This sounds like you want a micro with a built in DAC or an external ... How smoothly does it need to ramp and how ... switch in one position or another, and telling the PIC to execute the proper ...
    (sci.electronics.design)
  • Re: Company network slowdown
    ... >>decode with Ethereal. ... I tired Ethereal, a Network General Sniffer, NT ... flashing the lights on the hubs, ... Procurve 4000 switch, mostly on the basis of speeding things up to ...
    (alt.internet.wireless)
  • Re: Damn you, FEDEX! or Nikon D40 lost in Springfield, MO blackhole.
    ... the 2 mp Mavica he had been using with a Nikon D40. ... After shopping around, he got me to order one for him. ... The shipper had it insured, but from what I have read it could take weeks to sort this crap out. ... You may get your insurance from FedEx and a couple weeks later they find it and deliver it. ...
    (alt.photography)
  • Re: FET circuity
    ... startup and switched off when the port pin on the micro is high. ... loading data) so it can’t just switch the drive ON straight ...
    (sci.electronics.design)

Loading