Download Everyday Practical Electronics 2009-07 - cycle

Transcript
Review
it gives the sense that the author is in
a one-to-one conversation with you.
The book has not been well proofread,
which can sometimes cause confusion,
but overall the author’s passion for the
subject comes across strongly, and you
cannot help but soak up some of it. It’s
an enjoyable read, which is unusual for
a user manual.
DVD
board. That’s a simple yet nice touch, as
it means you have a lot of connectivity
without needing to dig out a soldering
iron or visit your local electronics store
to purchase exotic connectors.
A 300mA 9V DC unregulated power
supply is also provided, fitted with
US style mains pins. This comes as
standard on kits supplied to Europe
too, so it isn’t of much use, but these
power supplies are very cheap and
readily available.
A close-up of the PCB is shown in
the photo above. There are two DB9
connectors for controllers (allowing
for two player games, if you purchase
a second controller), phono connectors
for video and sound output and a VGA
connector for connecting to a standard
LCD or CRT monitor.
A 6-pin PS/2 keyboard connector is
also provided. While most keyboards
are now fitted with USB interfaces it
is still possible to purchase PS/2 style
keyboards, and at a very low cost. The
PS/2 interface is a very easy to use protocol, and suitable software is provided.
A MicroSD Media card socket offers
the ability to access Gigabytes of cheap
flash storage. Finally, a 22-way 0.1-inch
header provides a very easy to access
expansion port, bringing plenty of useful I/O signals to the outside world.
Everyday Practical Electronics, July 2009
This PCB makes for an ideal, general
purpose development platform – not
just for video games.
User guide
It’s nice, in this digital age, to get
a printed manual. This one is a high
quality 300-page spiral bound book that
covers the technology and techniques
for generating video on a microcontroller, how to use the various interfaces
on the PCB, and software tool installation and use. It also delves into some
more advanced game-specific techniques such as ‘tiling’, which enables
you to generate complex scenery with
limited memory resources.
Bear in mind that the term ‘complex’
is relative – this is a very simple video
system. You’re not going to be writing
the next DOOM3 graphics system on
this platform, but rather re-creating
games from the 1980s arcades. Don’t
be put of by this, however. Few of us
have the skill and knowledge to fully
understand today’s complex graphics
algorithms, but with this system it is
possible for anyone to fully understand
and develop their own games. That in
itself is quite an achievement, and can
be enormous fun, and very satisfying.
The style of the book is quite informal and often in the first-person, so
The DVD holds all the source code
described in the manual, including
demonstration applications that can be
quickly downloaded onto the PCB. All
the software tools (mainly Microchip’s
MPLAB v8.15 and PIC24 C compiler)
are supplied. Even the full schematics
of the board are provided, which will
make hacking the board, or designing
your own add-on PCBs easy.
There are several other ‘eBooks’
in PDF format, including Andre LaMothe’s The Black Art of Video Game
Console Design. It’s an unusual, but
very entertaining book, with the first
510 of 900 pages covering the development of electronics from the ground
up – all the way back to semiconductor
theory! Like the XGS user manual, it
is written in a very open, relaxed style
and the passion of the author comes
across quite strongly. A passion that is
rather infectious!.
Software
Although much of the low level
software provided has been written in
assembly language, all of the demonstration code and tutorials assume use
of the C programming language. There
are no tutorials on the C language (they
had to stop somewhere!) so if you are
not comfortable with programming in C,
then you should consider getting a few
books on the subject first.
Nurve are working on a BASIC compiler for the XGS, but to obtain the best
results from this tiny system we would
advise that C, with a little assembly, is
the best route to take.
The software is presented in
simple, logical blocks within the
user manual, which makes it very
easy to cut and paste into your own
applications.
NTSC verses PAL
Having been developed in the US,
it should come as no surprise to learn
that all the example programs have
been written to comply with the
41