SLDU019B December   2015  – March 2016 PGA450-Q1

 

  1.   PGA450Q1EVM-S User's Guide and TIDA-00151 UART Demo Instructional
    1.     Trademarks
    2. 1 Introduction
    3. 2 Setup and Operation
      1. 2.1 Input and Output Connectors
      2. 2.2 Basic Operation
        1. 2.2.1 Programming the PGA450-Q1 DEVRAM or OTP Memory
        2. 2.2.2 Programming the PGA450-Q1 EEPROM
        3. 2.2.3 Testing the UART Connection With the TI GER Board
      3. 2.3 UART Command Listing
    4. 3 Software
      1. 3.1 IDE Output File Configuration
        1. 3.1.1 Setup for DEVRAM Output File
        2. 3.1.2 Setup for OTP Output File
      2. 3.2 Interface Descriptions
        1. 3.2.1 UART Interface
        2. 3.2.2 LIN Interface
        3. 3.2.3 Serial-Peripheral Interface
    5. 4 Schematic, Bill of Materials, and Layout
      1. 4.1 Schematic
      2. 4.2 Bill of Materials
        1. 4.2.1 BOM
      3. 4.3 Board Layout and Component Placement
    6. 5 References
  2.   Revision History

UART Command Listing

The following is a list of predefined commands made available on the default DEVRAM and OTP firmware provided for the PGA450Q1EVM-S.

    Command 0Test UART communication. If communication is working correctly, the PGA450-Q1 will return a value of 0x12 0x23.

    Example hex entry: 0x00, 0x55, 0x01, 0x00
    where:

    • [0] 0x00: break field
    • [1] 0x55: synchronization field
    • [2] 0x01: 0 = command 0. 1 = sensor address set in EEPROM address 0x31
    • [3] 0x00: ignored but required checksum

    Command 1Trigger a short or long distance burst and capture with hard-coded drive and receive settings. Also reads first instance of threshold crossing for closest object detected.

    Example hex entry: 0x00, 0x55, 0x11, 0x02, 0x00
    where:

    • [0] 0x00: break field
    • [1] 0x55: synchronization field
    • [2] 0x11: 1 = command 1. 1 = sensor address set in EEPROM address 0x31
    • [3] 0x02: 00 = listen. 01 = short. 02 = long.
    • [4] 0x00: ignored but required checksum

    Command 2Read first instance of threshold crossing for closest object detected.

    Example hex entry: 0x00, 0x55, 0x21, 0x00
    where:

    • [0] 0x00: break field
    • [1] 0x55: synchronization field
    • [2] 0x21: 2 = command 2. 1 = sensor address set in EEPROM address 0x31
    • [3] 0x00: ignored but required checksum

    Command 3Update an EEPROM value.

    Example hex entry: 0x00, 0x55, 0x31, 0x00, 0xFF, 0x00
    where:

    • [0] 0x00: break field
    • [1] 0x55: synchronization field
    • [2] 0x31: 3 = command 3. 1 = sensor address set in EEPROM address 0x31
    • [3] 0x00: 00 = EEPROM address
    • [4] 0xFF: FF = EEPROM data
    • [5] 0x00: ignored but required checksum

    Command 4Read all 768 bytes of FIFO data.

    Example hex entry: 0x00, 0x55, 0x41, 0x00
    where:

    • [0] 0x00: break field
    • [1] 0x55: synchronization field
    • [2] 0x41: 4 = command 4. 1 = sensor address set in EEPROM address 0x31
    • [3] 0x00: ignored but required checksum

    Command 5Burst and capture ultrasonic profile based on EEPROM configuration of drive and receive settings.

    Example hex entry: 0x00, 0x55, 0x51, 0x02, 0x00
    where:

    • [0] 0x00: break field
    • [1] 0x55: synchronization field
    • [2] 0x51: 5 = command 5. 1 = sensor address set in EEPROM address 0x31
    • [3] 0x02: 0 = listen. 1 = short. 2 = long
    • [4] 0x00: ignored but required checksum

    Command 6Threshold values report for selected mode of operation (short or long).

    Example hex entry: 0x00, 0x55, 0x61, 0x02, 0x00
    where:

    • [0] 0x00: break field
    • [1] 0x55: synchronization field
    • [2] 0x61: 6 = command 6. 1 = sensor address set in EEPROM address 0x31
    • [3] 0x02: 1 = short. 2 = long
    • [4] 0x00: ignored but required checksum

    Command 7Not used in example firmware. Reserved for custom user defined function.

    Example hex entry: 0x00, 0x55, 0x71, 0x00
    where:

    • [0] 0x00: break field
    • [1] 0x55: synchronization field
    • [2] 0x71: 7 = command 7. 1 = sensor address set in EEPROM address 0x31
    • [3] 0x00: ignored but required checksum