XK-1A Development Board Tutorial
IN TH I S D OCU MENT
Introduction
Illuminate an LED
Flash an LED
Flash and cycle LEDs at different rates
Run tasks concurrently
What to read next
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.
# include < xs1 .h >
out port led = XS1_PORT_4F ;
Publication Date: 2012/11/8
XMOS © 2012, All Rights Reserved
Document Number: X7366A
Need help?
Do you have a question about the XK-1A and is the answer not in the manual?
Questions and answers