SLAAEM0 June   2024 MSPM0C1104 , MSPM0C1104 , MSPM0L1105 , MSPM0L1105 , PGA460 , PGA460

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Introduction
  5. 2Hardware Introduction
  6. 3Software Introduction
    1. 3.1 MCU Initialization
    2. 3.2 PGA460 Initialization and Configuration
    3. 3.3 Distance Detection
  7. 4Evaluation Steps

Software Introduction

The software project is shown in Figure 3-1, developed in Code Composer Studio™ (CCS) software. It mainly consists of three parts. For other files, they are the default files for the MSPM0 project.

PGA460, MSPM0  Software Project View Figure 3-1 Software Project View

For ti_msp_dl_config part, it is generated by sysconfig (Graphic code generation tool), the MSPM0 initialization is for system initialization of MCU power, system controller, system clock, enabled peripherals and general-purpose input/output (GPIO).

For PGA460 part, it declares all the memory registers, basic variables, direct commands in PGA460 Ultrasonic Signal Processor and Transducer Driver Data Sheet. It also contains some basic function for SPI and UART protocol.

For the main part, it includes the highest system function code, after system initialization, the system continually sends operational commands to the PGA460 and transmits the measurement results back to the PC.

The PGA460 device can only be operated as a slave device and must be paired with an external microcontroller unit (MCU) which acts as the master device. The master device is responsible for the initialization, configuration, and regular polling operation of the PGA460 device. Figure 3-2 shows the high-level overview of the software flow and corresponding code for standard PGA460 operation.

PGA460, MSPM0  High-level Software
                    Flowchart Figure 3-2 High-level Software Flowchart