![background image](http://html1.mh-extra.com/html/xmos/xk-1a/xk-1a_manual_3536653001.webp)
XK-1A Development Board Tutorial
I N T H I S D O C U M E N T
·
·
·
·
Flash and cycle LEDs at different rates
·
·
1
Introduction
The XK-1A is a low-cost development board based on the XMOS XS1-L1 device. It
includes a single L1, four LEDs, two press-buttons, SPI flash memory, two 16-way
IDC connectors and an XSYS debugging interface.
This tutorial shows you how to write some simple XC programs that control and
respond to the XK-1A board components. In this tutorial you learn how to:
·
illuminate the LEDs
·
flash the LEDs at a fixed rate
·
flash the LEDs in sequence
·
respond to a button press
·
connect multiple boards together
2
Illuminate an LED
This part of the tutorial shows you how to illuminate an LED on your XK-1A, using
an XC port and an output statement.
2.1
Create a project
2.2
Add the application code
The program below illuminates an LED on an XK-1A.
# i n c l u d e < xs1 . h >
out p o r t led = X S 1 _ P O R T _ 4 F ;
Publication Date: 2012/11/8
Document Number: X7366A
XMOS © 2012, All Rights Reserved