XK-1A Development Board Tutorial
XC input and output statements make it easy to express I/O operations on ports.
The statement
led <: 0b0001;
causes the value specified to the right of
<:
to be output to the port specified to
its left (
led
). The port then drives LED0 high and the other LEDs low, causing LED0
to illuminate yellow and the other LEDs to remain off.
The empty
while
loop prevents the program from terminating, which ensures that
the LED remains illuminated.
2.4
Build and run your project
To build and run your project, follow these steps:
1. In the
Project Explorer
, click your project to select it, and then choose the
menu option
Project
·
Build Project
(
).
The XDE displays its progress in the
Console
. When the build is complete, the
XDE adds the compiled binary file to the subfolder
bin/Debug
.
2. Choose
Run
·
Run Configurations
.
3. In the
Run Configurations
dialog, in the left panel, double-click
XCore Appli-
cation
.
4. In the right panel, in
Name
, enter the name
illuminate
.
X7366A