I have a window comparator with two outputs (hi-threshold and low-threshold) that would go high sequentially (few examples shown in the attached image). I want to use to combine these two signals into one, which would be used to wake up a MCU. Here's a basic truth table:
- Red High then Blue High ---> Output High
- Blue High then Red High ---> Output Low
- Red Low But Blue High ---> Output Low
- Red High But Blue Low ---> Output Low
- Red Low And Blue Low ---> Output Low
The time difference between the trailing edge of the Red line and the leading edge of the Blue line is usually <200ms - I am still working on spec'ing it.
I believe a circuit that would be detecting if two pulses are received within a reasonable time frame and in the right order. I am inclining towards solving this on the hardware side to keep my MCU selection and Firmware design simple.
Does you have any suggestions?
EDIT Clarifications: 1. the truth table captures all the possible use cases. Trigger case is determined by the correct sequence of pulses and presence of both the pulses. All other input cases should result in output being low. 2. For MCU to wake up, I need a minimum pulse width of 10us. 3. Triggers are not expected frequently, may be once every hour. 4. Pulse width is max 1 sec for serviceable requests. 5. Rule 3, 4, 5 are also intended as sequential events - for example Red goes high but Blue doesnt after the trailing edge of Red; this wouldn't be a valid trigger.