
Software
10
SLDU019B – December 2015 – Revised March 2016
Copyright © 2015–2016, Texas Instruments Incorporated
PGA450Q1EVM-S User's Guide and TIDA-00151 UART Demo Instructional
Command 5—
Burst 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 6—
Threshold 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 7—
Not 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
3
Software
To modify the source-code made available through the PGA450Q1EVM-S firmware installer, download the
Keil C51 Development Tool for all 8051 devices, which includes the uVision IDE required to open and edit
the PGA450-Q1 project file. Keil products use a license management system. Without a current license,
the product runs as an evaluation or
lite
edition which has a few limitations.
3.1
IDE Output File Configuration
Build the PGA450.uvproj to generate the custom .HEX file used to program the DEVRAM or OTP memory
of the internal 8051 core.
3.1.1
Setup for DEVRAM Output File
Use the steps that follow to setup the output file of the DEVRAM memory.
Step 1.
Change the code range to the DEVRAM memory space:
1. Right click on
Target 1
in the project window, and select
Options for Target
.
2. Go to the BL51 Locate tab, and modify the Code Range to go from 0x2000–0x3FFF.
Step 2.
Copy the following text to the Code box: