
www.ti.com
Setup and Operation
9
SLDU019B – December 2015 – Revised March 2016
Submit Documentation Feedback
Copyright © 2015–2016, Texas Instruments Incorporated
PGA450Q1EVM-S User's Guide and TIDA-00151 UART Demo Instructional
2.3
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 0—
Test 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 1—
Trigger 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 2—
Read 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 3—
Update 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 4—
Read 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