| The Datasheet Archive - 100 Million Datasheets from 7500 Manufacturers. |
SWIM: NXP's basic graphics library products Rev. 2009 Application
Top Searches for this datasheetAN10815 SWIM: NXP's basic graphics library products Rev. 2009 Application note Document information Info Keywords Content SWIM, Graphics Library LPC24xx LPC32X0, LCD, TFT, STN, IRD, Phytec, Embedded Artists, Keil MDK, EWARM, Rowley Crossworks. This document describes example projects created demonstrate SWIM Graphics library. Toolchains used Keil MDK, EWARM Rowley Crossworks. development platforms were from Embedded Artists, NXP, Phytec. Abstract Semiconductors AN10815 SWIM: NXP's basic graphics library products Revision history Date 20090501 Description Initial revision Contact information additional information, please visit: http://www.nxp.com sales office addresses, please send email salesaddresses@nxp.com AN10815_1 B.V. 2009. rights reserved. Application note Rev. 2009 Semiconductors AN10815 SWIM: NXP's basic graphics library products Introduction Simple Window Interface Manager (SWIM) basic graphics library developed products. also used with controllers that have dedicated interface. SWIM graphics library allows developers quickly easily implement system with basic graphics support. Project examples EWARM, KEIL MDK, Rowley Crossworks toolchains provided part package. These projects directed following target platforms: LPC3250 from Phytec: LPC2478 from Platform from NXP: example projects demonstrate library will help users familiar with library calls quickly efficiently. SWIM features following section describes main features functionality SWIM library. addition, library code well commented associated document software calls SWIM v1.0.pdf also available. Some main SWIM functions briefly summarized following subsections. Graphic primitives swim_put_pixel places pixel specified color specified location swim_put_line draws colored line positions swim_put_diamond draws diamond shape specified color position swim_put_box specified location. color edges fill color center swim_set_pen_color sets color swim_clear_screen fills draw area display with selected color Image support swim_put_image puts image into window swim_put_scale_image puts scales image into window swim_put_invert_image puts image into window inverted Font support Helvetica 10-point proportional font 8x16 proportional font proportional font Fixed proportional font Windows FreeSystem 14x16 Font AN10815_1 B.V. 2009. rights reserved. Application note Rev. 2009 Semiconductors AN10815 SWIM: NXP's basic graphics library products platform Industrial Reference Design (IRD) v2.0 platform targeted RTOS based embedded systems. Designed around flexible Core Base printed circuit board (PCB) concept, features many system functions wired communications protocols found today's embedded applications. examples provided with this SWIM library developed with LPC2478 core board module. platform Description board setup platform should come preassembled with LPC2478 core board installed Toshiba module attached. not, refer User's Manual assemble them properly. There jumpers configure that affect example code this platform. 2478 board either external SDRAM using Mbit, Mbit, Mbit SDRAM device respectively: MT48LC2M32B2 Mbit SDRAM, 32-bit databus) from Micron (default) MT48LC4M32B2 (128 Mbit SDRAM, 32-bit databus) from Micron (option) MT48LC8M32B2 (256 Mbit SDRAM, 32-bit databus) from Micron (option) supplied example setup Mbit Micron SDRAM configuration. other versions core board will necessary modify SDRAM initialization code "ex_sdram.c" file. This SDRAM memory will used frame buffer memory this example. SDRAM memory resides address: 0xA000 0000 0xA07F FFFFF using DYNCS0 2Mx32) AN10815_1 B.V. 2009. rights reserved. Application note Rev. 2009 Semiconductors AN10815 SWIM: NXP's basic graphics library products Using 240x320 16bpp RGB1:5:5:5 mode, frame buffer uses SDRAM starting address 0xA0000000. parameters Toshiba panel configured lcd_params.c; this panel configured operation 1:5:5:5 mode. Rowley project description 3.2.1 Description Draws color bars text using SWIM library with RGB1:5:5:5 mode. 3.2.2 Required hardware 2478 Evaluation board w/Toshiba LTA057A347F 5.7" 320x240 module. 3.2.3 Required software Rowley CrossStudio v1.5 newer. Rowley CrossConnect other supported debugger. 3.2.4 Usage Start Rowley CrossStudio open example solution file. Select File->Open Solution-> Open following solution: LPC2478_SWIM_Example.hzp Build solution. Build->Build Solution Attach your CrossConnect debugger board then connect Targets->Connect CrossConnect Download program into flash. Debug->Start Debugging (F5) program! Debug->Go (F5) EWARM project description 3.3.1 Description Draws color bars text using SWIM library with RGB1:5:5:5 mode. 3.3.2 Required hardware 2478 Evaluation board w/Toshiba LTA057A347F 5.7" 320x240 module 3.3.3 Required software Embedded Workbench (EWARM) v5.x newer 3.3.4 Usage Start Embedded Workbench open example workspace space. File->Open->Workspace. AN10815_1 B.V. 2009. rights reserved. Application note Rev. 2009 Semiconductors AN10815 SWIM: NXP's basic graphics library products Open following workspace: 2478_swim_example.eww Build project. Project->Rebuild Attach your JLink JTAG unit EA-2478 board Download program into flash. Project->Download Debug (Ctrl+D) program! Debug->Go (F5) Keil project description 3.4.1 Description Draws color bars text using SWIM library with RGB1:5:5:5 mode. 3.4.2 Required hardware 2478 Evaluation board w/Toshiba LTA057A347F 5.7" 320x240 module. 3.4.3 Required software Keil uVision v3.x newer. Code should compile evaluation version. 3.4.4 Usage Start Keil uVision3 open example project file. Project->Open Project. Open following project: ea_lcd.Uv2 Build project. Project->Build Target Attach your ULink2 JTAG unit board Download program into flash. Debug->Start/Stop Debug Session (Ctrl+F5) program! Debug->Run (F5) LPC2478 Board Embedded Artists' LPC2478 Board (mounted QVGA Base Board with touch panel) lets up-and-running quickly with NXP's ARM7TDMI LPC24xx microcontroller series. board SODIMM format only 66x48 processor signals available 200-pin connector easy expansion. board used applications, well educational purposes, experiments, prototype projects. AN10815_1 B.V. 2009. rights reserved. Application note Rev. 2009 Semiconductors AN10815 SWIM: NXP's basic graphics library products LPC2478 Platform Description LPC2478 board setup EA-2478 board should come preassembled with LPC2478 core board installed Truly module attached. not, refer EA-2478 User's Manual assemble them properly. jumpers left default position when shipped from factory. jumpers this board labeled with standard "J1" labels only descriptive labels. ones that matter example projects are: Int/Ext display internal display Enable installed data Backlight shutdown removed Enable JTAG installed EA-2478 board either external SDRAM using SDRAM device respectively: K4S561632H-UC75 (256 Mbit SDRAM, 16-bit databus) from Samsung (LPC2478-16 Board) K4M563233G-HN75 (256 Mbit Mobile SDRAM, 32-bit databus) from Samsung (v1.0 LPC2478-32 Board) MT48LC8M32B2B5-7 (256 Mbit SDRAM, 32-bit databus) from Micron (v1.1a LPC2478-32 Board) This example setup Micron SDRAM configuration, v1.1a LPC247832 core board. other versions core board necessary modify SDRAM initialization code "ex_sdram.c" file. SDRAM memory will used frame buffer memory this example. SDRAM memory resides address: AN10815_1 B.V. 2009. rights reserved. Application note Rev. 2009 Semiconductors AN10815 SWIM: NXP's basic graphics library products 0xA0000000 0xA1FFFFFF using DYNCS0 8Mx32) 240x320 16bpp RGB1:5:5:5 mode, frame buffer uses starting 0xA0000000 within SDRAM. Truly module EA-2478 board contains complete controller module with frame buffer well hardware touchscreen controller. example presented disables controller frame buffer Truly module places module into dumb RGB1:5:5:5 mode. interface module used program module into this mode. parameters Truly panel configured lcd_params.c. Rowley project description 4.2.1 Description Draws color bars using SWIM library with RGB1:5:5:5 mode. 4.2.2 Required hardware EA-2478 Evaluation board w/Truly module RGB1:5:5:5 mode Rowley CrossConnect other supported debugger 4.2.3 Required software Rowley Crossworks v1.5 newer 4.2.4 Usage Start Rowley CrossStudio open example solution file. Select File->Open Solution Open following solution: EAC2478_SWIM_Example.hzp Build solution. Build->Build Solution Attach your CrossConnect debugger EA-2478 board then connect Targets->Connect CrossConnect Download program into flash. Debug->Start Debugging (F5) program! Debug->Go (F5) EWARM project description 4.3.1 Description Draws color bars using SWIM library with RGB1:5:5:5 mode. 4.3.2 Required hardware EA-2478 Evaluation board w/Truly module 4.3.3 Required software Embedded Workbench (EWARM) v5.x newer AN10815_1 B.V. 2009. rights reserved. Application note Rev. 2009 Semiconductors AN10815 SWIM: NXP's basic graphics library products 4.3.4 Usage Start Embedded Workbench open example workspace space. File->Open->Workspace. Open following workspace: ea2478_swim_example.eww Build project Project->Rebuild Attach JLink JTAG unit EA-2478 board Download program into flash Project->Download Debug (Ctrl+D) program! Debug->Go (F5) Keil project description 4.4.1 Description Draws color bars text using SWIM library with RGB1:5:5:5 mode. 4.4.2 Required hardware EA-2478 Evaluation board w/Truly module. 4.4.3 Required software Keil uVision v3.x newer. Tested with Evaluation version MDK. 4.4.4 Usage Start Keil uVision3 open example project file. Project->Open Project. Open following project: ea_lcd.Uv2 Build project. Project->Build Target Attach ULink2 JTAG unit EA-2478 board Download program into flash. Debug->Start/Stop Debug Session (Ctrl+F5) program! Debug->Run (F5) LPC3250 Phytec LPC3250 Phytec system made from three boards: phyCOREARM9/LPC3250 System Module (PCM-040), phyCORE-ARM9/LPC3250 Carrier Board (PCM-967), optional add-on Hitachi 3.5" QVGA TFT-LCD with integrated touch adapter board (KLCD-011). complete system shown AN10815_1 B.V. 2009. rights reserved. Application note Rev. 2009 Semiconductors AN10815 SWIM: NXP's basic graphics library products Phytec LPC3250 Platform phyCORE-LPC3250 module populated with LPC3250. State-of-the-art power management, Vector Floating Point Unit (VFP), rich peripherals such OTG, Ethernet, integrated controller make this device ideal candidate embedded applications requiring high performance power consumption. onboard supports major operating systems, including Linux Windows Embedded Other chip-level features include UARTs, SPI, I2C, real-time clock with separate power domain, NAND Flash memory controllers. These features make devices particularly suitable automotive industrial control applications well medical systems. Description Phytec board setup LPC3250 Phytec shipped with preinstalled bootloader called stage loader (S1L). assumed that this present board. first initializes board with code from phy3250_startup_entry.s phy3250_startup.c files before starting monitor program. Without this initialization colorbar example will run. sure configure your system defines phy3250_board.h match your hardware revisions. Failure properly these defines correct value prevent code from working correctly. possible define values below: PHY3250_CARRIERBOARD_1305_X PHY3250_MODULEBOARD_1304_X PHY3250_LCD_1307_X modules have board number 1307.x, where change between module detailed below: module revision differences: initial board Active HIGH backlight signal, different wiring Because differences connector wiring `.0' '.1' modules, `.0' modules should only used with `.0' carrier boards, while `.1' modules should only used with '.2' greater carrier boards. AN10815_1 B.V. 2009. rights reserved. Application note Rev. 2009 Semiconductors AN10815 SWIM: NXP's basic graphics library products Carrier boards have revision number 1305.x, where changes between boards module shown below: Carrier board revision differences: .0/.1 .2/.3 .2/.3 .2/.3 Initial board peripheral VBUS routed USB_VBUS signal GPI4 used VBUS detection peripheral USB_ADR/SW used control USB_ host power Module boards have revision number 1304.x, where changes between module boards module shown below: Module board revision differences: Initial board ISP1301 address changed from 0x2C 0x2D correct jumper settings please refer PHYTEC phyCORE-LPC3250 System Module Carrier Board Hardware Manual. phyCORE-LPC3250 board comes preconfigured with SDRAM configured 32-bit access using 16-bit wide chips U11. LPC3250 capable addressing single bank located memory address 0x8000 0000 extending 0x9FFF FFFF /DYCS0 signal. Hitachi TX09D71VM1CCA. 240x320 16bpp RGB565 mode frame buffer uses 150kB starting 0x8000 0000 within SDRAM. parameters Hitachi panel configured lpc_lcd_params.c Keil project description 5.2.1 Description Draws color bars text using SWIM library with RGB1:5:6:5 mode. 5.2.2 Required hardware LPC3250 Phytec board with LCD. 5.2.3 Required software Keil uVision v3.x newer. Tested with Evaluation version MDK. 5.2.4 Usage code setup execute from IRAM (Debug version) LPC3250. Start Keil uVision3 open example project file Project->Open Project. Build project Project->Build Target Attach ULink2 JTAG unit Phytec board Download program Debug->Start/Stop Debug Session (Ctrl+F5) AN10815_1 B.V. 2009. rights reserved. Application note Rev. 2009 Semiconductors AN10815 SWIM: NXP's basic graphics library products program! Debug->Run (F5) instructions load code into NAND Flash (Release version) please refer documents LPC3250 Common Driver Library package which downloaded www.nxp.com/microcontrollers. Keil also provides NAND Flash bootloader which used download code NAND flash. Refer Keil documentation/examples save execute code from NAND flash. EWARM project description 5.3.1 Description Draws color bars text using SWIM library with RGB1:5:6:5 mode. 5.3.2 Required hardware LPC3250 Phytec board with LCD. 5.3.3 Required software project developed using Embedded Workbench v5.x newer. Evaluation version will also work. 5.3.4 Usage code setup execute from IRAM (Debug version) LPC3250. Start EWARM open example project file. Project->Open Project. Build project. Project->Build Target Attach JLINK JTAG unit Phytec board Download program. Debug->Start/Stop Debug Session (Ctrl+F5) program! Debug->Run (F5) instructions load code into NAND Flash (Release version) please refer documents LPC3250 Common Driver Library package which downloaded www.nxp.com/microcontrollers. also provides NAND Flash bootloader which used download code NAND flash. Refer documentation/examples save execute code from NAND flash. Rowley project description Currently Rowley Crosswork does support LPC3250 microcontroller. AN10815_1 B.V. 2009. rights reserved. Application note Rev. 2009 Semiconductors AN10815 SWIM: NXP's basic graphics library products Miscellaneous setting SWIM format will need adapted depending format supported manner which connected controller. Phytec board, uses RGB565 while systems RGB555. file "lpc_colors.h" particular format shown below: Phytec LPC3250 Board: #define COLORS_DEF 16-bit color mode LPC2478 boards: #define COLORS_DEF 15-bit color mode SWIM library will also used manipulate display Bitmaps. Demo output snapshot shows resulting panel look feel when code different platforms. image this case taken from LPC2478 Board. Phytec LPC3250 platform AN10815_1 B.V. 2009. rights reserved. Application note Rev. 2009 Semiconductors AN10815 SWIM: NXP's basic graphics library products Legal information Definitions Draft document draft version only. content still under internal review subject formal approval, which result modifications additions. Semiconductors does give representations warranties accuracy completeness information included herein shall have liability consequences such information. Suitability Semiconductors products designed, authorized warranted suitable medical, military, aircraft, space life support equipment, applications where failure malfunction Semiconductors product reasonably expected result personal injury, death severe property environmental damage. Semiconductors accepts liability inclusion and/or Semiconductors products such equipment applications therefore such inclusion and/or customer's risk. Applications Applications that described herein these products illustrative purposes only. Semiconductors makes representation warranty that such applications will suitable specified without further testing modification. Export control This document well item(s) described herein subject export control regulations. Export might require prior authorization from national authorities. Disclaimers General Information this document believed accurate reliable. However, Semiconductors does give representations warranties, expressed implied, accuracy completeness such information shall have liability consequences such information. Right make changes Semiconductors reserves right make changes information published this document, including without limitation specifications product descriptions, time without notice. This document supersedes replaces information supplied prior publication hereof. Trademarks Notice: referenced brands, product names, service names trademarks property their respective owners. AN10815_1 B.V. 2009. rights reserved. Application note Rev. 2009 Semiconductors AN10815 SWIM: NXP's basic graphics library products Contents 3.2.1 3.2.2 3.2.3 3.2.4 3.3.1 3.3.2 3.3.3 3.3.4 3.4.1 3.4.2 3.4.3 3.4.4 4.2.1 4.2.2 4.2.3 4.2.4 4.3.1 4.3.2 4.3.3 4.3.4 4.4.1 4.4.2 4.4.3 4.4.4 5.2.1 5.2.2 5.2.3 Introduction SWIM features.3 Graphic primitives Image support Font support platform.4 Description board setup Rowley project description Description Required hardware.5 Required software Usage.5 EWARM project description Description Required hardware.5 Required software Usage.5 Keil project description Description Required hardware.6 Required software Usage.6 LPC2478 Board.6 Description LPC2478 board setup.7 Rowley project description Description Required hardware.8 Required software Usage.8 EWARM project description Description Required hardware.8 Required software Usage.9 Keil project description Description Required hardware.9 Required software Usage.9 LPC3250 Phytec Description Phytec board setup Keil project description Description Required hardware.11 Required software 5.2.4 5.3.1 5.3.2 5.3.3 5.3.4 Usage EWARM project description.12 Description Required hardware.12 Required software Usage Rowley project description.12 Miscellaneous setting Demo output.13 Legal information Definitions.14 Disclaimers.14 Trademarks Contents Please aware that important notices concerning this document product(s) described herein, have been included section 'Legal information'. B.V. 2009. rights reserved. more information, please visit: http://www.nxp.com sales office addresses, email salesaddresses@nxp.com Date release: 2009 Document identifier: AN10815_1 Other recent searchesTFP503 - TFP503 TFP503 Datasheet SYM8953U - SYM8953U SYM8953U Datasheet MBR1020 - MBR1020 MBR1020 Datasheet MBR1080 - MBR1080 MBR1080 Datasheet LXT905 - LXT905 LXT905 Datasheet KU10R29N - KU10R29N KU10R29N Datasheet HPQ-06 - HPQ-06 HPQ-06 Datasheet GRM-122 - GRM-122 GRM-122 Datasheet ARC-231 - ARC-231 ARC-231 Datasheet RPM-012 - RPM-012 RPM-012 Datasheet AP1663 - AP1663 AP1663 Datasheet AP1663xx - AP1663xx AP1663xx Datasheet 2N6385SMD05 - 2N6385SMD05 2N6385SMD05 Datasheet
Privacy Policy | Disclaimer |