5.3
5.3.1
Programming Mode Via PSI5 - Data Link Layer
Programming Mode Via PSI5 - Command Bit Encoding
Commands messages are transmitted via the modulation of the supply voltage. The presence of a sync pulse is a logic '1' and
the absence of a sync pulse is a logic '0'. Sync pulses are expected at a rate of t S-S_PM_L .
5.3.2
Programming Mode Via PSI5 - Command Message Format
Command message data frames consist of a start condition, 3 Start Bits (S[2:0]), a 3 bit Sensor Address (SAdr[2:0]), a 3-bit
Function Code (FC[2:0]), an optional Register Address (RAdr[5:0]), an optional data field (D[3:0]), and a 3-bit CRC (C[2:0]. The
start condition consists of one of the following:
1. A minimum of 5 consecutive logic ‘0’s (with not sync bits)
2. A minimum of 31 consecutive logic ‘1’s
The command message format is shown in Figure 41 .
Start Bits
Sensor Address
Function Code
Register Address
Data
CRC
Response
S2
S1
S0
SA0
SA1
SA2
FC0
FC1
FC2
RA0
RA1
RA2
RA3
RA4
RA5
D0
D1
D2
D3
C2
C1
C0
RC
RD1
RD0
0
1
0
1
0
0
0
1
0
0
0
0
0
0
0
1
1
1
1
0
0
0
$3FF $3FF $3FF
CRC
Data to be written to register (optional)
Register Address (optional)
Function Codes for MMA52xx (Reference Section 5.3.6 )
Sensor Address - Fixed at 001 for MMA52xx
Start Bit Sequence = 010
Figure 40. Programming Mode Via PSI5 Command Data Format
Bit stuffing is necessary to maintain a synchronized time base between the command master and the device. A logic ‘1’ Sync
bit is added every 4 th bit in the command message to ensure there will never be more than 3 logic '0' bits in a row.
Start Bits
Sensor
Address
Function Code
Register Address
Data
CRC
Response
S2 S1 S0 Sy SA0 SA1 SA2 Sy FC0 FC1 FC2 Sy RA0 RA1 RA2 Sy RA3 RA4 RA5 Sy D0 D1 D2 Sy D3 C2 C1 Sy C0
RC
RD1
RD0
0
1
0
1
1
0
0
1
0
0
0
1
0
0
0
1
0
0
0
1
1
1
1
1
1
0
0
1
0
$1E2
$3FF
$3FF
Figure 41. Programming Mode Via PSI5 Command Data Format with Sync Bits
Once a command is received and verified, the device expects 2 to 3 consecutive sync pulses (depending upon the command
message lengths described below). For each of these sync pulses, the device will respond with the following settings:
Parameter
Time Slot
Data Size
Error Checking
Baud Rate
Sync Pulse Pulldown
Register Bits
N/A
DATASIZE = 0
P_CRC = 0
BAUD
SYNCPD
Reference
N/A
Section 3.1.3.5
Section 3.1.3.7
Section 3.1.3.8
Section 3.1.3.3
Value
t TIMESLOT_DC1
10-bit data
Even Parity
125 kBaud
Disabled
Figure 42. Programming Mode Via PSI5 Response Message Settings
MMA52xxKW
Sensors
50
Freescale Semiconductor, Inc.
相关PDF资料
MMA6331LT SENSORS ACCELEROMETER 14LGA
MMA6341LT IC ACCELER 3G/8G XY-AXIS 14LGA
MMA6361LT IC ACCELER 1.5G XY-AXIS 14LGA
MMA6527KW IC ACCELEROMETER XY AXIS 16QFN
MMA6556KW IC ACCELEROMETER X AXIS 16QFN
MMA6826AKW IC ACCELEROMETER XY AXIS 16QFN
MMA6854KW IC ACCELEROMETER X AXIS 16QFN
MMA7331LR2 ACCELEROMETER 4G XYZ ENH 14-LGA
相关代理商/技术参数
MMA52XXAKW 制造商:FREESCALE 制造商全称:Freescale Semiconductor, Inc 功能描述:Xtrinsic MMA52xxAKW PSI5 Inertial Sensor
MMA52XXKW 制造商:FREESCALE 制造商全称:Freescale Semiconductor, Inc 功能描述:PSI5 Inertial Sensor
MMA52XXWR2 制造商:FREESCALE 制造商全称:Freescale Semiconductor, Inc 功能描述:PSI5 Inertial Sensor
MMA621010AEG 功能描述:加速计 - 板上安装 100/100G XY ANALOG RoHS:否 制造商:Murata 传感轴:Double 加速:12 g 灵敏度: 封装 / 箱体: 输出类型:Analog 数字输出 - 位数:11 bit 电源电压-最大:5.25 V 电源电压-最小:4.75 V 电源电流:4 mA 最大工作温度:+ 125 C 最小工作温度:- 40 C
MMA621010AEGR2 功能描述:加速计 - 板上安装 100/100G XY ANALOG RoHS:否 制造商:Murata 传感轴:Double 加速:12 g 灵敏度: 封装 / 箱体: 输出类型:Analog 数字输出 - 位数:11 bit 电源电压-最大:5.25 V 电源电压-最小:4.75 V 电源电流:4 mA 最大工作温度:+ 125 C 最小工作温度:- 40 C
MMA621010AKEG 功能描述:加速计 - 板上安装 100/100G XY ANALOG RoHS:否 制造商:Murata 传感轴:Double 加速:12 g 灵敏度: 封装 / 箱体: 输出类型:Analog 数字输出 - 位数:11 bit 电源电压-最大:5.25 V 电源电压-最小:4.75 V 电源电流:4 mA 最大工作温度:+ 125 C 最小工作温度:- 40 C
MMA621010AKEGR2 功能描述:加速计 - 板上安装 100/100G XY ANALOG RoHS:否 制造商:Murata 传感轴:Double 加速:12 g 灵敏度: 封装 / 箱体: 输出类型:Analog 数字输出 - 位数:11 bit 电源电压-最大:5.25 V 电源电压-最小:4.75 V 电源电流:4 mA 最大工作温度:+ 125 C 最小工作温度:- 40 C
MMA621010EG 功能描述:加速计 - 板上安装 100 /100 XY DIGITAL RoHS:否 制造商:Murata 传感轴:Double 加速:12 g 灵敏度: 封装 / 箱体: 输出类型:Analog 数字输出 - 位数:11 bit 电源电压-最大:5.25 V 电源电压-最小:4.75 V 电源电流:4 mA 最大工作温度:+ 125 C 最小工作温度:- 40 C