| |
Datasheet Home \ Datasheet Details
Download
PDF Abstract Text:
AN10815
Rev. 01 - 1 May 2009 Application note
AN10815
Rev. 01 - 1 May 2009 Application note
Document information Info Keywords Content SWIM, Graphics Library for LPC24xx and LPC32X0, LCD, TFT, STN, IRD, Phytec, Embedded Artists, Keil MDK, IAR EWARM, Rowley Crossworks. 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.
Abstract
NXP Semiconductors
AN10815
Revision history Rev 01 Date 20090501 Description Initial revision
Contact information
For additional information, please visit: http://www.nxp.com For sales office addresses, please send an email to: salesaddresses@nxp.com
Application note
Rev. 01 - 1 May 2009
NXP Semiconductors
AN10815
1. Introduction
Simple Window Interface Manager (SWIM) is a basic graphics library developed for the NXP LPC products. It can be also be used with LPC controllers that do not have a dedicated LCD interface. The SWIM graphics library allows developers to quickly and easily implement a system with basic graphics support. Project examples for IAR EWARM, KEIL MDK, and Rowley Crossworks toolchains are provided as part of the package. These projects are directed at the following target platforms: · LPC3250 from Phytec: http://www.nxp.com / redirect / phytec.com · LPC2478 from EA: http://www.nxp.com / redirect / embeddedartists.com · IRD Platform from NXP: http://www.standardics.nxp.com / support / boards / ird The example projects demonstrate how to use the library and will help users get familiar with the library calls quickly and efficiently.
2. SWIM features
The following 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
2.2 Image support
2.3 Font support
· Helvetica 10-point proportional font · 8x16 proportional font · 8x8 proportional font · Fixed 5x7 proportional font · Windows FreeSystem 14x16 Font
Application note
Rev. 01 - 1 May 2009
NXP Semiconductors
AN10815
3. IRD platform
Fig 1. IRD platform
3.1 Description of IRD board setup
Application note
Rev. 01 - 1 May 2009
NXP Semiconductors
AN10815
3.2 Rowley project description
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
3.3 IAR EWARM project description
3.3.1 Description
Draws color bars and text on the LCD using the SWIM library with LCD in RGB1:5:5:5 mode.
3.3.2 Required hardware
IRD 2.0 2478 Evaluation board w / Toshiba LTA057A347F 5.7" 320x240 LCD module
3.3.3 Required software
IAR Embedded Workbench for ARM (EWARM) v5.x or newer
3.3.4 Usage
Application note
Rev. 01 - 1 May 2009
NXP Semiconductors
AN10815
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 mode.
3.4.2 Required hardware
IRD 2.0 2478 Evaluation board w / Toshiba LTA057A347F 5.7" 320x240 LCD module.
3.4.3 Required software
Keil uVision v3.x or newer. Code should compile on evaluation version.
3.4.4 Usage
4. LPC2478 EA Board
Application note
Rev. 01 - 1 May 2009
NXP Semiconductors
AN10815
Fig 2. EA LPC2478 Platform
4.1 Description of EA LPC2478 board setup
Application note
Rev. 01 - 1 May 2009
NXP Semiconductors
AN10815
4.2 Rowley project description
4.2.1 Description
Draws color bars on the LCD using the SWIM library with LCD in RGB1:5:5:5 mode.
4.2.2 Required hardware
EA-2478 Evaluation board w / Truly LCD module in RGB1:5:5:5 mode Rowley CrossConnect for ARM or other supported debugger
4.2.3 Required software
Rowley Crossworks for ARM v1.5 or newer
4.2.4 Usage
4.3 IAR EWARM project description
4.3.1 Description
Draws color bars on the LCD 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
Application note
Rev. 01 - 1 May 2009
NXP Semiconductors
AN10815
4.3.4 Usage
4.4 Keil MDK project description
4.4.1 Description
Draws color bars and text on the LCD using the SWIM library with LCD in RGB1:5:5:5 mode.
4.4.2 Required hardware
EA-2478 Evaluation board w / Truly LCD module.
4.4.3 Required software
Keil uVision v3.x or newer. Tested with Evaluation version of MDK.
4.4.4 Usage
5. LPC3250 Phytec
The LPC3250 Phytec system is made up from three boards: the phyCOREARM9 / 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.
Application note
Rev. 01 - 1 May 2009
NXP Semiconductors
AN10815
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 rich peripherals such as USB OTG, Ethernet, and integrated LCD controller make this device the ideal candidate for embedded applications requiring high performance and low power consumption. The onboard MMU supports major operating systems, including Linux and Windows Embedded CE. Other chip-level features include 7 UARTs, SPI, I2C, a real-time clock with a separate power domain, and NAND Flash and DDR memory controllers. These features make the devices particularly suitable for automotive and industrial control applications as well as medical systems.
5.1 Description of Phytec board setup
Application note
Rev. 01 - 1 May 2009
NXP Semiconductors
AN10815
5.2 Keil MDK project description
5.2.1 Description
Draws color bars and text on the LCD using the SWIM library with LCD in RGB1:5:6:5 mode.
5.2.2 Required hardware
LPC3250 Phytec board with LCD.
5.2.3 Required software
Keil uVision v3.x or newer. Tested with Evaluation version of MDK.
5.2.4 Usage
Application note
Rev. 01 - 1 May 2009
NXP Semiconductors
AN10815
5.3 IAR EWARM project description
5.3.1 Description
Draws color bars and text on the LCD using the SWIM library with LCD in RGB1:5:6:5 mode.
5.3.2 Required hardware
LPC3250 Phytec board with LCD.
5.3.3 Required software
The project was developed using IAR Embedded Workbench ARM v5.x or newer. The IAR Evaluation version will also work.
5.3.4 Usage
5.4 Rowley project description
Currently Rowley Crosswork does not support the NXP LPC3250 microcontroller.
Application note
Rev. 01 - 1 May 2009
NXP Semiconductors
AN10815
6. Miscellaneous
6.1 RGB setting
The SWIM library will can also be used to manipulate and display Bitmaps.
6.2 Demo output
The snapshot in Fig 4 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 4. Phytec LPC3250 platform
Application note
Rev. 01 - 1 May 2009
NXP Semiconductors
AN10815
7. Legal information
7.1 Definitions
7.2 Disclaimers
General - Information in this document is believed to be accurate and reliable. However, NXP Semiconductors does not give any representations or warranties, expressed or implied, as to the accuracy or completeness of such information and shall have no liability for the consequences of use of such information. Right to make changes - NXP Semiconductors reserves the right to make changes to information published in this document, including without limitation specifications and product descriptions, at any time and without notice. This document supersedes and replaces all information supplied prior to the publication hereof.
7.3 Trademarks
Notice: All referenced brands, product names, service names and trademarks are property of their respective owners.
Application note
Rev. 01 - 1 May 2009
NXP Semiconductors
AN10815
8. Contents
|