Download Sample Chapters from Book.

Transcript
© 2009 NURVE NETWORKS LLC “Inside the XGS PIC 16-Bit”
1.2 XGS PIC “Quick Start” Demo
Figure 1.2 – The demo running.
The XGS PIC 16-bit is pre-loaded with a simple game demo programmed into the PIC24’s flash, a screen shot is
shown in Figure 1.2. We will use this to test your system out. The following are a series of steps to try the demo out
and make sure your hardware is working.
Step 1: Place your XGS PIC on a flat surface, no carpet! Static electricity!
Step 2: Make sure the power switch at the back near the power connector is in the OFF position, this is to the RIGHT.
Step 3: Plug your wall adapter in and plug the 2.1mm connector into the female port located top-left corner of the
XGS PIC.
Step 4: Insert the A/V cable into the white (video) and black (audio) port of the XGS PIC located top-right of the board
and then insert them into your NTSC/Multi-System TV’s A/V port.
Step 7: Plug the XGS game controller into the LEFT controller port on the XGS.
Step 8: Turn the power on by sliding the ON/OFF switch to the LEFT.
You should see something like that shown in Figure 1.2. The actual program that is loaded into the PIC is located on
your CD here:
DVD_ROM:\ XGSPIC \ SOURCE \ XGS_PIC_NTSC_SNAKE_V010.c
The demo is nothing more than a simple snake game that uses one of the bitmap NTSC engines for graphics, a
simple sound engine, and the gamepad driver for reading in the user controls. The controls are shown in Table 1.1.
Table 1.1 – Tile demo game pad controls.
Action
Control
D-pad Left
D-pad Right
D-pad Up
D-pad Down
Move Left
Move Right
Move Up
Move Down
9