XMOS XK XS1-G Quick Start Manual Download Page 4

XK XS1-G Development System Quick Start Guide (1.1)

4/9

2.1

Pong (PONG)

Pong is a simple application that uses four threads. The state machine polls the but-
ton thread to see if a button is currently pressed, makes the main game calculations,
updates the positions of the pads and ball and passes them to the frame generator.

The frame generator draws the raw pixel data, and passes it through a channel to

the LCD driver thread to output to the screen.

The demonstration is divided across four XCores due to the device mapping on the
XDK.

Use the two left buttons to move the left paddle up and down, and the two right
buttons to move the right paddle.

Button

Reader

Frame

Generator

LCD

Driver

LCD

XCORE0 XCORE3

XCORE2

XCORE1

Is a button pressed?

Pixel data

Buttons

5 Mhz RGB Bus

Pong

State

Machine

www.xmos.com

Summary of Contents for XK XS1-G

Page 1: ...XK XS1 G Development System Quick Start Guide Version 1 1 Publication Date 2010 05 10 Copyright 2010 XMOS Ltd All Rights Reserved...

Page 2: ...be used for linking to XDK XMOS Link sockets 2 XDK Demos A set of demonstrations is pre installed on the XDK which you can use to test the hardware Additional demonstrations can be downloaded from the...

Page 3: ...XK XS1 G Development System Quick Start Guide 1 1 3 9 www xmos com...

Page 4: ...he frame generator The frame generator draws the raw pixel data and passes it through a channel to the LCD driver thread to output to the screen The demonstration is divided across four XCores due to...

Page 5: ...from eight threads running the escape time algorithm It then passes the resulting pixel data to the SRAM server for storage Concurrently the SRAM server pipes the RGB data to the LCD driver which disp...

Page 6: ...s indicate high power The power spectrum is updated in real time using a sliding window which represents about a second worth of audio Internally the program computes a 512 sample FFT and uses a looku...

Page 7: ...data from the LCD driver 2 Main program loop This thread is paused waiting for the PENIRQ line from the touch screen digitizer to go low indicating the screen is pressed When this event is fired it s...

Page 8: ...A character buffer thread calculates pixel values using a local character buffer For each pixel in a frame these two threads output data through a channel to a blender thread that does a simple blend...

Page 9: ...this design code or Information collectively the Information and is providing it to you AS IS with no warranty of any kind express or implied and shall have no liability in relation to its use XMOS Lt...

Reviews: