没有合适的资源?快使用搜索试试~ 我知道了~
首页MLX90363-应用
MLX90363-应用
需积分: 47 45 下载量 40 浏览量
更新于2023-03-16
评论 2
收藏 582KB PDF 举报
磁场检测线性霍尔传感器MLX90363应用手册 本指南的目标是描述将MLX90363 Triaxis™器件集成到旋转,线性或游戏杆应用中所需的基本设置和故障排除步骤。 所有使用MLX90363的旋转,线性和游戏杆应用都采用单芯片或双芯片封装。
资源详情
资源评论
资源推荐
Application Note
MLX90363 Getting Started Guide
Rev 002 Page 1 of 28 Dec-13
Abstract
This guide was written with the goal of describing the basic setup and
troubleshooting steps required for integrating the MLX90363 Triaxis™
device into either a rotary, linear, or joystick application.
Applicable Applications
All rotary, linear, and joystick applications using the MLX90363 in
either the single or dual die package.
Recommended Tools and Resources
MLX90363 Datasheet
Oscilloscope or SPI->PC adaptor with SPI decoding
MLX90363 demo board and mbed board or PTC-04 with SPI daughterboard
Convention, Acronyms, and Abbreviations
Number Format and Text
Values in hexadecimal are shown with a preceding “0x”. For example: 0x12 is decimal 18.
Binary values are shown with a preceding “0b”. For example: 0b10010 is decimal 18.
Textual descriptions are shown in this format
Code examples are shown in this format
Warnings and cautions are shown in this format
Acronyms
MOSI = Master Out, Slave In
MSb = Most Significant Bit
MISO = Master In, Slave Out
LSb = Least Significant Bit
CLK = Serial Clock
MSB = Most Significant Byte
SS = Slave Select (also called chip select).
Active low.
LSB = Least Significant Byte
NTT = Nothing To Transmit
MLX90363 Getting Started Guide
Rev 002 Page 2 of 28 Dec-13
Table of Contents
Abstract ............................................................................................................................................................ 1
Applicable Applications .................................................................................................................................... 1
Recommended Tools and Resources ............................................................................................................... 1
Convention, Acronyms, and Abbreviations ...................................................................................................... 1
Number Format and Text ............................................................................................................................. 1
Acronyms ...................................................................................................................................................... 1
Table of Contents ............................................................................................................................................. 2
Axis Definition................................................................................................................................................... 3
SPI Message Notation ....................................................................................................................................... 3
Code Samples and Hardware Setup ................................................................................................................. 4
SPI Bus Protocol ................................................................................................................................................ 6
Key Instructions ................................................................................................................................................ 7
NOP ............................................................................................................................................................... 7
GET1.............................................................................................................................................................. 8
Rotary Application ............................................................................................................................................ 9
Magnetic Configuration ................................................................................................................................ 9
Suggested EEPROM Configuration ............................................................................................................... 9
Rotary Code Example ................................................................................................................................... 9
Linear Application ........................................................................................................................................... 12
Magnetic Configuration .............................................................................................................................. 12
EEPROM Configuration ............................................................................................................................... 12
Code Example ............................................................................................................................................. 12
Joystick Application ........................................................................................................................................ 19
Magnetic Configuration .............................................................................................................................. 19
EEPROM Configuration ............................................................................................................................... 19
Code Example ............................................................................................................................................. 19
FAQ’s and Troubleshooting ............................................................................................................................ 26
MLX90363 Getting Started Guide
Rev 002 Page 3 of 28 Dec-13
Axis Definition
The axes of the MLX90363 are defined in the datasheet and are shown below.
Figure 1: MLX90363 SOIC8 Axis Definitions
SPI Message Notation
The SPI message format used in this document is shown below. The row numbers indicate the word
number while the column numbers indicate the bit number. When particular bits are not relevant the cell
is shaded gray and these values will typically be set to zero (0) in the MOSI and MISO messages. Refer to
the datasheet for more details.
#
7
6
5
4
3
2
1
0
#
7
6
5
4
3
2
1
0
1
(3)
0
(2)
(1)
3
2
(4)
5
4
7
CRC [7:0]
6
Marker
Opcode or Counter
(1): Bit[0] of Byte[0] (2): Bit[7] of Byte[0] (3): Bit[0] of Byte[1] (4): Bit[0] of Byte[2]
Marker determines what type of message is being requested or returned.
Marker 0x00: Alpha message
Marker 0x01: Alpha/Beta message
Marker 0x02: XYZ message
Marker 0x03: Command message (eg: Memory Write, Error, NTT)
The Opcode is the unique message identifier in the event of Marker 0x03 messages. In the event of a
Marker 0x00, 0x01 and 0x02 message it is a rolling counter that increments with every GET message.
CRC is the unique CRC value computed based on the contents of the SPI message. For more details please
refer to the datasheet.
0.46 +/- 0.06
1.25
1
.96
2
.26
1 2 3 4
8 7 6 5
X
Y
1.16 +/- 0.155
1.65
CCW
CW
Z
MLX90363 Getting Started Guide
Rev 002 Page 4 of 28 Dec-13
Code Samples and Hardware Setup
The code samples given in this document are written for an mbed microcontroller development board,
specifically the LPC11U24 evaluation board, using a single die MLX90363 (P/N MLX90363EDC-ABB-000).
The examples make use of the virtual serial port on the mbed to output human readable data. The
hardware block diagram for this setup is shown below for a single die connection.
Figure 2: PC, mbed, MLX90363 block diagram
It is recommended to use the application diagram in the datasheet when selecting the components that
surround the MLX90363. This typically requires a capacitor on the V
DEC
pin and a capacitor on V
DD
and a
pullup resistor on the SS pin. Additional components, such as small series resistors, may be recommended
for long distances on MISO, MOSI, and CLK. Please refer to the datasheet for the latest recommended
circuit configuration.
MLX90363 Getting Started Guide
Rev 002 Page 5 of 28 Dec-13
Data output is performed via the mbed serial port. It is necessary to install a serial driver after which point
any terminal program can be used to monitor the serial data stream. The image below shows the output
from the rotary and linear applications in a PuTTY window. PuTTY is a free terminal program that can be
used to monitor the serial port data. The code examples use a baud rate of 115200 and the COM port will
vary depending on which USB port is used.
Figure 3: PuTTY Setup Screen
Figure 4: Serial Data Output Example
Caution: The code samples given in this guide are intended to enable basic functionality and do not
implement the recommended startup sequence or diagnostic checks. It is strongly recommended that the
user create additional procedures to implement these functions.
剩余27页未读,继续阅读
KintheN
- 粉丝: 215
- 资源: 17
上传资源 快速赚钱
- 我的内容管理 收起
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
会员权益专享
最新资源
- c++校园超市商品信息管理系统课程设计说明书(含源代码) (2).pdf
- 建筑供配电系统相关课件.pptx
- 企业管理规章制度及管理模式.doc
- vb打开摄像头.doc
- 云计算-可信计算中认证协议改进方案.pdf
- [详细完整版]单片机编程4.ppt
- c语言常用算法.pdf
- c++经典程序代码大全.pdf
- 单片机数字时钟资料.doc
- 11项目管理前沿1.0.pptx
- 基于ssm的“魅力”繁峙宣传网站的设计与实现论文.doc
- 智慧交通综合解决方案.pptx
- 建筑防潮设计-PowerPointPresentati.pptx
- SPC统计过程控制程序.pptx
- SPC统计方法基础知识.pptx
- MW全能培训汽轮机调节保安系统PPT教学课件.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0