MMA9551 map multiple bits to the same GPIO pin

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MMA9551 map multiple bits to the same GPIO pin

Jump to solution
1,396 Views
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.

Labels (2)
0 Kudos
1 Solution
1,094 Views
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

View solution in original post

0 Kudos
1 Reply
1,095 Views
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 Kudos