MMA9551 map multiple bits to the same GPIO pin

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

MMA9551 map multiple bits to the same GPIO pin

跳至解决方案
1,596 次查看
vladdogaru
Contributor I

Hi there!  Is it possible to map a logical OR of multiple bits to the same GPIO pin?  I ask because in flash mode we can use 4 pins, but might need more bits mapped to GPIO.  For example, in the tilt application, mapping all three ANGFLG bits already leaves us with only one usable GPIO pin.

Thanks in advance.

标签 (2)
0 项奖励
回复
1 解答
1,294 次查看
maureen
NXP Employee
NXP Employee

Hi Vlad,

Yes it is possible to do this, but you will need to write a small custom application to implement the logic. Then you can map the output of your custom application to a GPIO. Please see AN4129: Building Custom Applications on MMA9550L/MMA9551L. A sample custom application is also available for download.

Maureen

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,295 次查看
maureen
NXP Employee
NXP Employee

Hi Vlad,

Yes it is possible to do this, but you will need to write a small custom application to implement the logic. Then you can map the output of your custom application to a GPIO. Please see AN4129: Building Custom Applications on MMA9550L/MMA9551L. A sample custom application is also available for download.

Maureen

0 项奖励
回复