MMA9551 map multiple bits to the same GPIO pin

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MMA9551 map multiple bits to the same GPIO pin

ソリューションへジャンプ
1,692件の閲覧回数
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,390件の閲覧回数
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,391件の閲覧回数
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 件の賞賛
返信