If I understood the question correctly, this might work ...
Code:RXchar VAR BYTE SERIN serpin,N2400,[9], RXchar IF RXchar.0 = 1 THEN TOGGLE PORTB.0 PORTB = (PORTB & 1) | (RXchar & $FE)
If I understood the question correctly, this might work ...
Code:RXchar VAR BYTE SERIN serpin,N2400,[9], RXchar IF RXchar.0 = 1 THEN TOGGLE PORTB.0 PORTB = (PORTB & 1) | (RXchar & $FE)
DT
Bookmarks