R
Rich Grise
Guest
On Sun, 07 Aug 2005 17:45:52 -0700, BobG wrote:
You can do this in one part. That other post, where Tom Biasi said
to make a truth table, jogged my neuron. Get a PROM that's at least
256 bits deep and at least one bit wide. Like, a 28C16, 2K x 8.
Your 8 switches go directly, with pullups, to a0 - a7. a8-10 go
to ground. Program these 8 bytes:
addresses data (hex)
binary hex
00000000001 001 0xFE
00000000010 002 0xFE
00000000100 004 0xFE
00000001000 008 0xFE
00000010000 010 0xFE
00000100000 020 0xFE
00001000000 040 0xFE
00010000000 080 0xFE
and leave all of the rest of it 0xFF. Output bit 0 will
go "low" when one and only one switch is pressed.
Have Fun!
Rich
I certainly can!can someone advise on a better design ?
====================================
separate has 'a rat' in it
You can do this in one part. That other post, where Tom Biasi said
to make a truth table, jogged my neuron. Get a PROM that's at least
256 bits deep and at least one bit wide. Like, a 28C16, 2K x 8.
Your 8 switches go directly, with pullups, to a0 - a7. a8-10 go
to ground. Program these 8 bytes:
addresses data (hex)
binary hex
00000000001 001 0xFE
00000000010 002 0xFE
00000000100 004 0xFE
00000001000 008 0xFE
00000010000 010 0xFE
00000100000 020 0xFE
00001000000 040 0xFE
00010000000 080 0xFE
and leave all of the rest of it 0xFF. Output bit 0 will
go "low" when one and only one switch is pressed.
Have Fun!
Rich