For the 28X2 the best solution may be to take the serial from the 18M2 into one of the HINTx pins, and have that wake the 28X2 from a permanent sleep ( SLEEP 0 ).A 28X2 pin expecting a serial input from a remote 18M2 is first driven high by the 18M2 (to force the interrupt) then carries out a SERIN command.
Whilst waiting for the interrupt, and having carried out some other duties, the 28X2 should ideally go into a low power mode, but if not possible it should just do nothing.
; 18M2 10K 28X2
; .--------. ___ .------.
; | TX |>-->|___|---. | |
; | | }------<>| RX |
; | CTS |<-----------' | |
; `--------' `------'
Main18M2:
Low TX
Do
Pause 1000
Gosub SendFrom18M2
b0 = b0 + 1
Loop
SendFrom18M2:
High TX
Do : Loop Until CTS = 0
Do : Loop Until CTS = 1
SerOut TX, T2400, (b0)
Low TX
Return
Main28X2:
Input RX
Gosub Interrupt_Enable
Do
Sleep 1
Loop
Interrupt:
Low RX
Pause 1
SerIn RX, T12400, b0
Interrupt_Enable:
; ... SETINT on RX going high
Return