HIGH   LOW

' -------------------------------------------------------------------------
' Program Description
' -------------------------------------------------------------------------
'
' Simple LED blinker using HIGH and LOW.

' -------------------------------------------------------------------------
' Device Settings
' -------------------------------------------------------------------------

DEVICE          SX28, OSC4MHZ, TURBO, STACKX, OPTIONX
FREQ            4_000_000
ID              "HIGH-LOW"

' -------------------------------------------------------------------------
' IO Pins
' -------------------------------------------------------------------------

LED             VAR     RB.0                    ' LED pin

' -------------------------------------------------------------------------
' Constants
' -------------------------------------------------------------------------

OnDelay         CON     150                     ' time LED is on
OffDelay        CON     350                     ' time LED is off

' =========================================================================
  PROGRAM Start
' =========================================================================

' -------------------------------------------------------------------------
' Program Code
' -------------------------------------------------------------------------

Start:
  DO
    HIGH LED                                    ' turn LED on
    PAUSE OnDelay                               ' delay
    LOW LED                                     ' turn LED off
    PAUSE OffDelay                              ' delay
  LOOP                                          ' repeat forever