Home
LPC2104 Color LCD Game Board User`s Guide
Contents
1. 1 I I I 1 1 sl T LLYWILOSIME Lawon o T LLYW AOSI bd O L1 Od pata ZOdJYOIZTOLWWOINA V Od DOL CINIVIZLNIS UI VOd Lee 1NI 1090 11 0d ZINIWE Let 3lOs UO a pco perbang EA de HOSE dis LNH O a E OLNIWOLdVO LSLYOL Od a SLNIS SIN MA LO 206 ONIE PINA LOXL S 0d OOL ty al 31004 ada naL y ZLNIFZWAMdOTSSS 20d SNIVIZ Od Y DOORS Od ANIEL OLYWOOS Wio 0d EI K schte Ake 6 OOL o d e 29 SCH LNS Otter Dd TIA O OdW9 0198 Z 0d A a OLNIJE NMS OCI NL Od HM 0OXL0 0d 13538 HT xpLZ9d1 sn Hee Ake 924 Wee GC T 3 JO ER Zv 129d 149 del Sp Figure 18 LPC2104 Color LCD Game Board with Bluetooth version 1 0 page 2 Le 2 gt O N Dd N gt D Oo GA D O a O l 2 O O st T N O a l Copyright 2006 Embedded Artists AB k E 9345 ZE 1Z BT TZ 28 980Z ARI e 43QUAN UaWNI0q OPA UOTIOWOAG AGWWNS kl id LIL Se 1 hi w w d g g zs9eln z 9SIN 2596 lt lt r H an H an MOSZLOLOHVPL SISIN MOSZL OLOHV PZ ISIH AN LAE MOSZLOLOATRL TAS E ISoeLn a a BI LE a a a a a a a orauoo au E amp TST e m yupo 3u00 3uoo suooL 34001 829 199 925 ec 3409 ddA lt tzo UXO Lo E SIE Old ND E a a 3A119W 21 Old9 OdT ZW1X T d 300M 9S081 Oldd di LW LX E De am HIZI Old9 ZW1X 629 i 669 090 11 Old9 3 DIY
2. LPCZo0cgcc newlib v2 2 0 0 make terminal E sl Welcome to Embedded Artists summer promotion hoard LPC2164 Color LCD Game Board with Bluetooth in cooperation with Future Electronics and Philips Boards with embedded JTAG includes J linkttm gt technology from Segger Program version 1 5 Program date 2906 07 09 lt C gt Embedded Artists AB 2646 Ka Kai Kai Kai Kai Kai Kai Kai Starting key proc ATI SPP Ver 1 2 4 OK AT BTLNM BTLNM BGB203 15PP OK AT BTBDA BTEDA 111111111111 OK AT ETING 5 BTING EDE2483665511 HALF FBTING COMPLETE OK AT ET5RU 1 OR H Figure 9 Example Terminal Window Startup Message Note that in case the USB interface is only used for powering the board the driver is not strictly needed The two USB jumpers can then be removed in order to disconnect the board s data signals If a program update is needed via ISP the other alternative is via embedded JTAG the driver must be installed 2 5 1 USB Driver Behavior Sometimes the USB COM port does not enumerate properly when the board in connected to the PC This is a known feature of the USB driver If you experience this problem just unplug the board shortly and then plug in again A new COM port that can be accessed properly should be created the second time This problem may occur after every time you start 1 e power cycle your PC If the ISP
3. HE ac ma A ap Gef id tri E a LEN Gu Dia wea DIH HIS SAS 0440 HA d 808 OW j dl MANE Oidi whi Cat r ed di 1544 Odo HL Err 7 O OF OF d FOr Ciao OL Ser TE E WOS SL Ode ep Swit e IE OM aim sell l s Ba eg El gen ap OWA KI se ESORA ZIOA Sen Wed gn gA JP FF HOE E02908 tad PLN 5 OH EI Been D o D Li e co v E O a O JJ E O O zt N O a Figure 15 LPC2104 Color LCD Game Board with Bluetooth version 1 1 page 3 Copyright 2006 Embedded Artists AB v 5 OH EI Been D o D Li e co v E O a O JJ E O O zt N O a 10315 KULENI 12 28 9802 9120 uaguny yuawn2ag TPA WONGWONG ARMS kk d Fa 1111 ag ail ONS Le A ap o op st 1 155 a Ce Z Jiii AC SING AR EN TE E TING aro ar kawa siu i ig b K TA sl na E kan Lad MEE TETE Len a naa kani a e ul i one i E ajo 1 a 1 a DCH g i Ae nana TE i LO wd sed li F ALT i SVL F LTE ALE II Sa ee ee p g Ki ee a Jam pk 0 KA pik ee ee jini jim ji jaa siu kai mi cm ma ja jama jami jim jim chi Ba jam jam oi pik oia jin Se siku Ba KN pin jim E ee ee he ji ee ee KA SUDISJAA Sy 7 pappaquua uo papuna one Du ON ap k wett o OH Ob P el li 201 A gn P sava ero Sak AL Se 18 PUT POLZIJT EN AL A DUES GT JK al ays T i ed OH K
4. LPC2104 Color LCD Game Board User s Guide Copyright 2006 Embedded Artists AB LPC2104 Color LCD Game Board User s Guide LPC2104 Color LCD Game with Bluetooth Have some fun and share your programs RK EA2 USG 0605 v1 1 Rev A LPC2104 Color LCD Game Board User s Guide Embedded Artists AB Friisgatan 33 SE 214 21 Malmo Sweden info EmbeddedArtists com http www EmbeddedArtists com Copyright 2005 2006 O Embedded Artists AB All rights reserved No part of this publication may be reproduced transmitted transcribed stored in a retrieval system or translated into any language or computer language in any form or by any means electronic mechanical magnetic optical chemical manual or otherwise without the prior written permission of Embedded Artists AB Disclaimer Embedded Artists AB makes no representation or warranties with respect to the contents hereof and specifically disclaim any implied warranties or merchantability or fitness for any particular purpose Information in this publication is subject to change without notice and does not represent a commitment on the part of Embedded Artists AB Feedback We appreciate any feedback you may have for improvements on this document Please send your comments to support EmbeddedArtists com Trademarks InfraBed and ESIC are trademarks of Embedded Artists AB All other brand and product names mentioned herein are trademarks services marks
5. a gawa sad 1 I bOVd ONO JOY WHIA Lan mene J pajesado Japeq y gell wyo 081 29 pinoys v 5 O EI Been D o gt D Li e co v OH a O E O O zt N O a Figure 20 LPC2104 Color LCD Game Board with Bluetooth version 1 0 page 4 Copyright 2006 Embedded Artists AB LPC2104 Color LCD Game Board User s Guide Page 27 4 Program Development All source code is available from the support page You as a user are encouraged to enhance the software and share with all other users of the LPC2104 Color LCD Game Board This chapter shortly describes how to get started how to easily generate pictures for the color LCD and how to download new program code 4 1 Program Development The source code package is compatible with both IAR Embedded Workbench and GCC 4 1 1 IAR QuickStart Guide A project workspace file exists Simply start IAR Embedded Workbench with this workspace and all settings are correctly set 4 1 2 GCC QuickStart Guide Consult the QuickStart Program Development User s Manual for more information about the QuickStart Build Environment from Embedded Artists and program development for the ARM7 in general The source code is written for our QuickStart Build Environment which is a very effective and non complicated program development environment Below is a list of actions to complete in order to get started with your program development e Rea
6. operation possible with 3x1 2V Ni Mh batteries not included Trickle charging of batteries supported via USB port e 8 Kbit PC EPROM for storing non volatile parameters e Small form factor 90 x 90 mm Four layer PCB FR 4 material for best noise immunity It s possible to download all software in source code for the board to enhance expand and share 1 3 Other Products from Embedded Artists Embedded Artists have a broad range of LPC2xxx based boards that are very low cost and developed for prototyping development as well as for OEM applications Modifications for Copyright 2006 O Embedded Artists AB LPC2104 Color LCD Game Board User s Guide OEM applications can be done easily even for modest production volumes Contact Embedded Artists for further information about design and production services 1 3 1 Design and Production Services Embedded Artists provide design services for custom designs either completely new or modification to existing boards Specific peripherals and I O can be added easily to different designs for example communication interfaces specific analog or digital I O and power supplies Embedded Artists has a broad and long experience in designing industrial electronics in general and with Philips LPC2xxx microcontroller family in specific Our competence also includes wireless and wired communication for embedded systems For example IEEE802 11b g WLAN Bluetooth ZigBee ISM R
7. other tasks while performing the download for example playing streaming data If a download error occurs either try again or switch to Philips Flash Utility download program This program works well with USB COM ports Copyright 2006 Embedded Artists AB LPC2104 Color LCD Game Board User s Guide 4 1 3 Real Time Operating System A RTOS 1s included in the application in the form of a library Five processes are supported with priorities between 0 and 4 A process can have any priority and two or more processes can have the same priority Current revision of the source code v1 9 use three processes Read the documentation under the pre_emptive_os doc directory for details about the RTOS 4 1 4 Application Configuration It is possible to configure some parts of the application via the include file configAppl h Simply comment out the rows for the functionality to leave out when compiling It s possible to reduce the code size below 32 kByte by commenting out all configuration options 4 2 Converting Pictures to Bitmaps The 130x130 pixel color LCD can display pictures with high quality The preinstalled software use 8 bits color depth but the LCD controller also supports 12 bits color depth For 8 bits the RGB332 format is used 1 e 3 bits are used for the red color 3 bits for green and 2 bits for blue With the help of an image conversion program written in JAVA it s possible to convert any picture in the followin
8. 6 Bluetooth This menu gives some direct interaction with the Bluetooth module Philips BGB203 S06 It s possible to start a Bluetooth Inquiry and watch which other Bluetooth units are in the proximity It s further possible to activate disable the module and to control whether the module is in command or data mode It s only when the module is in command mode that it accepts AT commands For further information about this see section 2 7 below Please note that only active units in data mode can be discovered via an inquiry Else they will not show up in the list of found units when other units perform an inquiry 2 6 7 Future Software Expansion Please note that there are many possibilities to enhance and expand the software for the board It s possible to download all source code for the LPC2104 Color LCD Game Board All owners of this board are encouraged to continue working with the software and share 1t let all other users enjoy your enhancements Below are just a few ideas about enhancements e Obviously more games e Create a general bitmap for cards 53 different 4x13 joker e Dual player games over Bluetooth offers many interesting challenges e Dual play Pong game can be enhanced for example moving ball in correct direction even if communication is temporary disturbed e Dual player pong where one player is a PC for users with one board e Handling of large scrollable menus This if for example needed when more
9. ATI SAS OL Oldd Sa E d 906 Oldo d MO Oe OU Cer di 29111 Old9 101 DwWLP a a a a EE E dek Yi IL Old WL DWI 128722100149 ado Wel OYA LI SA zsa Tg coza 54 ein E ONO LL Le 2 gt O N Dd N gt D Oo GA D O a O l 2 O O st T N O a l Figure 19 LPC2104 Color LCD Game Board with Bluetooth version 1 0 page 3 Copyright 2006 Embedded Artists AB k k 9345 ZE 1Z BT TZ 28 9980Z BEO En 43QUNAN juaswna2og OPA UOTIOWOAG ASUWNS kk TI id LIL 1n ang a a al age 2 E Jumi Aeadnz AE YANzZ TE RK mE Evo zo F ZOW ko raw Na WZ UAN JATI L INGA NIA _ 18104 ABE Zeen Div ei E AA E Ee E EE e EE EE KE E Et GN aa ku ra pa Le eee A i a i 1 1 Jul 1 a 1 ef e 1 a Lg 1 1 rW 1 1 us 1 i AS 9 ANZ al k i 1 ONS i bad 6 9 ray Na i ALE on OVLP XpIZ0d7140 ALE AAA i i SNSOZSXdS oaro i 1 ein 1 Le wm wm wm vm wn em em vm pm em e E A Oe IA 2 Be anana E anan an anan an E E an anan an ee EE E o anan a an ad pa unouu JON a ul HN wer a a a zd 24004 AE WAN a Se ONS OON PO 189 9 9 raw N3 EH inoa ma H ONO ABI 18 PUB p0 129d 1494 48 L Goes selJepeq UN AZ KE avd in Log E F 1 4uy l 1 pajunou JON arg Seo 1 APE a a a 1 a a a 2 BS ena ES auo AE9 4nz auo uoo Aeaung SIE zeo Leo oed T Ge gg res LOW j raw Na S d 1NOA NIA LG 4 AVE 091 PUE POLEN 40 ALE en a Em a ka
10. C dr K WS T ji em Sc Be Sg dk e z TE dl 1 Ae aang am aa wL Ae wane NIE BR ett get aaf sta sen a ALE Lt a a PUT OLEO EN ALE RV Ee Sin a Olga Ono SEE ICH AC LIE ayd LABA ON agwrdd Todd a ia KK Figure 16 LPC2104 Color LCD Game Board with Bluetooth version 1 1 page A Copyright 2006 Embedded Artists AB b T 3834S ZE 1Z BT TZ 28 980Z RO 3IQUAN kuwili OPA UOTIOWOJG ASUUNS kk JI id LIL CO JONI LING Od IOLE 1Md39W8 Up Od WOLZLAGADVY LES Od SW LLAdS9 VeL82 0d 1541 0143 DWH 1 22 Od D INASI3DWHL 9Z 0d m p Z1W153d 527 0d o m LLWLSAdid P2 0d 0LWLS3dH Z 0d 119398 LZZ 0d COU Od IOLE LIWWWOZ Od MILIT LLVWEL 0d a SIE bd VOR r Od 1SYUZ bd o2b Od ZOLWWMWO1NI3 910d i gt Ja LAE 341 9 ZINI3 119 5 Od LINI ODO P 0d V LDV YLO UDO OL LAWL sari Od F bd VOVISLOVE Od ZHINSS PL Mi O Ld VOLS LY OL Od AM LOXM 6 Dd PIMA OK 1 8 Od J5 cog G Och Al Pos te d re LU NI 1H91 Hg 99 aja D Q EI SISA AS 1 0 ZMIMdN3SS 1 0d ZOd O ISCWW9 Od VO LVWOS IWS od VOdYIMOSP od OO od vid IZ Od EN MAO XYL Od WM d DCK LO Od ICS Version MUKA Ud DOXLU Ud POLZOd1 n pajunou JON a a AG WANE 24004 Goal 59 AS AML A OO 24004 Ake iy Abe 94 DOH A w N va JA LAE LAE amp E e EI a LAE AG E Figure 17 LPC2104 Color LCD Game Board with Bluetooth version 1 0 p
11. Datasheets of all circuits on the LPC2104 Color LCD Game Board including user s manual for the BGB203 S06 Bluetooth module e QuickStart Build Environment from Embedded Artists which contains a complete setup of a build environment for GCC e Image conversion program for generating bitmaps from pictures Registering 1s easy and done quickly 1 Go to http www EmbeddedArtists com select Support and then Register 2 Type in the products serial number can be found on the ESD bag of the LPC2104 Color LCD Game Board along with your personal information Copyright 2006 Embedded Artists AB LPC2104 Color LCD Game Board User s Guide Page 31 6 Further Information The LPC2104 microcontroller is a complex circuit and there exist a number of other documents with a lot more information The following documents are recommended as a complement to this document 1 Philips LPC2104 Datasheet http www semiconductors philips com acrobat datasheets LPC2104 2105 2106 05 pdf 2 Philips LPC2104 User s Manual http www semiconductors philips com acrobat usermanuals UM LPC2106 2105 2104 1 pdf 3 Philips LPC2104 Errata Sheet http www semiconductors philips com acrobat erratasheets 2 104 pdf 4 ARM7TDMI Technical Reference Manual Document identity DDIO029G http www arm com pdfs DDI0029G_7TDMI R3 trm pdf 5 ARM Architecture Reference Manual Document identity DDIO100E Book Second Edition edited by David Seal Addis
12. F Ethernet CAN RS485 and Fieldbuses 1 3 2 LPC2xxx QuickStart Boards and Kits Visit Embedded Artists home page www EmbeddedArtists com for information about other QuickStart boards kits or contact your local distributor Copyright 2006 Embedded Artists AB LPC2104 Color LCD Game Board User s Guide 2 Getting Started This chapter describes everything you need to know to use the LPC2104 Color LCD Game Board Please read this chapter before you starts to use the board 2 1 ESD Precaution Please note that the LPC2104 Color LCD Game Board comes without and case box and all components are exposed for finger touches Make it a habit to always first touch the metal surface of the USB connector with both hands before you start using the board e g playing See picture to the right where to find the USB connector USB connector with grounded metal case LPC2184 Color LCD Game with Bluetooth Figure 1 LPC2104 Color LCD Game Board Picture 2 2 Up and Running Immediately Just connect the USB cable between a PC and the board The LPC2104 Color LCD Game Board will power up and you can immediately start playing the pre installed games 2 3 Different Board Versions There exist two versions of the board version 1 0 which are the boards without embedded JTAG and version 1 1 which are boards with embedded JTAG Version 1 1 of the board is designed to also allow the LPC2103 as main processor Therefore
13. a Device ID TAL Freq kHz f 4756 Boot Loader 1D Selection Figure 11 Philips Flash Utility Program Window Forth test communication by pressing the Read Device ID button The Part ID and Boot Loader ID boxes should be updated with information is the program can communicate with the LPC2104 on the board Finally brows for the hex file to download and then press the Upload to Flash button The program download process takes about 60 seconds 2 9 Battery Powered Operation It 1s possible to power the LPC2104 Color LCD Game Board via rechargeable batteries Three 3 1 2V Ni Mh batteries are needed Batteries are not included nor is a battery holder The following steps are required to get the board battery operated 1 Get a suitable battery holder Fasten it for example on the backside on the board 2 Solder the two wires from the battery holder to the board See Figure 12 below for details about where to solder 3 On version 1 0 of the board replace the two 0 ohm jumpers with four 180 ohm 0603 resistors On version 1 1 the four 180 ohm resistors are already mounted See Figure 12 below for details where to find the resistors 4 Ifthe batteries are charged via the USB interface remember to remove the USB Charge Jumper in order to limit the charge current This is important in order not to damage the batteries or the USB interface of the PC If batteries are not inserted used and USB
14. a number of components in the schematic are not mounted Another main difference 1s that version 1 1 uses an I2C port expander to have the needed I O pins When enabling JTAG on the LPC2104 ETM is also automatically enabled This steels a mayor part of the available I O pins of the chip and hence the port expander is needed Version 1 0 and 1 1 are compatible in software since it is possible to sense which hardware the software runs on and adjust a few I O specific functions accordingly During startup the application simply tests if DC communication with the DC port expander is possible If so the application runs on v1 1 hardware If not it runs on v1 0 hardware Pictures of the board will show v1 1 in this document since all relevant components jumpers are on the same place on the PCB Any relevant differences will be noted Copyright 2006 Embedded Artists AB LPC2104 Color LCD Game Board User s Guide 2 4 Jumpers This section described the different jumpers on the board and how they control the operation 2 4 1 Board Version 1 0 USB jumpers Always insert upper two jumpers to the right USB ISP jumpers Should only be inserted when downloading new program code via ISP Not inserted under normal operation Philips B68283 Bluetoothttm by Futup USB Charge jumper Should always be inserted unless trickle charging batteries via USB Crystal jumper Should always be
15. age 1 3 2 Board Schemat Le 2 gt O N Dd N gt D Oo GA D O a O l O O st N O a l Copyright 2006 Embedded Artists AB b C says ZE 1Z BT TZ 28 980Z RO a a a a a a JagunN euro gl al e augo dura OPA UOTIOWOAG ASUWWNS agi id LIL Z896N zsooln 25287 Cen erch 619 H S H LS No nang WA ae XZNOAGHLYd ay SOWANG 24004 a aF s o o Ee dha AA ta SS a MOSZLOLOHVEL LATA PI Ud y A z L O0oLn E d rae ELO rn WOLEZ bd IOLSC bd GOU ld YILU Id PAB ONLLX3 SZ Ld ES o 1M1930W8 1 PZ ld a a a 24005 34004 340014 DOA ZIVIS3didrez ld zo to oo LLWLS3dId ZZ Ld 01W1S3dld 1Z Id INASIOWHL OZ kd TAIYA ld z 21Md39VW8 1 81 Ld T 7 Lia OLIdSDVYLIL La F MOSZLOLOHWrL Ono EN 13534 an f JIN di Cl Lne PF o FR a L o a Ki ei YLL8LYO ZMS in we we ee we ee we oe ee eee ee em LE 0d OOdVO ELNIZIENTWI0E Od EO LWE Ode NIWI6Z od Kaes Od DL NIW 82 Od 0 1NOYPNIWSZ Od HS ery D A HSL CP MOSZLOLOHVEL ERES I 1 1 I I 1 1 1 1 1 Gi CC 0d sr wa 00 LWO DAY DIS LNIVEZ Od 00 ELE INSI dZ Od ELNIZATISSE Lie Od DCH CL SOWWZ LLY Od 004 i 1 1 I I 1
16. ard User s Guide Page 18 mean value of all produced boards with a reasonable good result Type the following command to the BGB203 S06 Bluetooth module when in command mode AT BTSET 2 100 2 11 Don t Do This Do not try to remove the color display It s attached to the PCB by strong double sided scotch The display will definitively be damaged by any attempt to remove it from the PCB Do not recalibrate the BGB203 S06 module unless you have access to a precision frequency counter Copyright 2006 Embedded Artists AB T 2804S PREEOT TZ 28 988Z sen oe r dei ONS a DHI NIH 230WNN JUSUWNI30 A A pan VTA WOnOowWOosg A49WUng kaidi FAIL aL COLONILLE Oe LAL Md ITALO 0d GA Laf E CT 0d pesa FS SLL LA lat PSA F LSU WINE OWASSIWELIOT 04 TLiWLS3dd ST Od WAJA TINA LEDA A FOMBA amp OLVLS34Id tT Od W193 IW4LTT Od S de E SEN OOLSNING IT Od la OLA Lier o Fr rem pes per pes rees MOLT Lived od SALE NENG Od ASL NGING Od TOLYWWOLNIDG1 Os ows 195 1 1 TINGI Si Od ANG NO DOT Od LIVIA OT Od Oo Liszt Og VINIL Od WI YS BOL OJ WANG LOX Og MINGI OXLS d D F Sin MWMMITVISS Od a ee OK POLYIWOSINVS dd OJOS TY od OO0LWWWOSAT 04 OGN LS dd H E e Od AP A ON LO Od ics version a ONG OND NE SANZ JoL 97 59 yO e AE 920 001 Ad Board Schemat us II Je 2 lt JAM TIO LO LAS F l 1 This chapter contains schematic
17. ct Registration 30 6 Further Information 31 Copyright 2006 O Embedded Artists AB LPC2104 Color LCD Game Board User s Guide 1 Introduction Thank you for buying Embedded Artists LPC2104 Color LCD Game Board based on Philips ARM7TDMI LPC2104 microcontroller 1 1 Contents The box received when ordering the LPC2104 Color LCD Game Board contains the following e The LPC2104 Color LCD Game Board with or without embedded JTAG depending on what board version ordered e A USB cable of type mini B to A 1 2 Features Embedded Artists LPC2104 Color LCD Game Board with Philips ARM7TDMI LPC2104 microcontroller will give you some Summer Fun but it also lets you get up and running quickly with Philips LPC21xx series The board has the following features e Philips ARM7TDMI LPC2104 microcontroller with 128 KByte program Flash and 16 KByte SRAM e 14 7456 MHz crystal for maximum execution speed and standard serial bit rates Phase locked loop PLL multiplies frequency with four giving 58 9824 MHz e 130 x 130 pixel color LCD with white LED backlight e Bluetooth communication based on Philips BGB203 S06 Implements the Serial Port Profile SPP e Version exist with embedded JTAG based on J link technology e USB program download ISP via USB to UART bridge FT232R chip e Five key joystick for user input e 2 LEDs e Piezo electric buzzer e On board low dropout voltage and reset generation Powered via USB e Hand held
18. d Ga gem LLYN NAME aL Oo tat o NING NGT a Led Kean i aoe a en id ofr KE L t LE id E EUA MIL DANA LO SA SL TEN 050 Gel r i reen SG OI del OO e LENT LIRR TESO TIE 0d La LUPA AULA Ad FH DUA A o i CLA VAd O E Dad DO BHA OLLA O Pali J e a Ha j EA MSN SSS dl SW ANN MUS OM Dad GH INS Cy es WE hi gt iy Wa e Oft DESDE z 5 Er 5 E Ou DONI E od AHAD A IOC AA A EM ihe f LAMAO L De Als dee El eh dee SLL dei EH dg Eu SUOISIGA SLP PSppaquue uo paumo EE ay v 5 OH EI Been D o D Ben e co v E O a O JJ E O O zt N O a kh tini m jani jo s jawa Wa pa e pah san ksih mS E MAN y jaw a ja ts kd VC pa jawah a sadi Sl mu Ss pm ml in Figure 14 LPC2104 Color LCD Game Board with Bluetooth version 1 1 page 2 Copyright 2006 Embedded Artists AB E 139845 PTEEBT T12 8 9002 9120 re Jagung yuaunsoang LA WONDWOAG ASWUNG REI 31111 MOST SHH YA ISLA MOSELA LEN adi as E MASSE Dal IA TEL St E Lean one na me V E 8 a a a a a EENEG zc one ke A EE a GU SACH On a SR Bauen 5555555 A am su ao aa Ant F E e DEA Oe ss aan L Tea TA dr Ode E ce Ou EI Sei LE OH a P TA OLI OE dg Or MA 4 TE cowed BE GU Gedo su dar H BLIE 00 vn SEH a ee Suen Ode odst e SCC CND Cp Idi UL T 1 7 Re Olah d 301 aer
19. d the QuickStart Program Development User s Manual and install GNUARM and the QuickStart Build Environment from Embedded Artists Note that currently only v3 4 3 of GCC is supported e Make sure you have modified the bash files for your paths In most cases this is done by the install program e Download the source code package from the support page You must register as a user before you get access to the support pages e Unpack the zip files to a suitable directory e Open a QuickStart Build Environment prompt Please note that this is not the same as opening a DOS prompt even though the windows looks similar You will find the QuickStart Build Environment under all installed programs Embedded Artists gt LPC2xxx gcc newlib gt LPC2xxx gcc newlib v2 3 0 0 e Change working directory in the QuickStart Build Environment prompt to the root of the unpacked source code e Compile and link by typing make It s a good habit to always type make clean before the final build e Ifyou want to download the source code directly via ISP you can type make deploy Before you do this make sure the correct COM port from the USB driver is selected in the makefile Simply open the makefile in an editor At the end of the file there is a row starting with DL_COMPORT com5 Change to the correct COM port Please note that the download program does not work perfectly with the USB COM driver This problem can happen if the PC is loaded with many
20. erted GH Ta Toe J H g Ju F S USB Charge jumpers ragan ch SE ech E Depends if battery nanang G wA el AN operated or not 0 E JTAG Control jumpers o El Should not be inserted el a Designed and produced gt E pl by Embedded Artists AB Ha a o 9 oo kera aka Ad a a MAA ANA con Le oo Bo ALL JTAG Enable jumper J100 Should not be inserted STI s SE LPC2104 Color LCD Game with Bluetooth Figure 10 Jumper Setting for ISP Program Download Secondly make sure the created USB COM port is configured correctly 1 e 115 2 kbps 8N1 no flow control and a COM port number between 1 and Third start Philips Flash Utility program Mare cure the Use DTR RTS for Reset and Bootloader Selection checkbox is selected set correct crystal frequency 14756 correct bitrate and COM port Copyright 2006 Embedded Artists AB LPC2104 Color LCD Game Board User s Guide Brows for hex file EMPEZO Fon Unie Bak File Buffer Help PHILIPS LPC2000 Flash Utility V2 2 3 Set COM port Flash Programming y r Erase Blank Communication Filename Connected To Port C lpe2104_color_led_v1 5 hex Blank Check Entire Device coms x C Selected Sectors Execute Code Use Baud Rate Set bitrate eee 4 Een Start Sector J 115200 AS aan i E Compare Flash Manual Reset pe End Sector d Time Out sec 2 Device Use DTR ATS Device A for Reset and LPC2104 Read Part 1D Iw B
21. forget to set the jumpers correct and to configure the USB COM port correctly correct bitrate 115 2 kbps and 8N1 no flow control 4 4 Program Download via embedded JTAG Use the IAR Embedded Workbench to download the completed via JTAG The project is set up to automatically download the code when debug mode is entered According to postings on the Ipc2000 yahoo newsgroup there also exists a J link GDB server for integration with Insight GDB This has not been tested but users are encouraged to share experiences Please note that what JTAG and USB Serial port share the same USB connector When JTAG is used the USB serial port cannot be accessed Copyright 2006 Embedded Artists AB LPC2104 Color LCD Game Board User s Guide Page 30 5 Product Registration You can download a lot of valuable information and programs that will easy your program development from the support pages See details below about the product registration process which allows you to always have access to the latest versions 5 1 Product Registration By registering as a customer of Embedded Artists you will get access to valuable material and information that will get you up and running instantly e The latest version of the software both as binary image hex file and as source code e Access to a Real Time Operating System RTOS in the form of a library that can be used for non commercial applications This library is part of the software e
22. g formats jpg png gif bmp into a C array that can easily be downloaded into the display memory of the Color LCD Prepare the picture if needed in any picture manipulating program Unusual picture formats can also be converted in any picture manipulating program into any of the supported formats Note that some formats of bmp are not supported The conversion program will signal this If this happens just convert into another picture format The program can be instructed to cut smaller pictures than the 130x130 pixels of the display Figure 21 below illustrate the usage GS picture java jar 1imgy_conv jar Usage java jar img_conv jar image f format w width h height To outputfilel c output format A SIA rgbb65 set the clipping width default 240 set the clipping height default 320 output filename default img c gt compress the data Ginpicture gt A typical command from DOS prompt can be java jar img conv jar myPicture jpg f rgb332 w 130 h 130 o myPic h c The last c option enables a simple compression scheme There exist a simple unpacking routine in the software platform The compression algorithm simply aggregate bytes of the same value into a short escape sequence Copyright 2006 O Embedded Artists AB LPC2104 Color LCD Game Board User s Guide Page 29 4 3 Program Download via ISP over USB Please read section 2 8 for details about program download via ISP over USB Do not
23. games are added to the main menu and if many Bluetooth units are found during an inquiry e Create a virtual machine maybe a small JVM so games can be downloaded over Bluetooth e Add more graphical handling routines e Huffman encoding of pictures in order to compress storage needed for pictures e Handling of high score stored in on board 8kbit EEPROM maybe even implement a registry handling to easily retrieve settings for different games e Make use of the on board buzzer in the games e Make the code more general Please keep the startup messages in the code if possible 2 7 Bluetooth BGB203 S06 The Bluetooth module 1 e Philips BGB203 S06 can be directly accessed via the USB serial communication channel Simply connect a terminal program to the COM port that the USB driver creates Make sure the USB serial channel settings are 115200 baud SNI no flow control See section 2 5 above for details about how to change driver settings Make sure the jumpers for ISP program download is not inserted since many terminal programs control these signals in a way that will reset the LPC2104 Color LCD Game Board Read the BGB203 S06 User s Manual for details about the module including the available commands The document can be downloaded from the support page at Embedded Artists after product registration See details about product registration in chapter 5 below in this document Copyright 2006 O Embedded Artists AB LPC2104 Co
24. in lower position Hoa 5 2000 TET os o 00 eco Ooogo L2 Li md E RESET a LPC2104 Color LCD Game with Bluetooth USB jumpers Insert all three jumpers to the left to enable embedded JTAG via USB Move to the right to disable JTAG and enable USB Serial Port communication Figure 2 Board Jumpers for v1 0 2 4 2 Board Version 1 1 The only difference in jumpers is that the crystal jumper has been removed and enable JTAG is actually mounted USB ISP jumpers Should only be inserted when downloading new program code via ISP Should not be inserted when working via JTAG JI Con Future gplus A En d a SE Zi JF Be LE a aaa a a IS 3 14 3 16 a Bel Ni Mh Active g Oo ito USB Charge jumper Should always be inserted unless trickle charging batteries via USB 00000000 og JTAG Control jumpers F KR CY na Should normally be b Ae i j peras and produced inserted Remove when O i Eeler gieren battery operated un TD 00000 poo L dE JTAG Enable jumper A a Only inserted when LPC2104 Color LCD Game with Bluetooth controlling the Figure 3 Board Jumpers for v1 1 LPC2104 via JTAG Copyright 2006 Embedded Artists AB LPC2104 Color LCD Game Board User s Guide 2 5 USB Driver A USB driver must be installed on your PC computer in order for the USB to UART chip FT232R to function Make sure to dow
25. jumpers are inserted pressing the reset button is often required in order to startup the board it can be placed in bootloader mode during startup due to RTS DTR signal handling by the USB driver during startup 2 6 Pre installed Applications The LPC2104 Color LCD Game Board comes with software preinstalled This section describes the software functionality Please note that this description applies for version 1 8 of the software Later versions might change the behavior Read the change notes when updating the software versions for description of the possible changes 2 6 1 Startup sequence A startup sequence is displayed when the board is first powered up It is possible to abort this sequence by pressing any joystick key 2 6 2 Menu After the startup sequence the main menu is displayed along with a small animated picture sequence just to illustrate the capabilities of the display and the system in general Use the joystick keys to move the cursor up and down Select a menu position by pressing the center key of the joystick Copyright 2006 Embedded Artists AB LPC2104 Color LCD Game Board User s Guide Page 13 Please note that it s possible to adjust the display contrast be pushing the left right joystick keys The reset value may need change if temperature or light conditions change 2 6 3 Example Game This is the first example game implemented on the LPC2104 Color LCD Game Board Move the falling objects with the
26. lor LCD Game Board User s Guide Page 15 A good command to start with is quickly send three plus signs in order to set the module in AT command mode An OK should be received in response to this command Then send ATT plus enter and a version response string will be received This little test ensures that the communication with the BGB203 S06 module has been established via the terminal Please note that the Bluetooth module is not accessible via the USB serial channel when a game uses the Bluetooth module In the current software version this applies to dual player Pong game Please also note that it s not a good idea to change the frequency calibration parameter Each LPC2104 Color LCD Game Board has been calibrated and changing this setting may alter the frequency so that the Bluetooth module no longer can communicate with other units A recalibration is required in that case which requires a very accurate frequency counter 2 8 Program Update This section describe how to perform a program update 1 e how to download new software in the module The ISP functionality is used over the USB serial port that the FT232R chip creates For boards with embedded JTAG see section 4 4 for details First of all the jumpers must be properly inserted as illustrated in picture below USB jumpers Insert the two upper jumpers to the right position to enable the USB serial port USB ISP jumpers Should be ins
27. nload the latest version of the driver which can be found at the following URL http www ftdichip com Drivers VCP htm search for a FT232R driver for your operating system Latest version of the driver at the time of writing this document is 2 00 00 When the LPC2104 Color LCD Game Board is connected to the PC via an USB cable the PC will ask for a driver Unpack unzip the downloaded driver file and brows to five the position of the driver files After successful driver installation a COM port will be created Before communication with the LPC2104 Color LCD Game Board can take place the UART settings must be correctly set The following description 1s valid for Windows XP but other operating systems have similar dialog windows See the USB driver documentation for details if needed To change UART settings first open the System Properties dialog as illustrated in Figure 4 below System Properties Syste m De store Automatic Updates Remote General Computer Name Hardware Advanced Device Manager Device The Device Manager lists all the hardware devices installed on Manager your computer Use the Device Manager to change the properties of any device Device Manaqer Drivers Driver Signing lets you make sure that installed drivers are compatible with Windows Windows Update lets you setup how Windows connects to Windows Update for driver
28. o move with right left joystick keys If the center key is held down when the ball hit a paddle the ball speed will be increased 2 Dual player game act as client In this case the Bluetooth module will search for Pong servers to play with Select the server to play with from the presented list and start to play The server must accept a connection request before the game can start When the game has started the paddle is moved up down with the up down joystick keys If the center key is held down when the ball hit a paddle the ball speed will be increased else decrease If the communication channel is lost the game is ended 3 Dual player game act as server In this case the Bluetooth module will act like a server waiting for Pong game clients to request connection 1 e to start a game The server will ask the user to accept the connection request before the game is actually started When the game has started the paddle is moved up down with the up down joystick keys If the center key is held down when the ball hit a paddle the ball speed will be increased else decrease If the communication channel is lost the game is ended Please note that due to startup commands sent to the Bluetooth module do not start the pong game until 10 seconds after powerup Else the Bluetooth communication might not function properly Copyright 2006 Embedded Artists AB LPC2104 Color LCD Game Board User s Guide Page 14 2 6
29. o this needs to be changed manually It is common that all COM ports with low numbers are listed as occupied but test to change to a low number anyways Very often it s no problem at all to do this Advanced Settings for COM3 2 x COM Port COM Part Number D Number Setting USB Transfer Sizes Cancel Select lower settings to correct performance problems at low baud rates Select higher settings for faster performance Defaults Receive Bytes 4096 v Transmit Bytes 4096 v DM Options Miscellaneous Options Select lower settings to correct response problems Serial Enumerator Serial Printer Latency Timer msec 16 Cancel If Power Off Timeouts Event On Surprise Removal Set RTS On Close Minimum Read Timeout msec lo v Disable Modem CN At Startup Minimum Write Timeout msec fo v Figure 8 Advanced USB Serial Port Properties Dialog Finally it s time to test if you have successfully installed and configured the USB Serial Port Start a terminal program Connect to the correct COM port with 115200 bits per second 8N1 no flow control Remember to not have the USB ISP jumpers inserted Copyright 2006 Embedded Artists AB LPC2104 Color LCD Game Board User s Guide A message like below should be printed on the terminal Please not that the picture below is just an example The exact message will likely change for future program revisions
30. on Wesley ISBN 0 201 73719 1 Also available in PDF form on the ARM Technical Publications CD 6 ARM System Developer s Guide Designing and Optimizing System Software by A N Sloss D Symes C Wright Elsevier ISBN 1 55860 874 5 7 Embedded System Design on a Shoestring by Lewin Edwards Newnes ISBN 0750676094 8 GNU Manuals http www gnu org manual 9 GNU ARM tool chain for Cygwin http www gnuarm com 10 An Introduction to the GNU Compiler and Linker by Bill Gatliff http www billgatliff com 11 LPC2000 Yahoo Group A discussion forum dedicated entirely to the Philips LPC2xxx series of microcontrollers http groups yahoo com group lpec2000 12 The Insider s Guide to the Philips ARM7 Based Microcontrollers by Trevor Martin http www hitex co uk arm lpc2000bo0k index html Especially note document 3 There exist a number of bugs in the processor that is important to be aware of Note that there can be newer versions of the documents than the ones linked to here Always check for the latest information version Datasheets for all circuits can be downloaded from the support page Copyright 2006 O Embedded Artists AB
31. power is used the USB Charge Jumper must be inserted Note that the battery charging is very simple 1 e trickle charging is implemented where the charge current is very low Since the charge current is low the batteries can be left in charging mode all the time The downside is long charging times up to 8 14 hours If faster charging time is needed use an external battery charger 5 Note that there is no reverse battery protection so be careful when inserting batteries Copyright 2006 Embedded Artists AB LPC2104 Color LCD Game Board User s Guide Page 17 USB Charge Jumper jal DN Philips BGB203 S 6 Provided WWW F UtureElectronic On v1 0 replace these 0 ohm resistors with two 180 ohm 0603 resistors On v1 0 solder two 180 ohm 0603 resistors QT K D DO J link tm technology m O Li D Oo a L licensed b UBAT GND CHRG 3 1U 3 1U O wuu segger com CH MA AL PA a 000000000 AR o nanan tb D ae be Attach wires from battery holder here Figure 12 Battery Operated Board 2 10 Troubleshooting Read this section if you experience any problem using your LPC2104 Color LCD Game Board e First of all make sure you have all board jumpers in the correct positions See section 2 4 above for details e The first time you plug in a board in the USB connector on your computer a new COM port may not be created properly This is a known feature of the USB driver If yo
32. registered trademarks or registered service marks of their respective owners and should be treated as such Copyright 2006 Embedded Artists AB LPC2104 Color LCD Game Board User s Guide Table of Contents 1 Introduction 9 1 1 Contents 5 1 2 Features 9 1 3 Other Products from Embedded Artists 5 1 3 1 Design and Production Services 6 1 3 2 LPC2KKK QuickStart Boards and Kits 6 2 Getting Started 7 2 1 ESD Precaution 7 2 2 Up and Running Immediately 7 2 3 Different Board Versions 7 2 4 Jumpers 8 2 4 1 Board Version 1 0 8 2 4 2 Board Version 1 1 8 2 5 USB Driver 9 2 5 1 USB Driver Behavior 12 2 6 Pre installed Applications 12 2 6 1 Startup sequence 12 2 6 2 Menu 12 2 6 3 Example Game 13 2 6 4 Snake 13 2 6 5 Pong 13 2 6 6 Bluetooth 14 2 6 7 Future Software Expansion 14 2 7 Bluetooth BGB203 S06 14 2 8 Program Update 15 2 9 Battery Powered Operation 16 2 10 Troubleshooting 17 2 11 Don t Do This 18 3 Board Schematic 19 3 1 Board Schematics version 1 1 19 3 2 Board Schematics version 1 0 23 4 Program Development 27 4 1 Program Development 27 4 1 1 IAR QuickStart Guide 27 4 1 2 GCC QuickStart Guide 27 4 1 3 Real Time Operating System 28 4 14 Application Configuration 28 4 2 Converting Pictures to Bitmaps 28 4 3 Program Download via ISP over USB 29 4 4 Program Download via embedded JTAG 29 Copyright 2006 Embedded Artists AB LPC2104 Color LCD Game Board User s Guide 5 Product Registration 30 5 1 Produ
33. right left joystick keys Rotate the objects by pressing to up key and speed up the fall by pressing the down key Score 1s shown at the bottom of the display The drop speed increases with higher score When pressing the center key of the joystick a menu pops up where it s possible to select Restart game or End game These are the same options as when the game is over overflowing the game board 2 6 4 Snake This is another well known game Start by pressing any joystick key The snake will always start to move in the right direction Change direction with the joystick Eat green dots and avoid red obstacle dots Whenever a greed dot is passed eaten the length of the snake increase with one The snake 1s not allowed to cross the game board borders or its own body Level and score are shown at the bottom of the display With increasing levels the number of dots in the game board increases When pressing the center key of the joystick a menu pops up where it s possible to select Restart game or End game These are the same options as when the game is over 2 6 5 Pong This game can be played either with one player or with two players In the latter case Bluetooth us used for communication with the two players The first three choices presented to the payer are 1 Single player game In this case move the paddles up and down with the joystick up down keys Select active player 1 e which paddle t
34. s Driver Signing Windows Update Hardware Profiles Hardware profiles provide away for wou to setup and store different hardware configurations Hardware Profiles Apely Figure 4 System Settings Dialog Copyright 2006 O Embedded Artists AB LPC2104 Color LCD Game Board User s Guide Then select the Device Manager and then open the Ports list as illustrated in Figure 5 below O mr Device Manager File Action View Help gt rra CG 3 RA 4 IDE ATA ATAPI controllers Sa IEEE 1394 Bus host controllers Sa Keyboards Mice and other pointing devices Monitors 88 Network adapters BW 1394 Net Adapter E Broadcom 440x 10 100 Integrated Controller ma Dell draadloze WLAN 1450 dubbele band WLAN Mini Sai Wireless G Notebook Adapter with SRX Other devices PCMCIA adapters 2 4 Ports COM amp LPT F Processors amp SCSI and RAID controllers A Sound video and game controllers d System devices Universal Serial Bus controllers Figure 5 Device Manager Dialog The new COM port USB Serial Port will be listed under the Ports list Right click on the new USB Serial Port and select Properties as illustrated in Figure 6 below Device Manager File Action View Help cz BR Sg a E IDE ATA ATAPI controllers gg IEEE 1394 Bus host controllers HS Keyboards Ee Mice and other pointing devices USB Serial Port Monitors i Network adapters mp 1304 Ne
35. s of the two different versions of the LPC2104 Color LCD Game Board 3 Board Schematic 3 v 5 O EI Been D o gt D Ben e aa v E O O O JJ Sa E O O lt t N O a page 1 H LPC2104 Color LCD Game Board with Bluetooth version 1 1 Figure 13 Copyright 2006 Embedded Artists AB 2 Heels ELE Te z0 9007 taren on oyo On ar or o IH Jagung yuauwnsag gr RS OR d zm 001 PTA UOTIOWOAg ASUS ALT JALIL SON EEN OS CESA vw EZ CH Als EL ja ong Z f ve ar ik Se E i ee Cl rzezi le O f T 0060 ka anu F Seo BE aaea um oe E ech wI oh MOSTISLOHVRL a a 19639 E LA Pre F ai 7 La mi 5 gossn ke emm Sn o of ndas A GA ALA EMA ovaue 31 K Or al 53500 Gu SEEE E AA G Di A a Iz d e sn mai beem e Sis i La adan aden IS E B el a JAN Ban e ISHLI Ld INE M i SCH SADO id BILGE Id BCS L OIL ld a EE im LS LE ai ari a a ON LSE ha P MISS WHE Id E 20001 sunan au pz ka ir NYESEL OO OH Ye 1S8 Th lt i 7 Bonn Y dn LEE Tangi LAMI SAM 313 SL FLO DIL Sd L MASE TALE Ld TINA ELE Td ELA AL id z Leit bed TOT Sleds va te MOSELOUIHVL ano Ean NJ S38 F Sr em cm LE Ge DIE IND RI Oo COLMO SOTA aE o OLY WWE hele LAPA De a d j LOO eS E Dd MAGEH SH FL LahA HI Wa C od OLY ee le E NASA NG IO CINGSLSSSE LH el Te ONE LL Pe 0
36. t Adapter 88 Broadcom 440x 10 100 Integrated Controller B8 Dell draadloze WLAN 1450 dubbele band WLAN Mini PC BB Wireless G Notebook Adapter with SRW E Other devices E PCMCIA adapters H d Ports COM amp LPT WY Serial Port CONS e Processors e es SCSI and RAID controll Properties Update Driver Disable Uninstall E Sound video and game H r System devices Scan for hardware changes e amp amp Universal Serial Bus con con aana Opens property sheet for the current selection property sheet for the current selection Figure 6 Device Manager Port Dialog Copyright 2006 O Embedded Artists AB LPC2104 Color LCD Game Board User s Guide Set 115200 bits per second 8 data bits none parity 1 stop bit and none flow control as illustrated in Figure 7 below Then select Advanced settings USB Serial Port COM3 Properties General Port Settings Driver Details Bits per second Data bits be rr A Parity None sl Stop bits pn l UART settings Advanced Restore Defaults Advanced settings Figure 7 USB Serial Port Properties Dialog Set the desired COM port number under the Advanced settings dialog Philips FLASH Utility program for ISP program download needs for example a COM port number between 1 and 5 Very often the COM port number selected but the USB Serial Port is higher than this s
37. u experience this problem just unplug the board shortly and then plug in again A new COM port should be created the second time This problem may occur after every time you start 1 e power cycle your PC e Ifthe board does not start up properly after the USB cable is applied first make sure the ISP download jumpers are not inserted Press reset to restart the board If this does not help make sure the USB charge jumper is inserted Press reset to restart the board If this does not help measure the voltages on the board to make sure the board gets proper power via the USB cable VUSB should be at least 4 5 volt VCHRG should be the same as VUSB as long as the USB charge jumper is inserted e Ifthe reset LED lower left corner lights constantly make sure the USB changer jumper is inserted and make sure VUSB is at least 4 5 volt e If your board does not find other Bluetooth units check the following o Make sure all involved boards have different Bluetooth addresses All boards have different addresses when delivered but the address can easily be changed o Make sure the BGB203 S06 module is in data mode as opposed to command mode It s only when in data mode the Bluetooth module can be discovered e Ifyou have changed the crystal frequency calibration by accident and do not have access to a precision frequency counter you can set the calibration parameter to the Copyright 2006 Embedded Artists AB LPC2104 Color LCD Game Bo
Download Pdf Manuals
Related Search
Related Contents
GÉNÉRATEUR Untitled - Besøg masterpiece.dk CDS-9022 User Manual to the Interactive Whiteboard`s User Manual Sony HCD-C5 User's Manual MD-4221 DOCUMENTO DI INFORMAZIONE - Cinema Teatro Aurora, Verona Jigsaw (PDF 83KB) caméra jour/nuit Copyright © All rights reserved.
Failed to retrieve file