MSP Gas Metering Library

- Main Page
- Introduction
- Usage
- Modules
- Data Structures
- Disclaimer

Usage

MSP 430 Library provides the means to configure the internal ADC for ultrasonic captures and helps users to integrate it with the application software for development of Gas Meter Ultrasonic Flow Meter applications.

The library also takes advantage of LEA module in MSP43FR5994 to compute Time of Flight (ToF) measurements.

## SW architecture and Library Usage Model

MSP430 Gas Library consist of two parts, precompiled code and library configuration files. Gas Metering Library: (Precompiled code)

- Contains: – Code to perform configuration/firing/capture of ultrasonic signal using interleaving technique
- Code to run Absolute ToF, Delta ToF and Volume calculation Gas Metering Library configuration files – All library configuration parameters are defined in these two files

Gas_Metering_Lib_concept

## msp-expfr5994_gas_afe_bp example project

It is assumed that the example project will be used in combination with USS_GUI version 1_00_02_04.

Failure to use USS_GUI will result in erroneous transducer excitation frequency generation and invalid Time of Flight computation.

### Using example project in CCS

Open CCS and follow these steps:

1. Go to File->Import...
2. Expand Code Composer Studio
3. Select CCS Project and click "Next"
4. Make sure "Select search directory" is selected and click "Browse"
5. Go to the following directory <GAS_METERING_INSTALL_PATH>/examples/ExampleProjects/msp-expfr5994_gas_afe_bp/CCS and click "OK"
6. In the "Discovered project window", confirm msp-expfr5994_gas_afe_bp_fire_capture_processing project is selected and click "Finish"

### Using example project in IAR

Open IAR and follow these steps:

1. Go to File->Open->Workspace...
2. Go to the following directory <GAS_METERING_INSTALL_PATH>/examples/ExampleProjects/msp-expfr5994_gas_afe_bp/IAR
3. Select "Gas\_Metering\_examples\_worspace.eww"