The HC05 had this feature, where a preset state was set out on a pin once a timeout or an edge event occurs on another pin:
BSET IEDG1,TCR ;SET INPUT CAPTURE 1 FOR POSITIVE EDGE SENSITIVITY
BSET OLVL1,TCR ;AT TIMEOUT, WRITE A 1 TO OUTPUT COMPARE 1
The user can also force the Output Compare:
BCLR OLVL1,TCR ;SET BIT LOW
BSET FOLV1,TCR ;FORCE BIT OUT
The HCS08 I'm using has this complicated FTM module, which does A LOT, but there is no simple way to replicate this feature.
Moving up from HC05 to S08 is complicating things for me. Is there a trick to this on the S08?
The closest thing I can think of is using interrupts, but that requires a lot of time between the external interrupt and output signal.