background image

www.ti.com

Software

11

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

?pr?external1_ISR?PGA450_isrs (0X2100),

?pr?timer0_ISR?PGA450_isrs (0X2400),

?pr?timer1_ISR?PGA450_isrs (0X2800),

?pr?serial_ISR?PGA450_isrs (0X2C00),

?pr?linPID_ISR?PGA450_isrs (0X3000),

?pr?linSciRxData_ISR?PGA450_isrs (0X3400),

?pr?linSciTxData_ISR?PGA450_isrs (0X3800),

?pr?external0_ISR?PGA450_isrs (0X3900),

?pr?linSync_ISR?PGA450_isrs (0X3D00)

Step 3.

Comment out the OTP section in STARTUP.A51, and remove the comments from the
DEVRAM section.

3.1.2

Setup for OTP Output File

Use the steps that follow to setup the output file of the OTP memory.

1. Change the code range to the OTP 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 0x0000–0x1FFF.

2. Delete everything in the Code box.

3. Comment out the DEVRAM section in STARTUP.A51, and remove the comments from the OTP

section.

3.2

Interface Descriptions

The PGA450-Q1 device is compatible with three communication interface options including: SPI, LIN, and
UART. All of these communication interfaces, related circuitry, or access points are integrated or present
on the PGA450Q1EVM-S.

3.2.1

UART Interface

The TxD and RxD pins on the PGA450-Q1 device are connected to the 8051W UART. These two pins
can be used either for software debugging or for implementing application-specific protocols. For a
detailed example of how to use UART with the PGA450-Q1 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 board into the LIN compliant format. For a
detailed example of how to use LIN with the PGA450-Q1 device, refer to

LIN Demonstration using

PGA450Q1EVM Firmware Rev 2.1

(

SLDA035

).

3.2.3

Serial-Peripheral Interface

The PGA450-Q1 device can also be put into a RESET state where the microcontroller is not active. During
this state, SPI is the only digital interface that can be used. The low-side drivers can still be triggered to
begin an ultrasonic burst and the analog front-end and digital data path can still store the returned echo
signal in the FIFO RAM. However, any processing of the FIFO RAM by the internal microprocessor to
determine the location of an object does not occur. The FIFO RAM data can be read over SPI, allowing an
external microprocessor to process the data.

To provide a quick evaluation of the performance of the PGA450-Q1 device using the PGA450Q1EVM-S
and GUI without having to develop sophisticated 8051

μ

P software, the GUI provides an intuitive interface

tab, the Evaluation Tab, that collects all required information regarding the transducer drive and receive.
For the transducer drive, it includes: transducer frequency; transducer drive voltage, VREG; transformer
configuration; and number of drive pulses. For the transducer signal receive, it includes signal-processing
parameters: LNA gain setting; BPF and LPF coefficient; clock selection; FIFO mode; and FIFO
downsample size.

Содержание PGA450Q1EVM-S

Страница 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 ...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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 ...

Страница 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...

Страница 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 ...

Страница 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...

Страница 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...

Страница 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...

Страница 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 ...

Страница 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 ...

Страница 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 ...

Страница 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...

Отзывы: