Hi @cchen ,
Yes, both INT1 and INT2 can be generated. The configuration should be set in the conf.txt: https://github.com/STMicroelectronics/ispu-examples/blob/master/ism330is_lsm6dso16is/template/ispu/conf.txt.
acc_odr 26
acc_fs 8
acc_mode high_performance
ispu_irq_rate 26
ispu_int1 enable
ispu_sleep_int2 enable
ispu_latch disable
algo 0 enable
algo_int1 0 enable
The configuration highlighted in bold should be removed or should be changed by putting “disable” as an argument: by default, on the template and on our examples, INT2 is used for the ISPU sleep signal. The configurations highlighted in italics in the template enable INT1 in general and then specifically for Algorithm 0. To use INT2, similar configurations should be put in, so:
ispu_int2 enable
algo_int2 0 enable
This is if you want to enable INT2 on algorithm 0 as well, otherwise just specify, instead of '0', the number of the algorithm for which you want to generate the interrupt on INT2.