Aps012 DW1000 - Production - Tests
Aps012 DW1000 - Production - Tests
Version 1.6
© Decawave 2015 This document is confidential and contains information which is proprietary to
Decawave Limited. No reproduction is permitted without prior express written permission of the
author
APS012: Production tests for DW1000-based products
Table of Contents
LIST OF TABLES ................................................................................................................................................ 3
LIST OF FIGURES............................................................................................................................................... 3
1 OVERVIEW ............................................................................................................................................... 5
1.1 INTRODUCTION ........................................................................................................................................... 5
1.2 GENERAL TEST SCOPE.................................................................................................................................... 5
2 TEST ENVIRONMENT ................................................................................................................................6
2.1 TEST SETUP OVERVIEW .................................................................................................................................. 6
2.2 CALIBRATING THE TEST SETUP ......................................................................................................................... 8
2.2.1 Overview ......................................................................................................................................... 8
2.2.2 DW1000 reference test board (RTB) ............................................................................................... 8
2.2.3 Calibrating the transmit path losses from the DUT to the spectrum analyser ............................... 9
2.2.3.1 Components of the path loss ...................................................................................................................... 9
2.2.3.2 Measuring the path loss .............................................................................................................................. 9
2.2.3.3 Obtaining a calibrated source ................................................................................................................... 10
2.2.4 Calibrating the receive path losses from the RTB to the DUT ....................................................... 11
2.2.5 Determining the antenna delay of the test setup using the two-way ranging method ................ 14
2.2.5.1 Step 1: Free space measurements ............................................................................................................ 14
2.2.5.2 Step 2: Measurements in the test setup ................................................................................................... 15
© Decawave 2015 This document is confidential and contains information which is proprietary to
Decawave Limited. No reproduction is permitted without prior express written permission of the Page 2 of 42
author
APS012: Production tests for DW1000-based products
4 REFERENCES ........................................................................................................................................... 35
5 DOCUMENT HISTORY ............................................................................................................................. 35
6 MAJOR CHANGES ................................................................................................................................... 35
7 FURTHER INFORMATION ........................................................................................................................ 36
8 APPENDIX A: TX POWER SPECTRAL LIMITS ............................................................................................. 37
9 APPENDIX B: CONFIGURE DW1000 IN RECEIVER MODE USING API ........................................................ 38
10 APPENDIX C: CONFIGURE DW1000 IN TRANSMIT MODE USING API ................................................... 39
11 APPENDIX D: CLEARING AND READING STATISTICS REGISTER USING API ........................................... 40
11.1 CLEARING ................................................................................................................................................. 40
11.2 READING .................................................................................................................................................. 40
12 APPENDIX E: ONE-TIME-PROGRAMMABLE (OTP) MEMORY MAP ....................................................... 41
LIST OF TABLES
LIST OF FIGURES
© Decawave 2015 This document is confidential and contains information which is proprietary to
Decawave Limited. No reproduction is permitted without prior express written permission of the Page 4 of 42
author
APS012: Production tests for DW1000-based products
1 OVERVIEW
1.1 Introduction
This document is intended to be used as a guide for the production testing of DW1000-based
products. The tests suggested in this document refer only to tests associated with DW1000; you will
need to include additional tests to cover the other aspects of your product’s functionality.
The tests can be reduced or edited depending on the particular DW1000 use case.
For some tests the product also needs to be calibrated for correct operation and to ensure that FCC,
EU or other spectral mask regulations are met.
Calibration data can be programmed into non-volatile memory (OTP) on the DW1000 IC as part of
your production test or into off-chip non-volatile memory (NVM) so that firmware in the DUT can
subsequently access it and use it to configure the DW1000 during product operation.
For brevity throughout this document it is assumed that calibration data is programmed into
the DW1000 OTP.
© Decawave 2015 This document is confidential and contains information which is proprietary to
Decawave Limited. No reproduction is permitted without prior express written permission of the Page 5 of 42
author
APS012: Production tests for DW1000-based products
2 TEST ENVIRONMENT
2.1 Test setup overview
Table 1 below shows the general test conditions.
Figure 1 below shows the test set up for testing DW1000-based products. The diagram assumes that
the product contains an integral antenna i.e. there is no RF connector and therefore the product must
be tested in an over-the-air (OTA) test set up.
Typically this setup consists of an RF absorber-lined screened box in which the Device-Under-Test
(DUT) and the test antenna are installed at a known distance apart.
If the DUT does have an RF connector, a coax cable should be used to directly connect the DUT to
the RF Switch – the test setup will need to be calibrated in this configuration.
© Decawave 2015 This document is confidential and contains information which is proprietary to
Decawave Limited. No reproduction is permitted without prior express written permission of the Page 6 of 42
author
APS012: Production tests for DW1000-based products
RF TEST ENCLOSURE
RF to DUT
Power Supply
GPIB / LAN
etc.. Reference Test SPI
Board
PC Test Controller
The following is a list of suggested test equipment. Where particular manufacturers’ equipment is
suggested, equipment with similar specifications should be perfectly acceptable.
© Decawave 2015 This document is confidential and contains information which is proprietary to
Decawave Limited. No reproduction is permitted without prior express written permission of the Page 7 of 42
author
APS012: Production tests for DW1000-based products
In general, test setup calibration should be regularly carried out until such time as the test setup is
proven to be stable; thereafter the calibration interval can be extended.
Tests requiring the test setup to be calibrated fall into two categories: -
1. Those that deal with absolute power levels transmitted or received by the DUT (e.g. transmit
power level optimization / receiver sensitivity)
2. Those that deal with calibrating the antenna delay of the DUT (e.g. if your product is intended
to be used in or as a location system or range measurement device and you have decided
that antenna delay calibration is necessary to achieve the accuracy you require in your
application – see [5] for a detailed discussion on this topic).
If you intend performing this test in Then the test setup needs to be measured for:
production: - -
Losses between the DUT and the spectrum
DUT transmit spectrum optimization
analyser
Losses between the Reference Test Board (RTB)
DUT receiver sensitivity tests
and the DUT
Any test in which the DUT needs to receive a calibrated UWB signal requires the use of an RTB. This
RTB needs to capable of being connected to the test setup via coax cable.
Decawave uses its own EVB1000, correctly calibrated using a spectrum analyzer, as an RTB for in-
house testing.
© Decawave 2015 This document is confidential and contains information which is proprietary to
Decawave Limited. No reproduction is permitted without prior express written permission of the Page 8 of 42
author
APS012: Production tests for DW1000-based products
2.2.3 Calibrating the transmit path losses from the DUT to the spectrum analyser
This section describes the method used to calibrate the losses in the transmit path from the DUT to
the spectrum analyzer such that the observed measurement at the spectrum analyzer can be
corrected for the path loss to give the actual transmit signal from the DUT.
Gain / loss
in test
Antenna
Loss in
DUT free space
with between Loss in coax Spectrum
integral DUT and Loss in coax interconnect Analyser
antenna test interconnect
antenna
Loss
through
RF switch
Need to determine the total loss in this path for all frequencies of interest
The transmit power observed at the spectrum analyzer, PSA, is given by: -
Received
Known power
power
transmitted
measured
here
here
Calibrated
source with Spectrum
known output Analyser
power
Known distance
Calibrating the test setup involves inserting a DUT that has been previously calibrated in an anechoic
chamber and whose radiated output power is known.
© Decawave 2015 This document is confidential and contains information which is proprietary to
Decawave Limited. No reproduction is permitted without prior express written permission of the Page 9 of 42
author
APS012: Production tests for DW1000-based products
By observing the power measured at the spectrum analyzer and knowing the power transmitted by
the calibrated source, the path loss can be determined by subtraction.
It is important to perform this calibration for all UWB channel frequencies and values of PRF intended
to be used in your final product since the path loss will vary depending on frequency and PRF.
These path loss figures should be recorded for subsequent use in production testing.
START
Configure RF switch to
connect test antenna
to SA
Power up calibrated
source
Record difference as
path loss for this
frequency
YES
COMPLETE
It is recommended that the transmit path loss of the test setup be calibrated at regular intervals and it
must be carried out if any part of the transmit path in the test setup is replaced or modified.
© Decawave 2015 This document is confidential and contains information which is proprietary to
Decawave Limited. No reproduction is permitted without prior express written permission of the Page 10 of 42
author
APS012: Production tests for DW1000-based products
2.2.4 Calibrating the receive path losses from the RTB to the DUT
This section describes the method used to calibrate the loss in the receive path from the RTB to the
DUT such that the received signal level at the DUT can be determined for a given transmit signal level
from the RTB.
Gain / loss
in test
antenna Loss in
Loss in
DUT free space attenuator when
with between set to 0dB
integral DUT and Loss in coax
antenna test interconnect Reference
Loss in coax Loss in coax
antenna Attenuator Test
interconnect interconnect
Board
Loss
through
RF switch
Need to determine the total loss in this path for all frequencies of interest
The receive signal power observed at the DUT, PRDUT, is given by: -
Where: -
Calibration involves the physical substitution of the DUT with a calibrated measurement setup. A
spectrum analyzer is connected to an antenna of the same type as that used in the DUT (or to an
antenna whose performance has been correlated with the DUT antenna) via coax interconnect whose
loss is known at the frequencies of interest.
The RTB is configured to transmit a known signal power and the power received at the spectrum
analyzer is measured and adjusted for gain / loss in the calibrated antenna and coax interconnect to
give the actual received power.
© Decawave 2015 This document is confidential and contains information which is proprietary to
Decawave Limited. No reproduction is permitted without prior express written permission of the Page 11 of 42
author
APS012: Production tests for DW1000-based products
Power received at
Received
antenna derived
power
from measured Known power
measured
power and known transmitted
here
losses here
Calibrated
antenna
Spectrum
Analyzer
Reference
Attenuator Test
Board
Coax with known Known distance
loss at
frequencies of
interest
Unknown path loss
The difference between the signal power received at the calibrated antenna and the power
transmitted by the reference test board is the path loss.
It is important to perform this calibration for all UWB channel frequencies and values of PRF intended
to be used in your product since the path loss will vary depending on frequency and PRF.
These path loss figures should be recorded for subsequent use in production testing.
© Decawave 2015 This document is confidential and contains information which is proprietary to
Decawave Limited. No reproduction is permitted without prior express written permission of the Page 12 of 42
author
APS012: Production tests for DW1000-based products
START
Setup test
Configure RF switch to
connect RTB to test
antenna
Configure in-line
attenuator to 0 dB
Power up RTB
Record difference as
path loss for this
frequency
YES
COMPLETE
© Decawave 2015 This document is confidential and contains information which is proprietary to
Decawave Limited. No reproduction is permitted without prior express written permission of the Page 13 of 42
author
APS012: Production tests for DW1000-based products
It is recommended that the receive path loss of the test setup be calibrated at regular intervals and it
must be carried out if any part of the receive path in the test setup is replaced or modified.
2.2.5 Determining the antenna delay of the test setup using the two-way ranging
method
Two-way ranging (TWR) between two DW1000-based units determines the time of flight between the
two units by exchanging messages, noting transmit and receive times and using an algorithm to
remove turn-around times at each node. TWR can be used to derive the delay in the test setup.
• Step 1: Two-way ranging is performed between a DUT and the RTB in free space, outside
the test setup. The units are separated by a known distance and the antenna delay of the
DUT is adjusted until the reported distance is correct. The units are now correctly calibrated to
report ranging measurements
• Step 2: The DUT and RTB are then inserted into the test setup and the process repeated.
The reported distance, which will be larger than the actual separation between the test
antenna and the DUT, reflects the fact that the test setup introduces some additional delay.
This difference in the reported distance should be noted as the “calibration distance” of the
test setup.
The test setup can now be used for production testing. During production testing of DUTs the distance
reported using two-way ranging with the DUT should be adjusted by this “calibration distance”. The
antenna delay in the DUT can then be adjusted to give the correct distance measurement thereby
correctly calibrating the antenna delay in the DUT.
It is recommended that the antenna delay of the test setup be calibrated at regular intervals and it
must be carried out if any element of the path between the RTB and the DUT is replaced or modified.
Test
Antenna
DUT
with Reference Test
integral Board
antenna
PC Test PC Test
Controller Controller
The separation distances used in the free space measurements must take account of sources of error
in two-way-ranging. See [3] for a detailed treatment of ranging accuracy vs. received signal level and
range bias. The range bias correction as applied in the DUT must be accounted for in the calibration
process. In Table 5 below, the distances given are the points at which the range bias correction is
chosen to be zero in the configuration described.
Table 5 below shows the separation distance used between the two DW1000 devices for this step 1.
These distances are based on Decawave’s EVB1000 and they assume: -
© Decawave 2015 This document is confidential and contains information which is proprietary to
Decawave Limited. No reproduction is permitted without prior express written permission of the Page 14 of 42
author
APS012: Production tests for DW1000-based products
• A 1 dB loss between the RF port on the DW1000 and free space (i.e. a 1 dB RF circuitry loss
and a 0 dBi antenna gain).
• The radiated power from both nodes is at the regulatory limit of -41.3 dBm / MHz
If your design has different losses or uses an antenna with different gain then please refer to [3] for a
more detailed discussion of this topic.
Step 2 puts the DUT and RTB from step 1 into the test setup.
RF to DUT
Power Supply
GPIB / LAN
etc. Reference Test SPI
Board
PC Test Controller
Figure 9: Test setup for antenna delay measurement using two-way ranging – step 2
© Decawave 2015 This document is confidential and contains information which is proprietary to
Decawave Limited. No reproduction is permitted without prior express written permission of the Page 15 of 42
author
APS012: Production tests for DW1000-based products
Setup Step 2.
Setup step 1 / apply Configure DUT as
power “Anchor” / RTB as
“Tag”
Record reported
distance as
“Calibrated Distance”
See Two Way (CD)
Ranging
Perform TWR
Application
Note
NO All channels of
interest measured?
STEP 1 COMPLETE
Figure 10: Using two-way ranging to determine the antenna delay of the test setup
© Decawave 2015 This document is confidential and contains information which is proprietary to
Decawave Limited. No reproduction is permitted without prior express written permission of the Page 16 of 42
author
APS012: Production tests for DW1000-based products
3 PRODUCTION TESTS
3.1 Overview
The full list of production tests described in this document is shown in the table below. The selection
of which tests to run depends on the intended application of the DW1000 product. For example if you
are not using GPIO lines in your application then there is no need to test their functionality.
© Decawave 2015 This document is confidential and contains information which is proprietary to
Decawave Limited. No reproduction is permitted without prior express written permission of the Page 17 of 42
author
APS012: Production tests for DW1000-based products
Table 7: Production tests prior to checking / calibrating the transmitter and receiver
Using SPI commands to DUT set device into Sleep mode current <1 Only necessary if you
Current after WAKEUP
SLEEP mode µA then as per 1.1 are using WAKEUP
1.8 WAKEUP test should be the same as
above when WAKEUP functionality in your
Assert WAKEUP pin to bring device out of sleep Test 1.1 above
asserted product
Only necessary if you
Check that the EXTON line goes high after power are using EXTON Wait 5 ms after
1.9 EXTON test EXTON line goes high
is applied functionality in your applying power
product
© Decawave 2015 This document is confidential and contains information which is proprietary to Decawave Limited. No reproduction is permitted without
prior express written permission of the author Page 18 of 42
APS012: Production tests for DW1000-based products
It is recommended that this test be carried out on a per-DUT basis to maximize range performance
over the lifetime of each unit.
This test is not applicable if your product uses a TCXO, OCXO or is intended to be driven by an
external reference (e.g. an anchor node in an RTLS using wired clock distribution).
The crystal trim test setup is shown in Figure 11 below. The DUT is connected to the spectrum
analyzer. The spectrum analyzer allows the frequency of the CW signal from the DUT to be observed.
Note: for the purposes of performing this test you should ensure that your product software provides a
test mode that enables the DW1000 to output a CW signal on your primary operating channel.
Decawave’s software API includes a function to do this.
© Decawave 2015 This document is confidential and contains information which is proprietary to
Decawave Limited. No reproduction is permitted without prior express written permission of the Page 19 of 42
author
APS012: Production tests for DW1000-based products
RF TEST ENCLOSURE
RF to DUT
Power Supply
GPIB / LAN
etc. Reference Test SPI
Board
PC Test Controller
Parameter Setting
Channel Primary operating channel
PRF N/A
Data Rate N/A
Preamble code N/A
Preamble length N/A
Data payload N/A
3.3.1.5 Procedure
Program the resulting trim value into the on-chip one-time-programmable (OTP) memory in the
location indicated in section12 Appendix E: One-time-programmable (OTP) memory map.
The test limits for the crystal trim test are shown in the table below.
© Decawave 2015 This document is confidential and contains information which is proprietary to
Decawave Limited. No reproduction is permitted without prior express written permission of the Page 20 of 42
author
APS012: Production tests for DW1000-based products
An alternative test method is possible that does not require a spectrum analyzer. This method
configures GPIO0 on the DW1000 to output a divided version of the internal system clock. This clock
signal may be observed using a frequency counter.
To do this, power up in default mode and configure the GPIO0 to output the system clock as follows:-
You should see a 62.4 MHz clock on GPIO0. This is a divided-by-2 version of the internal system
clock.
During design verification and characterization, you should measure the nominal loss in the RF path
between the DW1000 and the antenna to determine the nominal transmit power value required
from the DW1000 to compensate for this loss.
With the DW1000 configured with this nominal transmit power value, the power radiated from the DUT
antenna will vary between DUTs due to component tolerances etc.
It is strongly recommended that this test be carried out in production on a per-DUT basis to ensure
transmit power is as close to the allowed regulatory limit as possible to maximize range performance
and compensate for any inter-unit variation.
Not doing this test on a per-DUT basis will require the nominal Tx power setting to be “backed-off”
from the regulatory limit to ensure that all units are guaranteed to meet that regulatory limit. This will
result in some loss in performance.
This may be acceptable depending on your intended application and you need to weigh up the cost of
performing this test at manufacturing time vs. the resulting loss in performance for your intended
application.
© Decawave 2015 This document is confidential and contains information which is proprietary to
Decawave Limited. No reproduction is permitted without prior express written permission of the Page 21 of 42
author
APS012: Production tests for DW1000-based products
*it may be possible to reduce the sweep time and speed up this test. As you reduce the sweep time, the measured power
changes. Provided there is good correlation between the power measured at the 1 s sweep time and the power measured at
the faster sweep time and there is always a fixed offset between the two then the test can be carried out at the faster sweep
time and can be adjusted by the fixed offset to give the actual transmit power.
Note: If you are calibrating the DUT before it is mounted in its enclosure you will need to take account
of any attenuation caused by the enclosure. This enclosure attenuation should be measured during
product design so that the transmit power of the DUT can be increased to compensate. It is
recommended that transmit power calibration be done on the final packaged product to ensure
maximum performance.
The DUT transmit spectrum test setup is shown in Figure 12 below. The DUT is connected to the
spectrum analyzer. The spectrum analyzer allows the transmit spectrum to be observed.
The path loss from the DUT to the spectrum analyzer should be calibrated as per section 2.2.3.
RF TEST ENCLOSURE
RF to DUT
Power Supply
GPIB /
Control Reference Test SPI
Board
PC Test Controller
© Decawave 2015 This document is confidential and contains information which is proprietary to
Decawave Limited. No reproduction is permitted without prior express written permission of the Page 22 of 42
author
APS012: Production tests for DW1000-based products
The DUT configuration for this test depends on the intended application of the DW1000 product.
Parameter Setting
Each channel on which DUT is
Channel
intended to operate
Each value of PRF intended to be
PRF
used
N/A (assuming back to back repeated
Data Rate
frames)
Preamble code Depends on selected channel
Preamble length Length intended for normal operation
Data payload N/A
Note: For the purposes of performing this test you should ensure that your product software provides
for a test mode that enables the DW1000 to transmit back-to-back repeated frames on each of your
intended operating channels. Decawave’s software API includes a function to do this.
3.3.2.5 Procedure
You should refer to section 8.2 in [2]. The flowchart in Figure 13 describes the procedure.
The DUT is configured with the nominal Tx power value previously determined during design
verification and characterization. The resulting DUT output power is measured and the configured Tx
power value adjusted until the desired limit is reached.
Note for applications using a data rate of 6.81 Mbps, “Smart Tx Power” should be disabled (refer to
[2]). See also section 3.3.2.7.
© Decawave 2015 This document is confidential and contains information which is proprietary to
Decawave Limited. No reproduction is permitted without prior express written permission of the Page 23 of 42
author
APS012: Production tests for DW1000-based products
START
Test setup NO
Calibrate test setup
calibrated?
YES
Measure power on SA
and correct for
previously measured
test setup path loss
YES
Program Tx power
register value into
appropriate OTP
location
All channels of NO
interest calibrated?
YES
COMPLETE
As shown in Figure 13, this calibration process needs to be carried out for each of the channels on
which you intend your product to operate.
For each channel, program the resulting transmit power value into the on-chip OTP memory in the
location(s) indicated in section 12 Appendix E: One-time-programmable (OTP) memory map.
The test limits for the transmit spectrum test are shown in the table below.
© Decawave 2015 This document is confidential and contains information which is proprietary to
Decawave Limited. No reproduction is permitted without prior express written permission of the Page 24 of 42
author
APS012: Production tests for DW1000-based products
3.3.2.7.1 Introduction
This feature allows you to use a higher Tx power in your product than the regulatory limit provided the
frame duration you are using in normal operation is less than 1 ms and a maximum of 1 frame is
transmitted per ms. The increase in allowed Tx power depends on the length of the frame relative to 1
ms.
It is important to distinguish between the automatic and manual modes of Smart Tx power operation: -
• In automatic mode, Smart Tx power applies the appropriate power boost depending on the
frame duration. There are four different power settings: -
• In manual mode, Smart Tx power applies whatever power boost has been programmed into
its registers and assumes the user has programmed the appropriate value for the frame
duration being transmitted.
When calibrating for either mode, you should first disable the Smart Tx power feature and calibrate
the transmit power as described in 3.3.2.5 above. This establishes a correct baseline for the Tx power
level.
During design verification you should calculate and verify the increase in Tx power relative to the
nominal regulatory limit for the product’s intended geographical region of operation (typically -41.3
dBm / MHz). Knowing these nominal values the DUT can then be calibrated.
The power boosts described are applied automatically based on a small set of frame parameters
rather than the actual frame duration. See the description of Smart Transmit Power Control in [2] to
check the detail of the functionality
1. Disable Smart Tx power control bit DIS_STXP in Register file: 0x04 – System Configuration by
setting to 1. Note that when using Smart Tx power mode in your application, DIS_STXP will be
set to 0.
2. Configure the DUT for the nominal (-41.3 dBm/ MHz) transmit power case. Follow the procedure
in section 3.3.2.5 and store the resulting register value. This value is the value used in Register
1E:00 bits 7-0 called BOOSTNORM.
© Decawave 2015 This document is confidential and contains information which is proprietary to
Decawave Limited. No reproduction is permitted without prior express written permission of the Page 25 of 42
author
APS012: Production tests for DW1000-based products
3. Configure the DUT for the Tx power for frame durations less than 500 µs (approximately 3 dB
boost). Follow the procedure in section 3.3.2.5 and record the resulting register value. This is the
value to be used in Register 1E:00 bits 15 – 8 called BOOST500.
4. Configure the DUT for the Tx power for frame durations less than 250 µs (approximately 6 dB
boost). Follow the procedure in section 3.3.2.5 and record the resulting register value. This is the
value to be used in Register 1E:00 bits 23 – 16 called BOOST250.
5. Configure the DUT for the Tx power for frame durations less than 125 µs (approximately 9 dB
boost). Follow the procedure in section 3.3.2.5 and record the resulting register value. This is the
value to be used in Register 1E:00 bits 31 – 24 called BOOST125.
6. The values obtained from steps 2 – 5 can then be stored in DW1000 OTP (See section 12
Appendix E: One-time-programmable (OTP) memory map).
Note: If the product uses frames of a fixed duration then depending on that duration one or more of
steps 3-5 can be omitted.
In some products it may not be desirable to let DW1000 decide the Tx power boost based on the Tx
frame duration but Smart TX power is still desired.
In this case Manual Smart TX power mode can be used. The calibration procedure is almost the
same as for the automatic mode in section 3.3.2.7.2 above.
1. Disable Smart TX Power Control bit DIS_STXP in Register file: 0x04 –System Configuration by
setting to 1. This will be the setting for normal operation using Smart TX power in manual mode.
2. Configure the DUT for the nominal (-41.3 dBm/ MHz) transmit power case. Follow the procedure
in section 3.3.2.5 and store the resulting register value. This s the value to be used in Register
1E:00 bits 15-8 called TXPOWPHR.
3. Configure the DUT for the required Tx power boost as determined during design time depending
on the Tx frame duration and regulatory limits in the geographical region of product operation.
Follow the procedure in section 3.3.2.5 and store the resulting register value. This is the value to
be used in Register 1E:00 bits 23-16 called TXPOWSD.
4. The values obtained from steps 2 – 3 can then be stored in DW1000 OTP (See section 12
Appendix E: One-time-programmable (OTP) memory map).
© Decawave 2015 This document is confidential and contains information which is proprietary to
Decawave Limited. No reproduction is permitted without prior express written permission of the Page 26 of 42
author
APS012: Production tests for DW1000-based products
Receiver sensitivity testing must be carried out at design verification and characterization to verify
that the performance of that design is acceptable.
It should then be run on a per-DUT basis in production to ensure the DUT receiver is operating
correctly.
The Receiver sensitivity test sweeps the receiver power level at the DUT to determine the lowest
power level at which the DUT correctly receives 90% and 99% of frames transmitted by the RTB.
The test setup is shown in Figure 14 below. The test setup is configured to connect the RTB to the
DUT via the programmable attenuator. The RTB operates as the transmitter. The programmable
attenuator controls the signal level presented to the DUT and is initially set to maximum attenuation.
This attenuation is systematically reduced and the frame receive rate at each attenuation step is
recorded.
© Decawave 2015 This document is confidential and contains information which is proprietary to
Decawave Limited. No reproduction is permitted without prior express written permission of the Page 27 of 42
author
APS012: Production tests for DW1000-based products
RF to DUT
Power Supply
GPIB / LAN
etc. Reference Test SPI
Board
PC Test Controller
The RTB, programmable attenuator, interconnect cables and test antenna must be calibrated as per
section 2.2.4 so the signal power level presented to the DUT is known.
The configuration for this test depends on the intended application of the DUT. Refer to Table 16.
Parameter Setting
Each channel on which the DUT is
Channel
intended to operate
Each value of PRF intended to be
PRF
used
Data Rate Each data rate intended to be used
Preamble code Depends on selected channel
Preamble length Length intended for normal operation
Data payload Length intended for normal operation
© Decawave 2015 This document is confidential and contains information which is proprietary to
Decawave Limited. No reproduction is permitted without prior express written permission of the Page 28 of 42
author
APS012: Production tests for DW1000-based products
3.4.1.5 Procedure
START
Test setup
Calibrate test setup
calibrated?
YES
NO
Result within limits? FAIL
YES
PASS
The statistics from the DW1000 IC is used to calculate the frame receive rate. See Appendix D for a
discussion of how to read the statistics from the DW1000.
© Decawave 2015 This document is confidential and contains information which is proprietary to
Decawave Limited. No reproduction is permitted without prior express written permission of the Page 29 of 42
author
APS012: Production tests for DW1000-based products
Once the statistics are read from transmitting and receiving DW1000, the frame receive rate is
𝑅𝑅𝑅𝑅𝑅𝑅𝑅𝑅𝑅𝑅𝑅𝑅𝑅𝑅𝑅𝑅𝑅𝑅𝑅𝑅𝑅𝑅𝑅𝑅𝑅𝑅𝑅𝑅
= 𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹
𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇
The Test limits for the receiver sensitivity test are shown in Table 17 below.
© Decawave 2015 This document is confidential and contains information which is proprietary to
Decawave Limited. No reproduction is permitted without prior express written permission of the Page 30 of 42
author
APS012: Production tests for DW1000-based products
At design verification and characterization the nominal value of antenna delay for your design should
be determined by testing over a sufficient sample of units.
During production testing antenna delay calibration may be optionally carried out on a per-DUT basis
to remove any inter-DUT variation and so maximize the achieved ranging accuracy.
You should refer to [5] for a discussion of antenna delay calibration in general, the accuracy that can
be achieved if you do not carry out this calibration step on a per-DUT basis and an explanation of how
to make an RTB.
Table 18: Product tests – DUT antenna delay calibration using TWR
RF to DUT
Power Supply
GPIB /
Control Reference Test SPI
Board
PC Test Controller
The test setup must be calibrated as per 2.2.5 above so that its group delay is known.
© Decawave 2015 This document is confidential and contains information which is proprietary to
Decawave Limited. No reproduction is permitted without prior express written permission of the Page 31 of 42
author
APS012: Production tests for DW1000-based products
The DUT configuration for this test depends on the intended application of the DW1000 product.
Refer to Table 19.
You should configure the DUT for your intended channel(s) of interest and configure the nominal
antenna delay for that channel determined during design time.
Parameter Setting
Each channel on which DUT is
Channel
intended to operate
Each value of PRF intended to be
PRF
used
Data Rate As intended for normal operation
Preamble code Depends on selected channel
Preamble length Length intended for normal operation
As required by the two-way ranging
Data payload
process
3.4.2.5 Procedure
Use Decawave’s DecaRanging software or your own product software to perform two-way ranging.
You should refer to [4] for a discussion on Decawave’s implementation of two-way ranging.
© Decawave 2015 This document is confidential and contains information which is proprietary to
Decawave Limited. No reproduction is permitted without prior express written permission of the Page 32 of 42
author
APS012: Production tests for DW1000-based products
START
Setup Test
Configure default
antenna delay value
Perform TWR
Modify antenna delay
value in DUT
Reported
distance = NO
“Calibrated
Distance”?
YES
All channels NO
calibrated?
YES
COMPLETE
The test limits for the two-way ranging test are shown in Table 20 below.
© Decawave 2015 This document is confidential and contains information which is proprietary to
Decawave Limited. No reproduction is permitted without prior express written permission of the Page 33 of 42
author
APS012: Production tests for DW1000-based products
The limits in Table 20 above are typical limits; depending on your intended application you may
decide that looser test limits are appropriate.
The resulting antenna delay values should be programmed into the on-chip OTP memory in the
locations indicated in section 12 Appendix E: One-time-programmable (OTP) memory map.
When using the stored antenna delay value to program the DW1000, it should be apportioned
between the Tx and Rx antenna delay registers as follows: -
© Decawave 2015 This document is confidential and contains information which is proprietary to
Decawave Limited. No reproduction is permitted without prior express written permission of the Page 34 of 42
author
APS012: Production tests for DW1000-based products
4 REFERENCES
Reference is made to the following documents in the course of this application note: -
5 DOCUMENT HISTORY
Table 22: Document History
6 MAJOR CHANGES
Revision 1.1
Revision 1.2
© Decawave 2015 This document is confidential and contains information which is proprietary to
Decawave Limited. No reproduction is permitted without prior express written permission of the Page 35 of 42
author
APS012: Production tests for DW1000-based products
Revision 1.3
Revision 1.4
Revision 1.5
Revision 1.6
7 FURTHER INFORMATION
Decawave develops semiconductors solutions, software, modules, reference designs - that enable
real-time, ultra-accurate, ultra-reliable local area micro-location services. Decawave’s technology
enables an entirely new class of easy to implement, highly secure, intelligent location functionality and
services for IoT and smart consumer products and applications.
For further information on this or any other Decawave product, please refer to our website
www.decawave.com.
© Decawave 2015 This document is confidential and contains information which is proprietary to
Decawave Limited. No reproduction is permitted without prior express written permission of the Page 36 of 42
author
APS012: Production tests for DW1000-based products
© Decawave 2015 This document is confidential and contains information which is proprietary to
Decawave Limited. No reproduction is permitted without prior express written permission of the Page 37 of 42
author
APS012: Production tests for DW1000-based products
2. Call dwt_initalise function passing relevant parameters, e.g. if reading of OTP saved values is
needed or not
dwt_setcallbacks(instance_txcallback, instance_rxcallback);
4. Set up interrupts
dwt_setinterrupt(xxxxxx)
5. Configure the DW1000 with the required parameters for particular channel / PRF etc. settings
dwt_configure()
dwt_setrxantennadelay()
7. Set any other receiver features/functions, rx auto re-enable, frame filtering, double-buffering etc.
8. Enable the receiver (with/without delay), if delay is used then need to set delay time first
dwt_setdelayedtrxtime()
dwt_rxenable(delay)
9. Wait for an interrupt event or poll the status register and process the receive event when one
occurs.
© Decawave 2015 This document is confidential and contains information which is proprietary to
Decawave Limited. No reproduction is permitted without prior express written permission of the Page 38 of 42
author
APS012: Production tests for DW1000-based products
2. Call dwt_initalise function passing relevant parameters, e.g. if reading of OTP saved values is
needed or not.
dwt_setcallbacks(instance_txcallback, instance_rxcallback);
4. Set up interrupts.
dwt_setinterrupt(xxxxxx)
5. Configure the DW1000 with the required parameters for particular channel / PRF etc. settings.
dwt_configure()
dwt_configuretxrf()
dwt_settxantennadelay()
7. Set any other transmitter features / functions, continuous frame, Smart Tx power etc., then write
Tx frame data.
8. Start the transmitter (with / without delay), if delay is used then you need to set delay time first.
dwt_setdelayedtrxtime()
dwt_starttx(DWT_START_TX_IMMEDIATE or DWT_START_TX_DELAYED);
9. Either wait for an interrupt event or poll the status register and process the transmit event when
one occurs.
© Decawave 2015 This document is confidential and contains information which is proprietary to
Decawave Limited. No reproduction is permitted without prior express written permission of the Page 39 of 42
author
APS012: Production tests for DW1000-based products
dwt_configeventcounters(1)
11.2 Reading
When using Decawave’s DW1000 driver source code then the following API function can be used to
read the DW1000 statistics register. The user should study the current version of the DW1000 Device
Driver API Guide available from Decawave and familiarize themselves with individual API functions.
dwt_readeventcounters()
© Decawave 2015 This document is confidential and contains information which is proprietary to
Decawave Limited. No reproduction is permitted without prior express written permission of the Page 40 of 42
author
APS012: Production tests for DW1000-based products
The locations assigned to storing the results of the various tests discussed in this document are
highlighted as shown. These are the locations expected by Decawave’s API software. You are not
required to use this memory map provided the device driver software you are using has been
appropriately modified and care is taken not to use any of the Decawave production test locations.
Also, depending on the intended operating channels of your product you may not have calibration
values for all fields.
Size
Programmed
Address (Used Byte [3] Byte [2] Byte [1] Byte [0]
By
Bytes)
0x000 4
64 bit EUID Customer
0x001 4
0x002 4
Alternative 64bit EUID Customer
0x003 4
0x004 4
LDO Tune DW Prod Test
0x005 4
0x006 4 {“0001,0000,0001”, "CHIP ID 5 nibbles (20 bits)"} DW Prod Test
0x007 4 {“0001” , "LOT ID – 7 nibbles (28 bits)"} DW Prod Test
0x008 2 - - Vbat @ 3.7V Vbat @ 3.3V DW Prod Test
Tmeas @ Ant
0x009 1/1 - - Tmeas@ 23oC Customer / DW Prod Test
Cal
0x00A 4 - Reserved
0x00B 4 - Reserved
0x00C 4 - Reserved
0x00D 4 - Reserved
0x00E 4 - Reserved
0x00F 5 - Reserved
0x010 4 CH1 TX Power Level PRF 16 Customer
0x011 4 CH1 TX Power Level PRF 64 Customer
0x012 4 CH2 TX Power Level PRF 16 Customer
0x013 4 CH2 TX Power Level PRF 64 Customer
0x014 4 CH3 TX Power Level PRF 16 Customer
0x015 4 CH3 TX Power Level PRF 64 Customer
0x016 4 CH4 TX Power Level PRF 16 Customer
0x017 4 CH4 TX Power Level PRF 64 Customer
0x018 4 CH5 TX Power Level PRF 16 Customer
0x019 4 CH5 TX Power Level PRF 64 Customer
© Decawave 2015 This document is confidential and contains information which is proprietary to
Decawave Limited. No reproduction is permitted without prior express written permission of the Page 41 of 42
author
APS012: Production tests for DW1000-based products
Size
Programmed
Address (Used Byte [3] Byte [2] Byte [1] Byte [0]
By
Bytes)
0x01A 4 CH7 TX Power Level PRF 16 Customer
0x01B 4 CH7 TX Power Level PRF 64 Customer
0x01C 4 Tx / Rx Antenna Delay - PRF 64 Tx / Rx Antenna Delay - PRF 16 Customer
0x01D - - - - Customer
0x01E - - OTP Revision XTAL_Trim[4:0] Customer
0x01F - - - - Customer
: : : : : : Reserved
© Decawave 2015 This document is confidential and contains information which is proprietary to
Decawave Limited. No reproduction is permitted without prior express written permission of the Page 42 of 42
author