3.6
Example of SPI Reading of Coefficients
These are MPL115A1 SPI commands to read coefficients, execute Pressure and Temperature conversions, and to read Pressure
and Temperature data. The sequence of the commands for the interaction is given as an example to operate the MPL115A1.
Utilizing this gathered data, an example of the calculating the Compensated Pressure reading is given in floating point notation.
SPI Commands (simplified for communication)
Command to Write “Convert Pressure and Temperature” = 0x24
Command to Read “Pressure ADC High byte” = 0x80
Command to Read “Pressure ADC Low byte” = 0x82
Command to Read “Temperature ADC High byte” = 0x84
Command to Read “Temperature ADC Low byte” = 0x86
Command to Read “Coefficient data byte 1 High byte” = 0x88
Read Coefficients:
[CS=0], [0x88], [0x00], [0x8A], [0x00], [0x8C], [0x00], [0x8E], [0x00], [0x90], [0x00], [0x92], [0x00], [0x94], [0x00], [0x96], [0x00],
[0x00], [CS=1]
Start Pressure and Temperature Conversion, Read raw Pressure:
[CS=0], [0x24], [0x00], [CS=1], [3 ms Delay]
[CS=0], [0x80], [0x00], [0x82], [0x00], [0x84], [0x00,] [0x86], [0x00], [0x00], [CS=1]
NOTE: Extra [0x00] at the end of each sequence to output the last data byte on the slave side of the SPI.
Figure 4. SPI Read Coefficient Datagram
a0 coefficient MSB
= 0x41
a0 coefficient LSB
b1 coefficient MSB
= 0xDF a0 coefficient
= 0xB0
= 0x41DF
= 2107.875
b1 coefficient LSB
= 0x28
b1 coefficient
= 0xB028
= -2.49512
b2 coefficient MSB
= 0xBE
b2 coefficient LSB
= 0xAD b2 coefficient
= 0xBEAD =
-1.02069
c12 coefficient MSB = 0x38
c12 coefficient LSB
= 0xCC c12 coefficient = 0x38CC = 0.00086665
MPL115A1
Sensors
Freescale Semiconductor, Inc.
9
相关PDF资料
KITMPL115A2I2C KIT EVALUATION FOR PL115A2I2C
KITMPVZ5004EVK KIT EVAL PRESSURE SENS BOARD
KN500B1/4 SWITCH KNOB STRAIGHT .50" BLACK
KN5700B1/4 SWITCH KNOB STRAIGHT .75" BLACK
KN700B1/4 SWITCH KNOB STRAIGHT .75" BLACK
KS-100 PROTECTIVE COVER FOR RELAYS
KTKK-0500 CONN HEAT SHRINK TUBE SZ 8 STR
KTKK-0674 CONN HEAT SHRINK TUBE SZ E STR
相关代理商/技术参数
KITMPL115A212C 制造商:Freescale Semiconductor 功能描述:KIT PRESSURE SENSOR MPL115A2
KITMPL115A2I2C 功能描述:压力传感器开发工具 KITMPL115A2I2C EVB RoHS:否 制造商:Freescale Semiconductor 工具用于评估:MPL3115A2 接口类型:USB 最大工作温度:
KITMPR03XEVM 功能描述:光学传感器开发工具 CAPACITIVE 2-PAD TOUCH SENSOR CTRL RoHS:否 制造商:ams 工具用于评估: 接口类型: 最大工作温度:
KITMPR083EVM 功能描述:光学传感器开发工具 8 POSITION ROTARY TOUCH RoHS:否 制造商:ams 工具用于评估: 接口类型: 最大工作温度:
KITMPR084EVM 功能描述:光学传感器开发工具 8 TOUCH PADS RoHS:否 制造商:ams 工具用于评估: 接口类型: 最大工作温度:
KITMPR121EVM 功能描述:触摸传感器开发工具 MPR121 Sensor Tool Box RoHS:否 制造商:Cypress Semiconductor 工具用于评估: 接口类型: 工作电压: 最大工作温度:
KITMPR121EVM 制造商:Freescale Semiconductor 功能描述:Sensor Toolbox Proximity Sensor Kit
KITMPVZ5004EVK 功能描述:压力传感器开发工具 WATER LEVEL BOARD RoHS:否 制造商:Freescale Semiconductor 工具用于评估:MPL3115A2 接口类型:USB 最大工作温度: