SNVU849 may   2023 LP5891-Q1

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Introduction
  5. 2Software Setup
  6. 3Sample Code Structure
    1. 3.1 Design Parameters
    2. 3.2 Flow Diagram
    3. 3.3 System Setup
    4. 3.4 Diagnostics
    5. 3.5 Demo

Software Setup

To set up the software for the TMS320F280039C LaunchPad™, please follow these steps (demonstrated in a computer with Windows 10 OS):

  1. Download and install Code Composer Studio™.
    1. Download Code Composer Studio integrated development environment (IDE) (Version ≥ 11.1.0).
    2. Follow the installation instructions to install Code Composer Studio. During the installation process, if you choose the "Setup type" to be "Custom Installation", make sure that you select "C2000 real-time MCUs" in "Select Components", as is marked with red box in Figure 2-1.
      GUID-20220912-SS0I-LRXD-DJPW-X3SCBFB5RRGK-low.svg Figure 2-1 Installation Process of Code Composer Studio
  2. Download and install C2000Ware (Version ≥ 4.01.00.00).
    1. To verify the installation is correct, open the Code Composer Studio software. Click "Windows" from the top menu bar. Then click "Preferences" from the drop-down list. The "Preferences" window will show. From the left side bar, select "Code Composer Studio" -> "Products".
    2. Make sure that there is "C2000Ware 4.1.0.00" (or later version) and "SysConfig" (SysConfig should be installed automatically when you install C2000Ware) under the "Discovered products", as is marked in Figure 2-2. If there is no "C2000Ware 4.1.0.00" (or later version) or "SysConfig" appearing, you may need to click "Refresh" on the right side of the "Preference" window. If still unavailable, check whether the installation is correct. A standalone desktop version of SysConfig can be found at SYSCONFIG System configuration tool.
      GUID-20220909-SS0I-FPTN-QJZP-RFCD6RL8P00W-low.svg Figure 2-2 Verification of C2000Ware 4.1.0.00 (or later version) Installation
  3. Download and import sample code.
    1. The link for each EVM is different. However, the sample code in each link is the same except for the file led_driver.h which is setup for the matching EVM.
      1. LP5891Q1EVM: LP5891Q1EVM-SW-F280039C
    2. Importing the Code Composer Studio (CCS) project according to the process provided in the link: Importing a CCS Project.
  4. Load the program according to the process provided in the link: Building and Running Your Project.
  5. (optional) Download the register map generation tool. This is a handy tool if you want to further configure the registers.
    1. LP5891-Q1: LP5891 Registers Map Generation Tool