Interfacing with a 45khz signal of another chip. Want to intercept and redirect. Timing has to be perfect. I might have to use interrupts..(i know).
At least want to minimize or eliminate any time constraints with the actual input / output pin read / write.
Designing specialzed remote for hospital bed. Original remote is using a multiplex method to read many buttons.
Output A b c d
Input. 1 2 3 4
Outputs signal on A
Monitors inputs 1234
If let's say a specific button shorts A to 2, the chip knows that by knowing that output A is active and 2 is pulled up.
Outputs signal on B
Monitors inputs 1234
If let's say button connects B to 2, chip knows that by knowing that output B is active and 2 is pulled up.
....and so on
A to B to C to D is at 45khz. I will double check with oscilloscope.
I am trying to emulate that by picking up which pin is being currently being polled and if a certain pin is expected for a certain action, pull up that corresponding pin
Yes, this will be challenging to get right. A polling frequency if 45kHz means you have maybe 1 or 2 us to respond, depending on the timings of the host device. That's hard to get right in an arduino where other tasks (particularly interrupts) may be active.
I spent wa quite some time getting the timings right for a OneWire interface, which also relies on microsecond-scale timings. I found it quite challenging and the end result, while it works, isn't 100% reliable.