3-phase pmsm motor control development kit
with mpc5744p mcu (12 pages)
Summary of Contents for NXP Semiconductors AN10815
Page 1
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.
Page 2
AN10815 NXP Semiconductors SWIM: NXP's basic graphics library for LPC products Revision history Date Description 20110615 Added support for EA LPC1788 OEM board. 20110501 Added support for Hitex LPC1850. 20090501 Initial revision. Contact information For more information, please visit: http://www.nxp.com For sales office addresses, please send an email to: salesaddresses@nxp.com...
AN10815 NXP Semiconductors SWIM: NXP's basic graphics library for LPC products 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.
AN10815 NXP Semiconductors SWIM: NXP's basic graphics library for LPC products 3. IRD platform The Industrial Reference Design (IRD) v2.0 is a platform targeted at RTOS based embedded systems. Designed around a flexible Core and Base printed circuit board (PCB) concept, it features many of the system functions and wired communications protocols found in today's embedded applications.
AN10815 NXP Semiconductors SWIM: NXP's basic graphics library for LPC products For other versions of the core board it will be necessary to modify the SDRAM initialization code in the "ex_sdram.c" file. This SDRAM memory will be used as the LCD frame buffer memory for this example.
AN10815 NXP Semiconductors SWIM: NXP's basic graphics library for LPC products 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...
AN10815 NXP Semiconductors SWIM: NXP's basic graphics library for LPC products 3.4.4 Usage 1. Start Keil uVision3 for ARM and open the example project file. Project->Open Project... Open the following project: ea_lcd.Uv2 2. Build the project. Project->Build Target 3. Attach your ULink2 JTAG unit to the IRD 2.0 board and PC.
AN10815 NXP Semiconductors SWIM: NXP's basic graphics library for LPC products 4.1 Description of EA LPC2478 board setup The EA-2478 board should come preassembled with the LPC2478 core board installed and the Truly LCD module attached. If not, refer to the EA-2478 User’s Manual to assemble them properly.
AN10815 NXP Semiconductors SWIM: NXP's basic graphics library for LPC products 4.2.4 Usage 1. Start Rowley CrossStudio for ARM and open the example solution file. Select File->Open Solution Open the following solution: EAC2478_SWIM_Example.hzp 2. Build the solution. Build->Build Solution 3. Attach your CrossConnect debugger to the EA-2478 board and PC, then connect to Targets->Connect USB CrossConnect for ARM...
AN10815 NXP Semiconductors SWIM: NXP's basic graphics library for LPC products 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 1. Start Keil uVision3 for ARM and open the example project file.
AN10815 NXP Semiconductors SWIM: NXP's basic graphics library for LPC products 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 The LPC3250 Phytec is shipped with a preinstalled bootloader called the stage 1 loader (S1L).
AN10815 NXP Semiconductors SWIM: NXP's basic graphics library for LPC products The LCD is a Hitachi TX09D71VM1CCA. In 240x320 16bpp RGB565 mode the frame buffer uses 150kB starting at: 0x8000 0000 within the SDRAM. The parameters for the Hitachi LCD panel are configured in lpc_lcd_params.c 5.2 Keil MDK project description...
AN10815 NXP Semiconductors SWIM: NXP's basic graphics library for LPC products 5.3.4 Usage The code is setup to execute from IRAM (Debug version) of the LPC3250. 1. Start EWARM and open the example project file. Project->Open Project. 2. Build the project.
AN10815 NXP Semiconductors SWIM: NXP's basic graphics library for LPC products Fig 4. Hitex LPC1850 platform 6.1 Description of Hitex LPC1850 board and LogicPD panel setup The supplied example software is designed to run on a Hitex LPC1850 evaluation board that is connected to a LogicPD LCD panel (model number LCD-6.4-VGA-10R-A).
AN10815 NXP Semiconductors SWIM: NXP's basic graphics library for LPC products 7. EA LPC1788 Setup The Embedded Artists LPC1788 OEM Board is a small, reusable DIMM module that mounts to the EA OEM Base Board. The OEM Base Board has many I/O connectors including J26, a 50 pin connector for an external LCD.
AN10815 NXP Semiconductors SWIM: NXP's basic graphics library for LPC products 7.2.4 Keil Usage 1. Start Keil uVision4 for ARM and open the example project file. Project->Open Project... Open the following project: EA_LPC1788\swim.uvproj 2. Build the project. Project->Build Target 3. Attach a ULINK2 or ULINKPro debugger to the LPC1788 board and PC.
AN10815 NXP Semiconductors SWIM: NXP's basic graphics library for LPC products 8.2 Demo output 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.
NXP Semiconductors, its affiliates and their suppliers expressly disclaim all warranties, whether express, In no event shall NXP Semiconductors be liable for any indirect, incidental, implied or statutory, including but not limited to the implied warranties of non- punitive, special or consequential damages (including - without limitation - infringement, merchantability and fitness for a particular purpose.
Need help?
Do you have a question about the AN10815 and is the answer not in the manual?
Questions and answers