background image

LP5569 Programming

www.ti.com

30

SNVU564A – July 2017 – Revised August 2017

Submit Documentation Feedback

Copyright © 2017, Texas Instruments Incorporated

Using the BOOST-LP5569EVM Evaluation Module

3.2

Reserved Keywords

The names of registers and instructions are assembler-reserved keywords. For the LP5523 device, the
following words are reserved and may not be used as statement labels:

Register names :

ra

rb

rc

rd

Instructions:

add

branch

end

int

je

jge

jl

jne

ld

load_addr

load_end

load_next

load_prev

load_start

map_addr

map_clr

map_next

map_prev

map_sel

map_start

ramp

rst

set_pwm

sub

trig_clear

trigger

wait

Directives:

ds

dw

.segment

3.3

Commenting

Commenting starts with a semicolon (;). The assembler ignores all characters after a semicolon.

Содержание BOOST-LP5569EVM

Страница 1: ...ents 1 Setup 3 1 1 Input Output Connector Description 3 1 2 I2 C Address Selection 3 1 3 LED Type and Supply Selection 3 1 4 RGB LED Operation 4 1 5 White LED Operation 5 1 6 External LED Operation 6 1 7 EVM and MSP EXP432P401R LaunchPad Development Kit Setup 6 1 8 Minimum Procedure for Turning on the LEDs 8 2 EVM Software 9 2 1 EVM Software Installation 9 2 2 XDS110 Driver Installation 14 2 3 EVM...

Страница 2: ...s Instruments Incorporated Using the BOOST LP5569EVM Evaluation Module 5 Schematic 41 6 Bill of Materials BOM 42 Trademarks LaunchPad is a trademark of Texas Instruments Microsoft Windows are registered trademarks of Microsoft Corporation All other trademarks are the property of their respective owners ...

Страница 3: ...stor IOUT is provided to measure the VOUT supply current The jumper must be installed for normal operation J1 and J2 are the TI LaunchPad connector interface JLED is provided to connect an external LED to the LP5569EVM evaluation module JIS is provided to measure the LED current through a 1 Ω sense resistor JL1 is provided to select either a white or RGB LED on LED0 LED1 and LED2 and on the LED su...

Страница 4: ...orated Using the BOOST LP5569EVM Evaluation Module Figure 3 LP5569EVM 1 4 RGB LED Operation For proper operation of the LP5569 device ADDR_SEL IOUT JL1 JL2 JL3 JLED and VINSEL must be properly configured The recommended settings using shunts are as follows ADDR_SEL Shunt installed between pins 1 and 2 only IOUT Shunt installed ...

Страница 5: ...lue LEDs are connected to the charge pump output with the red LEDs connected to VIN Figure 4 RGB Configuration Jumper Settings 1 5 White LED Operation For proper operation of the LP5569 device ADDR_SEL IOUT JL1 JL2 JL3 JLED and VINSEL must be properly configured The recommended settings using shunts are as follows ADDR_SEL Shunt installed between pins 1 and 2 only IOUT Shunt installed JL1 Shunt in...

Страница 6: ...d between pins 1 and 2 only IOUT Shunt installed JL1 No shunt installed JL2 No shunt installed JL3 No shunt installed JLED No shunt installed external LED cathodes connected to JLED pins 11 13 15 17 19 21 23 25 and 27 with LED anodes connected to either JLED pin 1 VOUT or pin 3 VIN In this configuration the LEDs are located on a separate board connected to JLED Multiple LP5569 EVMs can be stacked ...

Страница 7: ...gust 2017 Submit Documentation Feedback Copyright 2017 Texas Instruments Incorporated Using the BOOST LP5569EVM Evaluation Module Figure 6 MSP432 Jumper Settings Connect the MSP432 LaunchPad development kit and EVM BOOSTXL LP5569 as shown in Figure 7 ...

Страница 8: ...EXP432P401R LaunchPad to the LP5569EVM board 3 If it is the first time to use the MSP432 install an XDS110 driver See the MSP432P401R SimpleLink Microcontroller LaunchPad Development Kit MSP EXP432P401R User s Guide for more detailed information regarding the XDS110 driver 4 Verify the XDS110 Class Application User UART and XDS110 Class Auxiliary Data Port on the Microsoft Windows Device Manager 5...

Страница 9: ... and click the Update button 2 EVM Software EVM software is available for download from the Product Folder The LP5569EVM is connected via USB to the computer and controlled with special EVM software Windows 7 and 10 compatible A SimpleLink MSP432P401R LaunchPad Development Kit is used with the EVM to provide I2 C communication and external PWM EN and INT pin control with the LP5569 device via USB ...

Страница 10: ...August 2017 Submit Documentation Feedback Copyright 2017 Texas Instruments Incorporated Using the BOOST LP5569EVM Evaluation Module Figure 9 Setting Up the LP5569 EVM Check to accept the agreement and click the Next button to proceed with the installation ...

Страница 11: ...Feedback Copyright 2017 Texas Instruments Incorporated Using the BOOST LP5569EVM Evaluation Module Figure 10 License Agreement Click Next button By default the program is installed in the C Program Files x86 Texas Instruments LP5569 folder and Texas Instruments LP5569EVM in the start menu ...

Страница 12: ...y 2017 Revised August 2017 Submit Documentation Feedback Copyright 2017 Texas Instruments Incorporated Using the BOOST LP5569EVM Evaluation Module Figure 11 Installation Directory Dialog Click the Next button to proceed with the installation ...

Страница 13: ...t 2017 Submit Documentation Feedback Copyright 2017 Texas Instruments Incorporated Using the BOOST LP5569EVM Evaluation Module Figure 12 Installation Progress Check to create a desktop icon for the program and check to launch the EVM software after installation ...

Страница 14: ...13 LP5569 Setup Wizard 2 2 XDS110 Driver Installation The EVM software uses XDS110 a back channel UART over USB connection so it should be installed properly Connect the PC and MSP EXP432P401R LaunchPad development kit using a USB cable and open the Device Manager of Windows Control Panel Device Manager Verify that XDS110 Class Application User UART and XDS110 Class Auxiliary Data Port appear ...

Страница 15: ...er If they are shown as USB Serial Device COMx the driver must be updated Figure 15 Driver Update The XDS100 driver can be downloaded from XDS Emulation Software Package If the EVM software is already installed in your computer the driver software can be saved in the folder where the EVM software is already installed The default EVM software installation folder is C Program Files x86 Texas Instrum...

Страница 16: ...ents LP5569 EVM LP5569_EVM exe if the default installation folder was not modified in the EVM software installation step or click the desktop icon LP5569_EVM Figure 17 Desktop Icon 2 4 Update Firmware for MSP EXP432P401R LaunchPad Development Kit The MSP EXP432P401R LaunchPad development kit can be used for many purposes Therefore if the LaunchPad development kit is a new one or was used for anoth...

Страница 17: ... Using the BOOST LP5569EVM Evaluation Module Figure 18 MSP432 Update Firmware Firmware can be updated through the top menu FILE FW Update Figure 19 Firmware Update Menu A firmware download status popup is displayed after finishing the firmware update Figure 20 Firmware Download Status The EVM software is restarted after updating the firmware ...

Страница 18: ...6 Main Menu There are three available views on the main menu Info Register and Control The components in each view are synchronized so any changes performed in one view of the menu are automatically updated in the others Figure 22 Main Menu Icons 2 7 Status Bar The status bar at the bottom of the EVM software screen provides information regarding hardware connection status I2 C communication statu...

Страница 19: ...tion view is shown when the EVM software is started or the Info icon is clicked and it provides brief information about the LP5569 device For more detailed information see LP5569 Nine Channel I2 C RGB LED Driver With Engine Control and Charge Pump Figure 24 Information View 2 9 Register View The register view is shown when the Register icon is clicked and it provides the register values field valu...

Страница 20: ...the BOOST LP5569EVM Evaluation Module Figure 25 Register View Collapsed Clicking on a bold text entry in the RegisterName column expands the register group to reveal all registers contained within the RegisterName group Any RegisterName that is expanded can be collapsed by clicking on the RegisterName a second time Figure 26 Register View Expanded ...

Страница 21: ...The Control view is shown when the Control icon is clicked and provides easy ways to control registers and pin values There are five tabs available under the Control view Manual Program Code Memory Source Edit and Log The LP5569 registers are grouped by function with the description of each function being displayed in the lower right quadrant When hovering the cursor over a check box a drop down d...

Страница 22: ...all registers after writing the chip_en bit Note that the EN pin should be high before accessing registers The en_auto_incr bit and powersave_en bit of the MISC register can be controlled also 2 10 3 Direct LED Current and PWM Control There are nine tabs to control each LED from LED0 to LED8 The external_power x exp_en x led x _ratio_en and mf_mapping x bits of the LED X _CONTROL register can be c...

Страница 23: ...ntrol of the CONFIG_PWM register 0x00 and external PWM signal generation Figure 31 PWM Register Information 2 10 6 GPIO Control The gpo and gpio_config bits of the IO_CONTROL register can be controlled The check box for gpo is enabled only when the gpio_config bits are set to 2h or 3h whereas the Read button to read the current status of pin is available only when the gpio_config bits are set to 0...

Страница 24: ...ownload From LP5569 The data on the chip can be downloaded to EVM software by clicking the Download from LP5569 button 2 11 4 Master Operating Mode The operation mode is set by selecting the desired value on the drop down box Operation modes include Disable Engine operation is disabled and the engines cannot be run Load Program to SRAM In this mode writing to program memory is allowed While one or...

Страница 25: ...art program execution from the instruction pointed to by the program counter Execute Once Execute the instruction pointed to by the current program counter value and reset ENG1_EXEC to 00 for example enter Hold mode The difference between Step and Execute Once is that Execute Once does not increment the program counter 2 12 Control View Code Memory Tab The Code Memory tab on the control view provi...

Страница 26: ... file can be loaded by clicking the Load button browsing to the folder selecting the file name and clicking Open The default target folder is C Users User Name Documents Texas Instruments lp5569 2 13 3 Save As Source File An edited source file can be saved by clicking the Save button The Save As button saves the file under a new name 2 13 4 Compile Source File An edited or loaded source file can b...

Страница 27: ... selected line 2 13 9 Line Replace The selected line is replaced by the Seg Label Instruction Parameters and Comment data 2 14 Control View Log Tab The Log tab on the control view provides the history regarding I2 C read write file access and so forth Figure 37 Log Tab 2 15 Console A predefined macro file can be executed using the Console window see Figure 38 The Console window can be opened by se...

Страница 28: ...l registers from chip i2c_addr hex_addr Set slave address i2c_addr 0x32 use 0x32 slave address en_pin high low Enable pin control to low or high en_pin high set en pin to high en_pin low set en pin to low ext_clk on off External clock control to on or off ext_clk on set ext_clk on ext_clk off set ext_clk off wait time_ms Wait time in ms wait 1000 wait 1s repeat number_of_loop Loop for repeated mac...

Страница 29: ... Programming Flow Chart Figure 40 shows the typical programming flow of the LP5569 device The program is first typed in with the Source Edit tab of the EVM software or with the PSPad or equivalent text editor See AN 2227 LP5523 Evaluation Kit regarding PSPad usage Then the program is compiled into hex and binary files Finally the hex file is loaded into the LP5569 memory and tested Figure 40 Progr...

Страница 30: ...r reserved keywords For the LP5523 device the following words are reserved and may not be used as statement labels Register names ra rb rc rd Instructions add branch end int je jge jl jne ld load_addr load_end load_next load_prev load_start map_addr map_clr map_next map_prev map_sel map_start ramp rst set_pwm sub trig_clear trigger wait Directives ds dw segment 3 3 Commenting Commenting starts wit...

Страница 31: ...1111111b dw FFABh dw 3 3 5 Labels A label is a symbolic address Labels are used to mark program line s like in a branch instruction or when labeling rows in amapping table Labels must have the colon suffix Table 4 LED Driver Instructions INSTRUCTION SYNTAX FUNCTION EXAMPLE 16 BIT ASSEMBLED BIT SEQUENCE ASSEMBLED CODE HEX ramp time PWM Time is a positive constant 0 000484 PWM PWM is a positive or n...

Страница 32: ...f the mapping data table The mapping data table end address is restricted to the lower half of memory load_end row9 The last row can be found at the address marked with row9 1001 1100 1000 1000 9C88 map_sel output Output is a constant 0 to 9 10 through 127 no drivers selected Connects one and only one LED output to an engine map_sel 1 D1 output is connected to the engine 1001 1101 0000 0001 9D01 m...

Страница 33: ...gger trigger s 1 Send a trigger to engine 1 1110 0000 0000 0010 E002 trig_clear Clear pending triggers trig_clear 1110 0000 0000 0000 E000 jne var1 var2 address var1 is a variable ra rb rc rd var2 is a variable ra rb rc rd address is a label which specifies the offset Jump if not equal It jumps forward to the address relative to the present location jne ra rb flash jump to flash if A B 1000 1000 0...

Страница 34: ...ue of var3 to the value of var2 and store the result in var1 add ra rc rd A C D 1001 0011 0000 1010 930B sub var value var is a variable ra rb rc value is a constant 0 to 255 or 0 to FFh Subtract the 8 bit value from the variable value sub ra 30 A A 30 1001 0010 0001 1110 921E sub var1 var2 var3 var1 is a variable ra rb rc var2 is a variable ra rb rc rd var3 is a variable ra rb rc rd Subtract the ...

Страница 35: ... Feedback Copyright 2017 Texas Instruments Incorporated Using the BOOST LP5569EVM Evaluation Module Table 8 Example src file continued loop2 ramp 2 255 ramp 2 255 ramp 2 255 branch 0 loop2 rst segment program3 trigger w 1 map_addr ENG3 loop3 ramp 2 255 ramp 2 255 ramp 2 255 branch 0 loop3 rst ...

Страница 36: ...ile contains the source code along with the compiled machine code and is helpful for debugging and seeing how source code is translated into machine code The first column is the row number the second column indicates the SRAM memory address the third column shows the machine code data and the fourth column includes the source code Table 9 Example lst File 001 This is a demonstration to display a s...

Страница 37: ...p1 016 08 20FF ramp 2 255 017 09 21FF ramp 2 255 018 0A 21FF ramp 2 255 019 0B A004 branch 0 loop1 020 0C 0000 rst 021 022 program2 023 0D E080 trigger w 1 024 0E 9F81 map_addr ENG2 025 loop2 026 0F 21FF ramp 2 255 027 10 20FF ramp 2 255 028 11 21FF ramp 2 255 029 12 A002 branch 0 loop2 030 13 0000 rst 031 032 segment program3 033 14 E080 trigger w 1 034 15 9F82 map_addr ENG3 035 loop3 0326 16 21F...

Страница 38: ...sed August 2017 Submit Documentation Feedback Copyright 2017 Texas Instruments Incorporated Using the BOOST LP5569EVM Evaluation Module Table 9 Example lst File continued program3 14 Free memory 228 Errors 0 4 Board Layout Figure 42 Top Assembly Layer ...

Страница 39: ...t 39 SNVU564A July 2017 Revised August 2017 Submit Documentation Feedback Copyright 2017 Texas Instruments Incorporated Using the BOOST LP5569EVM Evaluation Module Figure 43 Top Layer Routing Figure 44 Middle Layer 1 Routing ...

Страница 40: ...NVU564A July 2017 Revised August 2017 Submit Documentation Feedback Copyright 2017 Texas Instruments Incorporated Using the BOOST LP5569EVM Evaluation Module Figure 45 Middle Layer 2 Routing Figure 46 Bottom Layer Routing Mirrored ...

Страница 41: ...Schematic 41 SNVU564A July 2017 Revised August 2017 Submit Documentation Feedback Copyright 2017 Texas Instruments Incorporated Using the BOOST LP5569EVM Evaluation Module 5 Schematic Figure 47 LP5569EVM Schematic ...

Страница 42: ...00 mil 2 1 gold TH 2 1 header TSW 102 07 G S Samtec J10 1 Header 10 2 2 54 mm tin TH Header 10 2 2 54 mm tin TH TSW 110 07 T D Samtec J11 J12 J13 3 Header 100 mil 3 2 gold TH 3 2 header TSW 103 07 G D Samtec J14 1 Header 100 mil 14 2 gold R A TH 14 2 R A header TSW 114 08 G D RA Samtec R1 R2 R3 R4 R5 R6 R7 R8 R9 9 1 00 Resistor 1 00 Ω 1 0 1 W 0603 0603 CRCW06031R00FKEA Vishay Dale R10 R11 R12 R13 ...

Страница 43: ...y set forth above or credit User s account for such EVM TI s liability under this warranty shall be limited to EVMs that are returned during the warranty period to the address designated by TI and that are determined by TI not to conform to such warranty If TI elects to repair or replace such EVM TI shall have a reasonable time to repair such EVM or provide replacements Repaired EVMs shall be warr...

Страница 44: ...the user guide with the maximum permissible gain and required antenna impedance for each antenna type indicated Antenna types not included in this list having a gain greater than the maximum gain indicated for that type are strictly prohibited for use with this device Concernant les EVMs avec antennes détachables Conformément à la réglementation d Industrie Canada le présent émetteur radio peut fo...

Страница 45: ...ed loads Any loads applied outside of the specified output range may also result in unintended and or inaccurate operation and or possible permanent damage to the EVM and or interface electronics Please consult the EVM user guide prior to connecting any load to the EVM output If there is uncertainty as to the load specification please contact a TI field representative During normal operation even ...

Страница 46: ...COST OF REMOVAL OR REINSTALLATION ANCILLARY COSTS TO THE PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES RETESTING OUTSIDE COMPUTER TIME LABOR COSTS LOSS OF GOODWILL LOSS OF PROFITS LOSS OF SAVINGS LOSS OF USE LOSS OF DATA OR BUSINESS INTERRUPTION NO CLAIM SUIT OR ACTION SHALL BE BROUGHT AGAINST TI MORE THAN TWELVE 12 MONTHS AFTER THE EVENT THAT GAVE RISE TO THE CAUSE OF ACTION HAS OCCURRED 8 2 Specif...

Страница 47: ... TI Resource NO OTHER LICENSE EXPRESS OR IMPLIED BY ESTOPPEL OR OTHERWISE TO ANY OTHER TI INTELLECTUAL PROPERTY RIGHT AND NO LICENSE TO ANY TECHNOLOGY OR INTELLECTUAL PROPERTY RIGHT OF TI OR ANY THIRD PARTY IS GRANTED HEREIN including but not limited to any patent right copyright mask work right or other intellectual property right relating to any combination machine or process in which TI product...

Отзывы: