没有合适的资源?快使用搜索试试~ 我知道了~
aps022_debugging_dw1000_based_products_systems.pdf
1 下载量 118 浏览量
2024-03-01
20:30:30
上传
评论
收藏 821KB PDF 举报
温馨提示
试读
23页
aps022_debugging_dw1000_based_products_systems.pdf
资源推荐
资源详情
资源评论
© Decawave 2016 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
APPLICATION NOTE: APS022
APS022 APPLICATION NOTE
DEBUGGING DW1000 BASED
PRODUCTS AND SYSTEMS
Help with debugging DW1000
based applications
Version 1.2
This document is subject to change without
notice
APS022: Debugging DW1000 based products and systems
© Decawave 2016 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 2 of 23
TABLE OF CONTENTS
1 INTRODUCTION ........................................................................................................................................ 4
1.1 SCOPE ....................................................................................................................................................... 4
1.2 PRE-REQUISITES .......................................................................................................................................... 4
1.3 REFERENCES AND SOURCES ............................................................................................................................ 4
1.4 DOCUMENT OVERVIEW ................................................................................................................................. 4
2 POWER-UP SEQUENCE ............................................................................................................................. 5
3 DW1000 INTERFACES (SPI AND GPIOS)..................................................................................................... 7
3.1 DW1000 SPI INTERFACE .............................................................................................................................. 7
3.2 LOW AND HIGH SPI RATE .............................................................................................................................. 7
3.3 READ DEVICE ID .......................................................................................................................................... 7
3.4 SPI CONFIGURATION MODES .......................................................................................................................... 7
3.5 DW1000 GPIO5 AND GPIO6 ...................................................................................................................... 8
3.6 TX AND RX STATES ON AN OSCILLOSCOPE ......................................................................................................... 8
4 USING STATUS (SYS_STATUS) AND STATES (SYS_STATE) REGISTERS ...................................................... 10
4.1 INTRODUCTION ......................................................................................................................................... 10
4.2 THE SYSTEM STATUS (SYS_STATUS) REGISTER .............................................................................................. 10
4.3 THE SYSTEM STATES (SYS_STATE) REGISTER ................................................................................................. 11
4.4 OVERALL SYSTEM STATES ............................................................................................................................. 11
4.5 RECEIVER STATES ....................................................................................................................................... 11
4.6 TRANSMITTER STATES ................................................................................................................................. 12
5 DW1000 TRANSMISSION ........................................................................................................................ 13
5.1 INTRODUCTION ......................................................................................................................................... 13
5.2 BASIC OPERATION ...................................................................................................................................... 13
5.3 SUPPORTED TRANSMISSION TYPES ................................................................................................................. 13
5.3.1 Immediate TX ................................................................................................................................ 13
5.3.2 Delayed TX .................................................................................................................................... 13
5.4 TX EVENTS ............................................................................................................................................... 14
5.5 TRX OFF .................................................................................................................................................. 15
5.6 TWR CURRENT PROFILE .............................................................................................................................. 15
6 DW1000 RECEPTION............................................................................................................................... 17
6.1 INTRODUCTION ......................................................................................................................................... 17
6.2 BASIC OPERATION ...................................................................................................................................... 17
6.3 SUPPORTED RECEPTION TYPES ...................................................................................................................... 17
6.3.1 Immediate RX ................................................................................................................................ 17
6.3.2 Delayed RX .................................................................................................................................... 17
6.3.3 Auto RX after TX ............................................................................................................................ 17
6.4 RX EVENTS ............................................................................................................................................... 18
6.5 TRX OFF .................................................................................................................................................. 18
6.6 TWR POWER PROFILE ................................................................................................................................. 18
7 DW1000 SLEEP & DEEPSLEEP STATES ..................................................................................................... 19
7.1 INTRODUCTION ......................................................................................................................................... 19
7.2 SLEEP ..................................................................................................................................................... 19
7.3 DEEPSLEEP ............................................................................................................................................ 19
7.4 WAKEUP ................................................................................................................................................ 19
7.5 CONFIGURING WAKEUP AND DEEPSLEEP ................................................................................................... 19
8 REFERENCES ........................................................................................................................................... 22
9 DOCUMENT HISTORY ............................................................................................................................. 22
10 MAJOR CHANGES ............................................................................................................................... 22
APS022: Debugging DW1000 based products and systems
© Decawave 2016 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 3 of 23
11 ABOUT DECAWAVE ............................................................................................................................ 23
LIST OF TABLES
TABLE 1: MAIN STATUS REGISTER EVENTS ...................................................................................................................... 10
TABLE 2: BITS 23:16 PMSC_STATE CURRENT PMSC STATE MACHINE VALUE ................................................................... 11
TABLE 3: BITS 15:8 RX_STATE CURRENT RECEIVE STATE MACHINE VALUE ......................................................................... 11
TABLE 4: BITS 7:0 TX_STATE BITS 7:4 - RESERVED, 3:0 CURRENT TRANSMIT STATE MACHINE VALUE .................................... 12
TABLE 5: BITMASK VALUES FOR DWT_CONFIGURESLEEP() WAKE BIT MASK ............................................................................ 20
TABLE 6: BITMASK VALUES FOR DWT_CONFIGURESLEEP() MODE BIT MASK ............................................................................ 20
TABLE 7: TABLE OF REFERENCES .................................................................................................................................. 22
TABLE 8: DOCUMENT HISTORY ..................................................................................................................................... 22
LIST OF FIGURES
FIGURE 1: DW1000 PIN ASSIGNMENTS ........................................................................................................................... 5
FIGURE 2: DW1000 POWER UP SEQUENCE ...................................................................................................................... 6
FIGURE 3: TX AND RX STATES ON THE OSCILLOSCOPE ......................................................................................................... 8
FIGURE 4: TX AND RX STATES DURING TWO-WAY RANGING ................................................................................................. 9
FIGURE 5: TX FRAME COMMAND TIMINGS (DELAYED TX OPERATION) .................................................................................. 15
FIGURE 6: TWR POWER PROFILE FOR A TWR TAG USING A DC-DC CONVERTER. CHANNEL 5, 6.8 MBPS, 128 SYMBOL PREAMBLE . 16
APS022: Debugging DW1000 based products and systems
© Decawave 2016 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 4 of 23
1 INTRODUCTION
1.1 Scope
This document is intended to help embedded software developers and firmware engineers debug
their software as they develop applications and drivers to control the DW1000.
1.2 Pre-requisites
The developer should be familiar with the DW1000 Data Sheet [1] and the DW1000 User Manual [2].
1.3 References and sources
The software code snippets referred to in this document are taken from the source code supplied with
the “DW1000 Application Programming Interface with application examples”
1
and built with the
CooCox IDE
2
.
The hardware platform referred to in this document is the EVB1000 platform.
1.4 Document overview
Chapter 2 reviews the power up sequence of DW1000
Chapter 3 describes common SPI problems
Chapter 4 shows how to use system events and state registers to help in diagnosing any issues
Chapter 5 covers transmission
Chapter 6 reviews reception
Chapter 7 provides help on configuring and using DW1000 sleep / low power states
1
May be downloaded from www.decawave.com/support/software
2
Version 1.7.8 with GNU Tools ARM for Embedded toolchain which may be downloaded by following this link
https://www.coocox.org/download/Tools/CoIDE-1.7.8.exe
APS022: Debugging DW1000 based products and systems
© Decawave 2016 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 5 of 23
2 POWER-UP SEQUENCE
As the DW1000 IC is powered up, various pins can be probed to verify that the device is operating
correctly and that at the end of the power up sequence it is in its IDLE state. The DW1000 Data Sheet
[1] shows the power-up sequence and the status of the main DW1000 pins.
Figure 1: DW1000 pin assignments
1. Firstly the 3.3 V supplies should be switched on (as shown in Figure 2)
2. Soon after the voltage on the supply pins reaches V
on
(2.0 V nominal value – see DW1000
Data Sheet [1]) the EXTON pin will go high.
3. In parallel the XTAL will start oscillating, and will reach the desired frequency of 38.4 MHz
after T
osc_on
.
4. Then VDDREG and VDDDIG will go high followed by RSTn.
5. The transition of RSTn from low to high indicates that the DW1000 is in the INIT state. The
time taken for this transition depends on whether the DW1000 is powering up or is being
woken up from the DEEPSLEEP state.
a. In the WAKEUP case, it can take up to 40 µs for the transition from the INIT state to
the IDLE state; this is due to the download of the always on (AON) array after
WAKEUP. The AON block contains a low-power configuration array that retains the
on-chip register configuration and remains powered-up provided power (from the
battery, for example) is supplied to the DW1000 via the VDDAON pin.
b. In the case of power-up, the DW1000 transitions from the INIT to the IDLE state after
approximately 5 µs (the time it takes the on-chip PLL to lock).
6. Once in IDLE mode the SPI can operate at up to 20 MHz rate. The VREF voltage should be
1.12 V.
7. Other supply pins should also be checked when in the IDLE state (VDDDIG, VDDMS,
VDDCLK etc.) to ensure they are at the correct voltage. Refer to [1].
剩余22页未读,继续阅读
资源评论
小鸭文库
- 粉丝: 144
- 资源: 5904
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功