cancel
Showing results for 
Search instead for 
Did you mean: 

LIS3DSH INT1

wal99d
Associate II
Posted on July 09, 2014 at 13:17

Hi Guys,

I'm trying to generate Interrupt on INT1 to allow LIS3DSH to wake up my uController in order to read and manipulate the data. the below code with Registers configuration was used but not luck so far:

/* Send Configuration command for MASK1_A */

 sendToLis3dsh( 0x5A, 0xFF);

/* Send Configuration command for MASK1_B */

 sendToLis3dsh( 0x59, 0xFF);

/* Send Configuration command for SETT1 */

 sendToLis3dsh( 0x5B, 0x82);

/* Send Configuration command for CTRL_REG1 */

 sendToLis3dsh( 0x21, 0x01);

/* Send Configuration command for CTRL_REG2 */

 sendToLis3dsh( 0x22, 0x00);

/* Send Configuration command for CTRL_REG3 */

 sendToLis3dsh( 0x23, 0x48);

/* Send Configuration command for CTRL_REG4 */

 sendToLis3dsh( 0x20, 0x67);

 /* Send Configuration command for CTRL_REG5 */

 sendToLis3dsh( 0x24, 0x00);

 /* Send Configuration command for THRS1_1 */

 sendToLis3dsh( 0x57, 0x55);

 /* Send Configuration command for ST1_1 */

 sendToLis3dsh( 0x40, 0x05);

 /* Send Configuration command for ST1_2 */

 sendToLis3dsh( 0x41, 0x11);

appreciate your kind and prompt help #int1 #lis3dsh #mask
3 REPLIES 3
mike239955_st
Associate
Posted on October 06, 2014 at 18:17

Hullo,

Try putting an OUTC (0x88):

/* Send Configuration command for ST1_1 */

 sendToLis3dsh( 0x40, 0x05);

 /* Send Configuration command for ST1_2 */

 sendToLis3dsh( 0x41, 0x88);

/* Send Configuration command for ST1_3 */

 sendToLis3dsh( 0x42, 0x11);

I've found that the interrupts are not copied from state machine 1 to the interrupt system unless you do that. You should then see the interrupt line being asserted and STAT becoming something other than 0x00. Cheerio! Mike
sanelub
Associate
Posted on July 03, 2015 at 16:10

Good day!

I am expecting the same problem. If I use the State Machine I don't receive any interrupts. However, when the device is configured to raise interrupts when data is ready I receive interrupts.

Mike, I've tried the configuration above with your improvement (putting an OUTC) but no interrupt I've received.

Who know what registers should be used?

Thanks!

Best regards,

SANELUB

sanelub
Associate
Posted on August 04, 2015 at 12:22

Good day!

Look at my suggestion to solve this problem dated 8/4/2015 12:08 PM on:

Best regards,

SANEL