SLVUBX1 December   2020 TPS63810

 

  1.   Trademarks
  2. 1Introduction
  3. 2Quick Start
    1. 2.1 Step 1: Software Installation
    2. 2.2 Step 2: Firmware Completition and Flashing
    3. 2.3 Step 3: Hardware Setup
    4. 2.4 Step 4: GUI
  4. 3System Overview
  5. 4Hardware Overview
    1. 4.1 Buck-Boost Converter
    2. 4.2 Thermoelectric Cooler (TEC)
    3. 4.3 LaunchPad
    4. 4.4 Voltage Reference
    5. 4.5 Temperature Sensor
  6. 5Firmware Overview
  7. 6Graphical User Interface (GUI)
  8. 7Setup Details
  9. 8Bill of Materials, PCB Layout, and Schematic
    1. 8.1 Bill of Materials
    2. 8.2 PCB Layout
    3. 8.3 Schematic

Firmware Overview

The firmware for the MSP-EXP432P401R LaunchPad is implemented in Energia. While this firmware is meant to be used with the MSP-EXP432P401R only, it can be easily modified for other TI LaunchPads. For this reason the BOOSTXL-TECDRV BoosterPack has multiple connection options for the BoosterPack header. By moving the jumper resistors, the signal and control lines can be re-routed between multiple pins. This is shown in more details in the schematic in Section 8.3.

Figure 5-1 shows the firmware flow chart.

GUID-20200909-CA0I-XKND-LRNM-B81PLNRXDDTX-low.gifFigure 5-1 Firmware Flow Chart

The code starts by initializing various variables, configuring MCU and its peripherals, and configuring digital sensors. After that the main loop takes care of three main processes:

  1. A 100-ms timer takes care of the main control process. Here, the temperature is read either from the analog sensor via ADC or the digital sensor via I2C. After that, the PID controller calculates the necessary control voltage for the TPS63810. This voltage is transmitted to the TPS63810 via the same I2C interface used for the digital temperature sensor, and the TEC voltage is updated. This period depends on the thermal dynamics of the system and can be changed in the code.
  2. A 200-ms timer periodically sends the currently sensed temperature and the current output voltage of the TPS63810 to the GUI. This period can be extended in order to send less data to the GUI. When used with the BOOSTXL-TECDRV GUI, it is not recommended to send the data more than 10 times per second, as the GUI might not be able to process all the incoming data.
  3. The third process checks if there is a message received from the GUI. These messages are sent from the GUI to the Launchpad on user commands, such as initializing the TPS63810 or changing the control modes and PID parameters.