background image

Software

www.ti.com

10

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

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:

Summary of Contents for PGA450Q1EVM-S

Page 1: ... this PGA450 Q1 based sensor module into a real system without the need for additional prototypes Contents 1 Introduction 2 2 Setup and Operation 2 3 Software 10 4 Schematic Bill of Materials and Layout 12 5 References 15 List of Figures 1 PGA460Q1EVM S Pinout 2 2 TI GER Board SPI and UART Connections 4 3 EEPROM Registers Programmed Correctly 6 4 Direct TI GER Control Button 7 5 GPIO Tab 7 6 User ...

Page 2: ... systems for general object detection and distance measurement through air in applications such as automotive park assist level sensing in tanks collision avoidance for autonomous robotics and unmanned aerial vehicle landing assist This small form factor EVM is intended to act as an ultrasonic module alternative to the full scale PGA450Q1EVM TI recommends that the user first begins evaluation with...

Page 3: ...cols DACO J4 1 Output Observe the echo signal as an amplified analog signal or from a DAC output which converts a digitally filtered echo signal In the Evaluation tab of the GUI the quick access buttons Amplifier Output unfiltered and Datapath Output filtered are available The signal is viewable on the DACO pin Only one mode can be selected at a time XDCR Connector J1 Input Output The transducer X...

Page 4: ... value other than 0x00 or 0xFF Step 6 Under the OTP tab click Check OTP Status button If the PGA450 Q1 device has not been previously been OTP programmed the status displays OTP Empty Step 7 Connect the 8 V supply to the VPROG_OTP pin on the sensor to program the OTP memory to program the DEVRAM memory for the first time or if the OTP status displays OTP Empty Step 8 If programming DEVRAM memory g...

Page 5: ...old values have been written correctly and retained click the READ ALL button The EEPROM table should appear as shown in Figure 3 Table 3 EEPROM Register Map Values Register Address Register Value Description 0x00 0xFF Threshold level 0 0x01 0xD7 Threshold level 1 0x02 0x95 Threshold level 2 0x03 0x84 Threshold level 3 0x04 0x62 Threshold level 4 0x05 0x62 Threshold level 5 0x06 0x52 Threshold lev...

Page 6: ...scription 0x18 0x3D BPF_A2_LSB 0x19 0xF9 BPF_A3_MSB 0x1A 0xA5 BPF_A3_LSB 0x1B 0x35 LPF_B1_MSB 0x1C 0xDD LPF_B1_LSB 0x1D 0x14 LPF_A2_MSB 0x1E 0x46 LPF_A2_LSB 0x1F 0x01 Sensor address 1 The Program EEPROM button programs the EEPROM cache into the EEPROM memory The values displayed in the GUI are transferred to the cache before being programmed 2 The Reload EEPROM button copies the EEPROM memory into...

Page 7: ...as IN HIGH see Figure 5 Figure 5 GPIO Tab Step 4 Connect the UART pins of the sensor to the UART pins of the TI GER board see Figure 3 Pin 10 TxD on the TI GER board goes to RXD on the Sensor Pin 20 RxD on the TI GER board goes to TXD on the Sensor Step 5 On the UART tab under the UART CONTROL SETTING section select SETUP 9 Step 6 In the BAUD RATE box in the lower right corner of the GUI enter 192...

Page 8: ...the frame has four data bytes of the protected identifier and three data bytes the calculation is the same The data 0x4A 0x55 0x93 0xE5 Table 4 Example of Checksum Calculation Action Hex Carry D7 D6 D5 D4 D3 D2 D1 D0 0x4A 0x4A 0 1 0 0 1 0 1 0 0x55 Add Carry 0x9F 0x9F 0 1 1 0 0 0 0 1 1 1 1 1 1 1 1 1 1 0x93 Add Carry 0x132 0x33 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 0 1 0xE5 Add Carry 0x118 0x19 1 0 0 0 0 0 ...

Page 9: ...or 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...

Page 10: ...d 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 ...

Page 11: ...1 device refer to Section 2 3 3 2 2 LIN Interface The PGA450Q1EVM GUI can communicate with the PGA450 Q1 device using LIN The UART of the TI GER USB communication board is the LIN master and the PGA450 Q1 device is the LIN slave The GUI can be used to configure the LIN frames that are transmitted to the PGA450 Q1 device An external LIN transceiver is required to translate the UART of the TI GER bo...

Page 12: ... C8 3 3k R3 0 R5 GND_Sensor GND 100µF C3 1 2 3 4 6 T1 K5 R4 DVDD VPROG AVDD VPWR VREF RBIAS LIN DACO LED_Ca GPIO1 GPIO2 RXD TXD LIM IN CIN OUTB OUTA VREG XFMR_Sec MAIN SCLK SDI SDO CS DACO GND DACO MECH H1 MA58MF14 7N Schematic Bill of Materials and Layout www ti com 12 SLDU019B December 2015 Revised March 2016 Submit Documentation Feedback Copyright 2015 2016 Texas Instruments Incorporated PGA450...

Page 13: ...0603 Diode CD0603 B0240 D2 1 Green LED Green SMD 1 6x0 8x0 8mm LTST C190GKT D3 1 Orange LED Orange SMD LED_0603 LTST C191KFKT D4 1 Red LED Red SMD LED_0603 LTST C191KRKT H1 1 Ultrasonic transducer MA58MF14 7N MuRata J1 1 Header 100 mil 2 1 Tin TH Header 2 pin 100 mil Tin PEC02SAAN J2 J3 J4 3 Header 100 mil 4 1 Tin TH Header 4 1 100 mil TH PEC04SAAN R1 R5 2 0 Ω Resistor 0 Ω 5 0 1 W 0603 0603 MCR03E...

Page 14: ...rch 2016 Submit Documentation Feedback Copyright 2015 2016 Texas Instruments Incorporated PGA450Q1EVM S User s Guide and TIDA 00151 UART Demo Instructional Figure 9 Component Placement Top Overview Figure 10 Component Placement Bottom Overview Figure 11 Layout Top Figure 12 Layout Bottom ...

Page 15: ... Feedback Copyright 2015 2016 Texas Instruments Incorporated PGA450Q1EVM S User s Guide and TIDA 00151 UART Demo Instructional 5 References For additional reference see the following documents from TI PGA450 Q1 Ultrasonic Sensor Signal Conditioner SLDS185 PGA450Q1EVM User s Guide SLDU007 ...

Page 16: ...ion History NOTE Page numbers for previous revisions may differ from page numbers in the current version Changes from A Revision March 2016 to B Revision Page Added TIDA 00151 UART Demo Instructional to the document title 1 Added the 0x00 value for Command 1 in the UART Command Listing section 9 Changed the PGA450Q1EVM S Schematic image 12 Added H1 to the Bill of Materials 13 ...

Page 17: ... TI Resource NO OTHER LICENSE EXPRESS OR IMPLIED BY ESTOPPEL OR OTHERWISE TO ANY OTHER TI INTELLECTUAL PROPERTY RIGHT AND NO LICENSE TO ANY TECHNOLOGY OR INTELLECTUAL PROPERTY RIGHT OF TI OR ANY THIRD PARTY IS GRANTED HEREIN including but not limited to any patent right copyright mask work right or other intellectual property right relating to any combination machine or process in which TI product...

Reviews: