Hi all,
I've got a new task. I'm to design a controller for a quiz game. You know have four tables and every one of em has a buzzer, who ever presses the button first gets the chance to answer.
The thing initially in my mind was to write a comparator, like:
if input1 =1 & input 2 to 5 = 0 then high output 1
if input2 =1 & input 1,3,4, 5 = 0 then high output 2
if input3 =1 & input 1,2,4, 5 = 0 then high output 3
if input4 =1 & input 1,2,3, 5 = 0 then high output 4
if input5 =1 & input 1,2,3, 4 = 0 then high output 5
thats all fine, but the thing is that its not a parallel check, what if button 1 was presses before the others and the loop check was past it and circling through the rest... and during that time someone else pressed button 4, he gets the hit, not 1... kinda makes it unjust to the rest...
I did learn about digital logic, maybe if I use a latch/flip-flop or a shift register or something to store all the inputs in there and use a picaxe to look for an interrupt, then the 1st register to have set the register can send the data to the chip... also if it is possible, that the chip that sets the interrupt can also be taped to the enable of the other chips, that way anytime a register is hit, it can set the interrupt and disable the other chips, making it the only one! =D
Ok, that seems possible, but i'm pretty sure there's another way... something much simpler... there's gotta be...
Alright, I'm all ears (eyes that is)
I've got a new task. I'm to design a controller for a quiz game. You know have four tables and every one of em has a buzzer, who ever presses the button first gets the chance to answer.
The thing initially in my mind was to write a comparator, like:
if input1 =1 & input 2 to 5 = 0 then high output 1
if input2 =1 & input 1,3,4, 5 = 0 then high output 2
if input3 =1 & input 1,2,4, 5 = 0 then high output 3
if input4 =1 & input 1,2,3, 5 = 0 then high output 4
if input5 =1 & input 1,2,3, 4 = 0 then high output 5
thats all fine, but the thing is that its not a parallel check, what if button 1 was presses before the others and the loop check was past it and circling through the rest... and during that time someone else pressed button 4, he gets the hit, not 1... kinda makes it unjust to the rest...
I did learn about digital logic, maybe if I use a latch/flip-flop or a shift register or something to store all the inputs in there and use a picaxe to look for an interrupt, then the 1st register to have set the register can send the data to the chip... also if it is possible, that the chip that sets the interrupt can also be taped to the enable of the other chips, that way anytime a register is hit, it can set the interrupt and disable the other chips, making it the only one! =D
Ok, that seems possible, but i'm pretty sure there's another way... something much simpler... there's gotta be...
Alright, I'm all ears (eyes that is)