manualshive.com logo in svg
background image

 

 

 

 

 

 

 

AN10815

SWIM: NXP's basic graphics library for LPC products 

 

 

Rev. 3 — 15 June 2011 

Application note

 

       

 

 ocument information 

Info 

Content 

Keywords 

SWIM, Graphics Library for LPC178x, LPC18xx, LPC24xx and LPC32x0, 
LCD, TFT, STN, IRD, Phytec, Embedded Artists, Keil MDK, IAR EWARM, 
Rowley Crossworks. 

Abstract 

This document describes example projects created to demonstrate the 
LPC SWIM Graphics library. Toolchains used are Keil MDK, IAR EWARM 
and Rowley Crossworks. The development platforms were from 
Embedded Artists, NXP, and Phytec. 

 

Содержание AN10815

Страница 1: ...brary for LPC178x LPC18xx LPC24xx and LPC32x0 LCD TFT STN IRD Phytec Embedded Artists Keil MDK IAR EWARM Rowley Crossworks Abstract This document describes example projects created to demonstrate the LPC SWIM Graphics library Toolchains used are Keil MDK IAR EWARM and Rowley Crossworks The development platforms were from Embedded Artists NXP and Phytec ...

Страница 2: ...011 All rights reserved Application note Rev 3 15 June 2011 2 of 20 Contact information For more information please visit http www nxp com For sales office addresses please send an email to salesaddresses nxp com Revision history Rev Date Description 3 20110615 Added support for EA LPC1788 OEM board 2 20110501 Added support for Hitex LPC1850 1 20090501 Initial revision ...

Страница 3: ...llowing section describes the main features and functionality of the SWIM library In addition the library code is well commented and an associated API document for the software calls SWIM v1 0 pdf is also available Some of the main SWIM functions are briefly summarized in the following subsections 2 1 Graphic primitives swim_put_pixel places a pixel of specified color at a specified location on th...

Страница 4: ...0 platform should come preassembled with the LPC2478 core board installed and the Toshiba LCD module attached If not refer to the IRD User s Manual to assemble them properly There are no jumpers to configure that affect the example code for this platform The IRD 2 0 2478 board has either 8 MB 16 MB or 32 MB external SDRAM using a 64 Mbit 128 Mbit or 256 Mbit x 32 SDRAM device in U6 respectively MT...

Страница 5: ...on 3 2 1 Description Draws color bars and text on the LCD using the SWIM library with LCD in RGB1 5 5 5 mode 3 2 2 Required hardware IRD 2 0 2478 Evaluation board w Toshiba LTA057A347F 5 7 320x240 LCD module 3 2 3 Required software Rowley CrossStudio for ARM v1 5 or newer Rowley CrossConnect for ARM or other supported debugger 3 2 4 Usage 1 Start Rowley CrossStudio for ARM and open the example sol...

Страница 6: ...File Open Workspace Open the following workspace 2478_swim_example eww 2 Build the project Project Rebuild All 3 Attach your JLink JTAG unit to the EA 2478 board and PC 4 Download the program into flash Project Download and Debug Ctrl D 5 Run the program Debug Go F5 3 4 Keil MDK project description 3 4 1 Description Draws color bars and text on the LCD using the SWIM library with LCD in RGB1 5 5 5...

Страница 7: ... F5 5 Run the program Debug Run F5 4 LPC2478 EA board Embedded Artists LPC2478 OEM Board mounted on the QVGA OEM Base Board with touch panel lets you get up and running quickly with NXP s ARM7TDMI LPC24xx microcontroller series The OEM board has SODIMM format and is only 66x48 mm All processor signals are available on the 200 pin connector for easy expansion The board can be used in OEM applicatio...

Страница 8: ...n SDRAM configuration v1 1a of the LPC2478 32 core board For other versions of the core board it may be necessary to modify the SDRAM initialization code in the ex_sdram c file The SDRAM memory will be used as the LCD frame buffer memory for this example The SDRAM memory resides at address 0xA0000000 0xA1FFFFFF using DYNCS0 32 MB 8Mx32 In 240x320 16bpp RGB1 5 5 5 mode the frame buffer uses 150 kB ...

Страница 9: ...CD using the SWIM library with LCD in RGB1 5 5 5 mode 4 3 2 Required hardware EA 2478 Evaluation board w Truly LCD module 4 3 3 Required software IAR Embedded Workbench for ARM EWARM v5 x or newer 4 3 4 Usage 1 Start IAR Embedded Workbench for ARM and open the example workspace space File Open Workspace Open the following workspace ea2478_swim_example eww 2 Build the project Project Rebuild All 3 ...

Страница 10: ...ards the phyCORE ARM9 LPC3250 System on Module PCM 040 the phyCORE ARM9 LPC3250 Carrier Board PCM 967 and a optional add on LCD Hitachi 3 5 QVGA TFT LCD with integrated touch on adapter board KLCD 011 The complete system is shown in Fig 3 Fig 3 Phytec LPC3250 Platform The phyCORE LPC3250 module is populated with the NXP LPC3250 State of the art power management Vector Floating Point Unit VFP and r...

Страница 11: ...0 initial board 1 Active HIGH backlight signal different wiring Because of differences in the connector wiring of 0 and 1 LCD modules the 0 LCD modules should only be used with 0 carrier boards while 1 LCD modules should only be used with 2 or greater carrier boards Carrier boards have a revision number of 1305 x where x 0 to 3 The changes between the boards module are shown below Carrier board re...

Страница 12: ... Target 3 Attach ULink2 JTAG unit to the Phytec board and PC 4 Download the program Debug Start Stop Debug Session Ctrl F5 5 Run the program Debug Run F5 For instructions on how to load the code into NAND Flash Release version please refer to the documents in the LPC3250 Common Driver Library package which can be downloaded at www nxp com microcontrollers Keil also provides a NAND Flash bootloader...

Страница 13: ...nxp com microcontrollers IAR also provides a NAND Flash bootloader which can be used to download the code in to NAND flash Refer to the IAR documentation examples on how to save and execute the code from NAND flash 5 4 Rowley project description Currently Rowley Crosswork does not support the NXP LPC3250 microcontroller 6 LPC1850 Hitex LogicPD LCD panel The LPC1850 evaluation board is USB powered ...

Страница 14: ...pped from the factory The Hitex LPC1850 board has 8 MB of external SDRAM using a 1 Mbit x 16bit x 4 bank SDRAM device This SDRAM memory will be used as the LCD frame buffer memory for this example The SDRAM memory resides at address 0x2800 0000 0x287F FFFF using DYNCS0 Using the 640x480 16bpp RGB1 5 5 5 mode the frame buffer uses 614 kB of SDRAM starting at address 0x28000000 The parameters for th...

Страница 15: ...ect file Project Open Project Open the following project LPC1850_SWIM_Example uvproj 2 Build the project Project Build Target 3 Attach ULINK2 or ULINKPro JTAG unit to the LPC1850 board and PC 4 Download the program Debug Start Stop Debug Session Ctrl F5 5 Run the program Debug Run F5 Note If the example is to be loaded into external flash memory then contents of the tools directory should be copie...

Страница 16: ...e EA OEM Base Board using the 50 pin ribbon cable On the EA OEM Base Board an LPC1788 OEM Module DIMM should be inserted red The display used in this setup is the Truly G240320LTSW a portrait mode QVGA module Although this is a smart module capable of managing its own raster refreshes in this application it is reconfigured to display 16 bit RGB data 1 5 5 5 mode directly from the LPC1788 This conf...

Страница 17: ...gger to the LPC1788 board and PC 4 Download the program into flash and run it First select the Flash Debug target in the project window Then choose Project Download and Debug Ctrl D 8 Miscellaneous 8 1 RGB setting The SWIM RGB format will need to be adapted depending on the format supported by the LCD and the manner in which the LCD is connected to the LPC controller For the Phytec board the LCD u...

Страница 18: ...utput The snapshot in Fig 5 shows the resulting LCD panel look and feel when the code is run on the different platforms The image in this case is taken from the EA LPC2478 Board Fig 5 EA LPC2478 platform AN10815 NXP B V 2011 All rights reserved Application note Rev 3 15 June 2011 18 of 20 ...

Страница 19: ...heir applications and products using NXP Semiconductors products and NXP Semiconductors accepts no liability for any assistance with applications or customer product design It is customer s sole responsibility to determine whether the NXP Semiconductors product is suitable and fit for the customer s applications and products planned as well as for the planned application and use of customer s thir...

Страница 20: ...n 8 4 2 2 Required hardware 8 4 2 3 Required software 8 4 2 4 Usage 9 4 3 IAR EWARM project description 9 4 3 1 Description 9 4 3 2 Required hardware 9 4 3 3 Required software 9 4 3 4 Usage 9 4 4 Keil MDK project description 9 4 4 1 Description 9 4 4 2 Required hardware 10 4 4 3 Required software 10 4 4 4 Usage 10 5 LPC3250 Phytec 10 5 1 Description of Phytec board setup 11 5 2 Keil MDK project de...

Отзывы: