
Re: 9's Complement BCD Thumbwheel Switches
On Tue, 12 Feb 2008 04:43:19 +0000, Mark Zenier wrote:
> In article <hbvvq35nqm236q81g27lr10bat1hjeu7jk@4ax.com>, Tom2000
> <abuse@giganews.net> wrote:
>>
>>I'm helping a guy with a microcontroller project.
>>
>>He's going to use some BCD thumbwheels to set a time delay. He
>>purchased some at a local surplus store for a buck each. But they were
>>9's complement thumbwheels, not standard decimal-coded switches.
>>
>>I'd never heard of 9's complement switches before, but from the truth
>>table he sent me, I found that decoding them was no problem. (See
>>below)
>>
>>My question is this: what sort of equipment might have used these
>>switches, and what generation? I read about that system (and complement
>>arithmetic in general) on Wikipedia and surmise that they might have fed
>>a decimal adder, or somehting like that.
>>
>>Has anyone ever encountered these, and on what sort of equipment? What
>>were they used for?
>
> Digging out a Fairchild TTL Applications handbook from 1973, they show
> they could be used with the 9310 decimal counters for multistage
> programmable counters. (When Texas Instruments did their version they
> numbered it the 74160). The 74160-63 family are synchronous up counters
> with preset inputs. There is logic in the chip to feed the clock
> control inputs of the next counter in a chain. All chips in the chain
> get the clock pulse in parallel, with a couple of clock control inputs
> that enable the count, or load from the inputs.
>
> The trick for using a 9's complement input value is that there's an
> extra Nand gate needed that decodes when the counter chain is at 9...98.
> When that happens, instead of the counter going to 9...99, the counter
> chain gets set to the value coming in from the switches. So the count
> runs from the complement value up to the 9...98. Looks like it might
> get a bit wierd if the switch setting is 0...00.
>
> Mark Zenier
mzenier@eskimo.com> Googleproofaddress(account:mzenier provider:eskimo domain:com)
For most things (certainly if it were used in a frequency synthesizer)
the first few "digits" would be fixed, with only trailing digits being
adjustable. That would take care of the '000' case.
--
Tim Wescott
Control systems and communications consulting
http://www.wescottdesign.comNeed to learn how to apply control theory in your embedded system?
"Applied Control Theory for Embedded Systems" by Tim Wescott
Elsevier/Newnes,
http://www.wescottdesign.com/actfes/actfes.html