Texas Instruments LP5523 Programmable 9-Output LED Driver Evaluation Module LP5523EVM/NOPB LP5523EVM/NOPB Datenbogen

Produktcode
LP5523EVM/NOPB
Seite von 27
Application Note 2227
Anssi Raisanen
August 27, 2012
LP5523 Evaluation Kit
Getting Started with LP5523
This document describes how to get the LP5523 evaluation board up and running, how to use evaluation and programming
software, and how to get started with programming. The application note is divided into four separate sections: The first section
provides general information for getting started with the LP5523 evaluation hardware and software. Section 2 shows LP5523
programming flow. Section 3 gives a detailed description of the device’s instruction set. Finally, the fourth section gives practical
programming examples.
1. General Description
The LP5523 provides flexibility and programmability for dimming and sequencing control. Each LED can be controlled directly
and independently through the serial bus (in other words, without programming the engines), or LED drivers can be controlled
by programming the execution engines. The LP5523 has three independent program execution engines, so it is possible to
form three independently programmable LED banks. LED drivers can be grouped based on their function so that, for example,
the first bank of drivers can be assigned to the keypad illumination, the second bank to the “funlights” and the third group to
the indicator LED(s). Each bank can contain 1 to 9 LED driver outputs. Instructions for program execution engines are stored
in the internal program memory. The total amount of the program memory is 96 instructons and the user can allocate the
memory as required by the engines. The LP5523 is programmed using I
2
C-compatible serial bus. Of course, it is possible to
write programs for the LP5523 in the form of binary data, but the programming tools described in this document offer a more
convenient way to write (and read) the registers and the SRAM memory and to program the device.
WHAT IS NEEDED
To get started you will need:
A text editor
LP5523 evaluation kit hardware
LP5523 evaluation software (LP5523.exe)
LP5523 compiler (LASM.EXE)
FTDI virtual com port drivers (VCP)
A text editor is used to create source code for the assembler. Here, we use PSPAd as a text editor, but you should feel free to
use whatever editor you're most comfortable with. PSPad is a freeware editor, © 1991 - 2007 Jan Fiala. Please see the PSPad
copyright notice. PSPad text editor can be downloaded from http://www.pspad.com/
INSTALLING FTDI DRIVERS
The evaluation board has FTDI's FT232R USB to UART chip on it. FT232R allows the PC to see the evaluation board as a
virtual COM port. For this FTDI VCP drivers must be installed to the host computer. Usually Windows can install the drivers
automatically when the evaluation board is detected. If Windows fails to install the drivers, they can be downloaded from
www.ftdichip.com. Make sure that you download and install VCP drivers and not the D2XX drivers.
Once the FTDI drivers are installed and evaluation board is plugged into the USB port, Windows generates an USB serial port.
This port is given unique COM port number. Note that the evaluation program polls only the first 8 COM ports. If the evaluation
program does not find the evaluation board you may need to change the COM port number manually. In Windows go to the
Control Panel, select System, select Hardware tab, open Device Manager, select Ports and you should see the USB Serial
Port number. If the port number is above 8, you will need to change it. by right clicking the USB Serial Port, selecting Properties,
select Port Settings, click Advanced button and select COM port number between 1 to 8.
COPYING THE SOFTWARE
PSPad does not require installation it can be simply unpacked into any directory. The archive contains subdirectories and must
be unpacked with subdirectory preservation enabled. Also copy the Lysti.ini –file into the Syntax-folder of PSPad (for example
C:\Program Files\PSPad editor\Syntax). Lysti.ini –file contains customization information for the text editor and it must be saved
into the Syntax-folder.
The LP5523 assembler (LASM.exe) and the LP5523 evaluation software can be copied to the PC’s hard disk and run without
installation. You will need to copy the following files: LP5523.exe, regmap.ini, usblptio.dll, rtl60.bpl and LASM.exe. All the files
must lie in the same directory. Also the source code files which you will create (*.scr) should be saved/placed in the same
directory as the LASM.exe before calling the assembler. Please avoid filenames or directory names containing a space char-
acter, since the assembler may fail when applied to filenames containing a space character. The evaluation software runs under
Windows 2000/XP/Vista.
301870 SNVA664
Copyright © 1999-2012, Texas Instruments Incorporated