App notes

A startKIT LED demo

A startKIT LED demo

This application shows a very simple program running on the XMOS
startKIT development board. It displays an animated pattern on the
LEDS on the board by directly writing to the port which is connected
to the LEDs.

Required tools and libraries

  • xTIMEcomposer Tools – Version 14.0

Required hardware

This application note is designed to run on any XMOS multicore microcontroller.

The example code provided with the application has been implemented and tested
on the XMOS startKIT. It depends on the specific mapping of ports to
hardware but is quite general in its nature.

Prerequisites

  • This document assumes familiarity with the XMOS xCORE architecture, the XMOS GPIO library,
    the XMOS tool chain and the xC language. Documentation related to these aspects which are
    not specific to this application note are linked to in the references appendix.
  • For descriptions of XMOS related terms found in this document please see the XMOS Glossary [1]
    .
[1]

http://1m2n3b4v.xmos.com/published/glossary

[2]

http://1m2n3b4v.xmos.com/published/xmos-gpio-lib

A startKIT LED demo Read More »

xCORE-200 explorer - Accelerometer

xCORE-200 explorer – Accelerometer

This application note show how to the accelerometer on an xCORE-200 explorer
development kit. The kit itself has a Freescale FXOS8700CQ 6-Axis sensor with
interated linear accelerometer and magnetometer.

The example uses the XMOS I2C library to demonstrate how I2C devices
can be accessed in an easy and efficient manner. It shows how to access the
registers of an I2C device connected to the GPIO of an XMOS multicore micro controller.

The code in the example builds a simple application which configures the FXOS8700CQ accelerometer and
reports x,y and z acceleration values to the user. Data is output to the development console
using xSCOPE and the accelerometer state is also reported via the RGB LED on the
xCORE-200 explorer board.

Required tools and libraries

  • xTIMEcomposer Tools – Version 14.0
  • XMOS I2C library – Version 2.0.0

Required hardware

This application note is designed to run on any XMOS multicore microcontroller.

The example code provided with the application has been implemented and tested
on the xCORE-200 explorer kit. The dependancy on this board is due to the FXOS8700CQ
accelerometer being connected to the specific GPIO ports defined in the example. The
same device could easily be added to another XMOS development platform.

Prerequisites

  • This document assumes familiarity with the XMOS xCORE architecture, the XMOS GPIO library,
    the XMOS tool chain and the xC language. Documentation related to these aspects which are
    not specific to this application note are linked to in the references appendix.
  • For descriptions of XMOS related terms found in this document please see the XMOS Glossary [1]
    .
  • For the information relating to the I2C library, please see the document XMOS GPIO Library [2]
    .
  • For the Freescale FXOS8700CQ device see the published datasheet [3]
    .
[1]

http://1m2n3b4v.xmos.com/published/glossary

[2]

http://1m2n3b4v.xmos.com/published/xmos-gpio-lib

[3]

http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=FXOS8700CQ

xCORE-200 explorer – Accelerometer Read More »

xCORE-200 explorer - Simple GPIO

xCORE-200 explorer – Simple GPIO

This application note show how to use simple GPIO on an xCORE-200 explorer
development kit. The kit itself contains buttons and LED’s which can be
accessed from application code running on the xCORE multicore microcontroller.

The example uses the XMOS GPIO library to demonstrate how simple GPIO devices
can be accessed from multibit ports in an easy and efficient manner. It also
demonstrates how to respond to events from within application code.

The code in the example builds a simple GPIO handling application which responds to
button presses from the user and toggles the state of LED’s on the development
board.

Required tools and libraries

  • xTIMEcomposer Tools – Version 14.0
  • XMOS GPIO library – Version 1.0.0

Required hardware

This application note is designed to run on any XMOS multicore microcontroller.

The example code provided with the application has been implemented and tested
on the xCORE-200 explorer kit. The dependancy on this board is only due to the
GPIO ports that are connected to the buttons and LED’s. These port definitions are
in the source code and can be easily modified to work on another XMOS development
board.

Prerequisites

  • This document assumes familiarity with the XMOS xCORE architecture, the XMOS GPIO library,
    the XMOS tool chain and the xC language. Documentation related to these aspects which are
    not specific to this application note are linked to in the references appendix.
  • For descriptions of XMOS related terms found in this document please see the XMOS Glossary [1]
    .
  • For the information relating to the GPIO library, please see the document XMOS GPIO Library [2]
    .
[1]

http://1m2n3b4v.xmos.com/published/glossary

[2]

http://1m2n3b4v.xmos.com/published/xmos-gpio-lib

xCORE-200 explorer – Simple GPIO Read More »

USB HID Class - Extended on sliceKIT

USB HID Class – Extended on sliceKIT

This application note shows how to create a USB device compliant to
the standard USB Human Interface Device (HID) class on an XMOS multicore
microcontroller.

The code associated with this application note provides an enhancement
to AN00129 for extending the USB HID device to interface with hardware
which can provide input for a USB mouse.

This example uses the ADC on the XMOS xCORE-USB device to interface to
a mixed signal sliceCARD and provide a joystick interface which allows
the USB HID to be controlled.

The application operates as a simple mouse which when running moves the mouse
pointer on the host machine. This demonstrates the simple way in which PC
peripheral devices can easily be deployed using an xCORE device.

Note: This application note provides a standard USB HID class device and as a
result does not require drivers to run on Windows, Mac or Linux.

This application note describes extending XMOS application note AN00129
for the xCORE-USB sliceKIT platform.

Required tools and libraries

  • xTIMEcomposer Tools – Version 14.0.0
  • XMOS USB library – Version 3.1.0
  • XMOS U series support library – Version 2.0.0

Required hardware

This application note is designed to run on an XMOS xCORE-USB series device.

The example code provided with the application has been implemented and tested
on the xCORE-USB sliceKIT (XK-SK-U16-ST) but there is no dependancy on this board
and it can be modified to run on any development board which uses an xCORE-USB
series device.

Prerequisites

  • This document assumes familiarity with the XMOS xCORE architecture, the
    Universal Serial Bus 2.0 Specification (and related specifications, the
    XMOS tool chain and the xC language. Documentation related to these aspects
    which are not specific to this application note are linked to in the references
    in the appendix.
  • For descriptions of XMOS related terms found in this document please see
    the XMOS Glossary [1]
    .
  • Understanding of USB HID class implementation from application note AN00129
  • For the full API listing of the XMOS USB Device (XUD) Library please see
    thedocument XMOS USB Device (XUD) Library [2]
    .
  • For information on designing USB devices using the XUD library please
    see the XMOS USB Device Design Guide for reference [3]
    .
[1]

http://1m2n3b4v.xmos.com/published/glossary

[2]

http://1m2n3b4v.xmos.com/published/xuddg

[3]

http://1m2n3b4v.xmos.com/published/xmos-usb-device-design-guide

USB HID Class – Extended on sliceKIT Read More »

Scroll to Top