XC Tutorial
The Language of SDS
XMOS Semiconductor
Bristol • United Kingdom XC Tutorial - 080731: Contents Page www.xmos.com
2 of 39 © 2008 XMOS Semiconductor
XC Tutorial - 080731: Contents Page www.xmos.com
Contents Page
… HOW TO FIND YOUR WAY AROUND
1 | ABOUT THIS TUTORIAL ..................................................................................................................4
2 | PORTS AND FIRST XC PROGRAM.................................................................................................5
3 | PREDICATED INPUT (FROM PORTS).............................8
4 | TIMERS............................................................................................................................................10
5 | PORTS, TIMERS AND FLASHING LEDS......................11
5.1 | Flashing an LED using a timer...12
6 | TIMESTAMPS AND TIMED I/O.......................................................................................................14
6.1 | Timed Input and Output.............14
7 | PARALLELISM AND THREADS....15
7.1 | The par Keyword .......................................................................................................................15
8 | COMMUNICATION AND CHANNELS............................18
8.1 | Declaring and using channels....................................................................................................18
8.2 | Pass the LED............................ ...
Voir