2014-07-09 04:17 AM
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
2014-10-06 09:17 AM
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
2015-07-03 07:10 AM
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, SANELUB2015-08-04 03:22 AM
Good day!
Look at my suggestion to solve this problem dated 8/4/2015 12:08 PM on: Best regards, SANEL