To set DEBUG up
Code:
    DEFINE DEBUG_MODE  0    ' Debug sending TRUE serial data
    DEFINE DEBUG_REG PORTC  ' Debug Port = PortC
    DEFINE DEBUG_BIT 4      ' Debug.bit = PortC.4
    DEFINE DEBUG_BAUD 2400  ' Default baud rate = 2400
Send
Code:
DEBUG 9,3
Receive
Code:
DEBUGIN [WAIT("9"),DEC net]
The same syntax works for HSERIN/OUT