Page 1 of 1

XMOS XC programming tutorial

Posted: Tue Jul 20, 2010 9:05 am
by jason
CMhGZQwKR58

This months video is by Ed Clarke and Kris Jacobs where by they go over the highlights of XMOS and how to get started with the XC programming language.

XC is very similar to C, but with support for parallel programming should yuo need it. Anyone with experience in C can use XC very easily.

Kris takes us through a UART written in XC to show how fast and easy it is to develop with XMOS - as everything is written in software, you can reuse code in future modules, or existing code from other people.

Re: XMOS XC programming tutorial

Posted: Thu Aug 05, 2010 9:29 am
by infiniteimprobability
You can find the code examples examples shown in the video as follows:

UART loopback. From the XDE interface (eclipse), choose help->Tutorials->Simulator tutorial
You can then choose "automate this step" and it'll set the project up for you, including the bit which loops back the ports in the simulator so that the UART Tx and Rx can talk to each other.

Producer-consumer is attached to this thread. Nothing special required here, just build the project.

Enjoy!