holabr said:
Since I am not set up at all (PIC programming hardware and/or software), I thought using descete ICs would be the easiest and cheapest way to go.
For this project – lets make a rulebook
Say Key one will invoke command mode.
Key 2 and 3 will decide logic 0 and 1
Key 4 will be hook up (end command).
So you have to press 1 followed by combination of 2 and 3 (depends how many bits you want to utilize) and 4 as stop bit
In this block diagram whenever key 1 is pressed the (set-reset) flip-flop is triggered and it allows clock pulses to the Shift Register. By the same time it also triggers timer so that if the next key sequence is not made within specified time, timer will reset the (set-reset) flip-flop and system will not receive next pulses as one of the input to and gate will be zero.
Pin 3 is used as logic one and 2 as logic zero so we have connected pin3 to data pin for logic one where as both these pin can generate clock. As pin 2 is not connected to data pin, it will generate logic zero with clock.
Same clock is give to a Decimal counter which increments every clock pulse. If you are designing a 4 bit system then connect the inhibit pin to fifth output of decimal counter, so that Shift resistor will not receive any more clock pulses and even counter will not increment in inhibit mode. By the same time, the latch of BCD to Decimal converter will release making its input to get transparent at output. And the output will toggle the D type flip-flop connected to respective output pin.
As Pin 4 is connected to reset of RS flip-flop, It will get reset and system will reset to normal mode.
Just Try this and if you need to select ICs- refer 74xx series data book.
and sorry for the delay, as I was out of station. And allowme some time to create block diagram of remote so that you don't have to press the code manually.
T.C.