Syntax

' -------------------------------------------------------------------------
' Program Description
' -------------------------------------------------------------------------
'
' Simple LED blinker using TOGGLE.

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

DEVICE          SX28, OSC4MHZ, TURBO, STACKX, OPTIONX
FREQ            4_000_000
ID              "TOGGLE"

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

AlarmLed        VAR     RB.0                    ' LED pin

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

BlinkDelay      CON     250                     ' blink rate

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

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

Start:
  DO
    PAUSE BlinkDelay                            ' delay
    TOGGLE AlarmLed                             ' toggle LED state
  LOOP                                          ' loop forever