Slave Port Interface
Table 8-3. Invalid mailbox organization
MSB Address
MSB
LSB
0x00
0x04
0x08
0x0C
0x10
0x14
0x18
0x1C
Variable 1 (MSB)
Variable 2 (MSB+2)
Variable 3 (MSB+2)
Variable 5 (MSB)
Variable 6 (MSB+2)
Variable 8 (MSB)
Variable 10 (LSB)
Variable 14
(LSB)
(LSB)
(LSB)
(LSB)
(LSB)
(LSB)
Variable 11
Variable 15
Variable 2 (MSB)
Variable 3 (MSB)
Variable 4 (MSG)
Variable 6 (MSB)
Variable 7 (MSB)
Variable 9
Variable 12
Variable 16
(MSB+1)
(MSB+1)
(LSB)
(MSB+1)
(LSB)
Variable 10 (MSB)
Variable 13
Variable 17
Table 8-3 highlights the improperly aligned variables. Depending on when reads and writes occur, it is
possible that the master and CPU would see inconsistent values.
The four-byte read buffer is cleared when an I 2 C STOP condition occurs or when the SPI SSB signal is
deasserted, depending upon which port is in use. Contents are replaced whenever the register address
increments from one row to the next.
8.3.2
Binary semaphore (mutex) operation
The MMA955xL platform includes two semaphore registers that can be used by the CPU and system
master to negotiate ownership of shared assets. These can be mailbox registers or any other shared item.
These registers can be read by only one of the two parties at any point in time. Simultaneous attempts will
be serialized by the module.
Each semaphore register has several possible actions associated with it, as shown in Table 8-4 .
Table 8-4. Semaphore actions
Semaphore content
0x00
0x01
0x02
0x00
0x01 or 0x02
Action
Read 0x00
Read 0x01
Read 0x02
Write any value (Normally, this is
only done by the current owner.)
Side effect
Set semaphore = 1. Reader now has ownership of shared asset.
None. Slave host has ownership of the semaphore.
None. CPU has ownership of the semaphore.
Set semaphore = 0 - No action
Set semaphore = 0 - Ownership has been relinquished
The actions in Table 8-4 are atomic, assuring that the CPU and master can unambiguously negotiate
ownership of any asset.
Operation of the two semaphore registers is identical, allowing for simultaneous negotiations of two
different sets of shared assets.
A classic problem with operation of semaphores occurs when the owner of a shared asset fails to relinquish
control, resulting in a “lockout” situation. For this reason, each semaphore has an optional “time-out”
register. If enabled, a countdown timer is initiated to the specified value whenever the semaphore is set.
The counter then begins counting down. When it hits zero, an interrupt is issued. The CPU should then
clear the semaphore.
Each timer is stopped whenever the associated semaphore is cleared.
MMA955xL Intelligent, Motion-Sensing Platform Hardware Reference Manual, Rev. 1.0
Freescale Semiconductor, Inc.
123
相关PDF资料
KITMMA955XLEVM KIT EVALUATION FOR MMA955XL
KITMPL115A1EVB KIT EVALUATION FOR MPL115A1
KITMPL115A1SPI KIT EVALUATION FOR PL115A1SP1
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
相关代理商/技术参数
KITMMA9551LEVM 功能描述:加速传感器开发工具 Dev Board MMA9551L RoHS:否 制造商:Murata 工具用于评估:SCA3100-D04 加速:2 g 传感轴:Triple Axis 接口类型:SPI 工作电压:3.3 V
KITMMA955XLEVM 功能描述:加速传感器开发工具 EVM KIT FOR MMA955XL RoHS:否 制造商:Murata 工具用于评估:SCA3100-D04 加速:2 g 传感轴:Triple Axis 接口类型:SPI 工作电压:3.3 V
KITMMDS08AB32 功能描述:DEV KIT FOR 68HC908AB32 MMDS RoHS:否 类别:编程器,开发系统 >> 过时/停产零件编号 系列:- 标准包装:1 系列:- 传感器类型:CMOS 成像,彩色(RGB) 传感范围:WVGA 接口:I²C 灵敏度:60 fps 电源电压:5.7 V ~ 6.3 V 嵌入式:否 已供物品:成像器板 已用 IC / 零件:KAC-00401 相关产品:4H2099-ND - SENSOR IMAGE WVGA COLOR 48-PQFP4H2094-ND - SENSOR IMAGE WVGA MONO 48-PQFP
KITMMDS08JB8 功能描述:DEV KIT FOR 68HC908JB8 MMDS RoHS:否 类别:编程器,开发系统 >> 过时/停产零件编号 系列:- 标准包装:1 系列:- 传感器类型:CMOS 成像,彩色(RGB) 传感范围:WVGA 接口:I²C 灵敏度:60 fps 电源电压:5.7 V ~ 6.3 V 嵌入式:否 已供物品:成像器板 已用 IC / 零件:KAC-00401 相关产品:4H2099-ND - SENSOR IMAGE WVGA COLOR 48-PQFP4H2094-ND - SENSOR IMAGE WVGA MONO 48-PQFP
KITMMDS08JL 功能描述:DEVKIT 68HC908JL3/JK3/JK1 MMDS RoHS:否 类别:编程器,开发系统 >> 过时/停产零件编号 系列:- 标准包装:1 系列:- 传感器类型:CMOS 成像,彩色(RGB) 传感范围:WVGA 接口:I²C 灵敏度:60 fps 电源电压:5.7 V ~ 6.3 V 嵌入式:否 已供物品:成像器板 已用 IC / 零件:KAC-00401 相关产品:4H2099-ND - SENSOR IMAGE WVGA COLOR 48-PQFP4H2094-ND - SENSOR IMAGE WVGA MONO 48-PQFP
KITMMDS08KX 功能描述:DEV KIT FOR 68HC908KX8/KX2 MMDS RoHS:否 类别:编程器,开发系统 >> 过时/停产零件编号 系列:- 标准包装:1 系列:- 传感器类型:CMOS 成像,彩色(RGB) 传感范围:WVGA 接口:I²C 灵敏度:60 fps 电源电压:5.7 V ~ 6.3 V 嵌入式:否 已供物品:成像器板 已用 IC / 零件:KAC-00401 相关产品:4H2099-ND - SENSOR IMAGE WVGA COLOR 48-PQFP4H2094-ND - SENSOR IMAGE WVGA MONO 48-PQFP
KITMMDS08MR32 功能描述:DEVKIT FOR 68HC908MR32/MR16 MMDS RoHS:否 类别:编程器,开发系统 >> 过时/停产零件编号 系列:- 标准包装:1 系列:- 传感器类型:CMOS 成像,彩色(RGB) 传感范围:WVGA 接口:I²C 灵敏度:60 fps 电源电压:5.7 V ~ 6.3 V 嵌入式:否 已供物品:成像器板 已用 IC / 零件:KAC-00401 相关产品:4H2099-ND - SENSOR IMAGE WVGA COLOR 48-PQFP4H2094-ND - SENSOR IMAGE WVGA MONO 48-PQFP
KITMMEVS08AB32 功能描述:DEV KIT FOR 68HC908AB32 MMEVS RoHS:否 类别:编程器,开发系统 >> 过时/停产零件编号 系列:- 标准包装:1 系列:- 传感器类型:CMOS 成像,彩色(RGB) 传感范围:WVGA 接口:I²C 灵敏度:60 fps 电源电压:5.7 V ~ 6.3 V 嵌入式:否 已供物品:成像器板 已用 IC / 零件:KAC-00401 相关产品:4H2099-ND - SENSOR IMAGE WVGA COLOR 48-PQFP4H2094-ND - SENSOR IMAGE WVGA MONO 48-PQFP