XMOS XC programming tutorial

XCore Project reviews, ideas, videos and proposals.
Post Reply
User avatar
jason
XCore Expert
Posts: 577
Joined: Tue Sep 08, 2009 5:15 pm
Contact:

XMOS XC programming tutorial

Post 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.


User avatar
infiniteimprobability
XCore Legend
Posts: 1126
Joined: Thu May 27, 2010 10:08 am
Contact:

Post 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!
Attachments
Producer-Consumer.zip
Producer-consumer example used in XC training video
(32.44 KiB) Downloaded 446 times
Producer-Consumer.zip
Producer-consumer example used in XC training video
(32.44 KiB) Downloaded 446 times
Post Reply