实际上你可以用内置的自测试来自我测试中断。
如果您阅读规格表,请参阅第7.6至7.9节
在CRTL_REG3中你需要设置I1_AOI1和
I1_AOI2位为1以激活中断,默认情况下它们为0。
在自检模式下天气或使用外部振动进行测试,这些将根据预设的阈值水平激活中断。
如果使用振动测试,您只需确定要使用的级别,在自测模式下,中断应该触发。
最简单的一个当然是将LIS2DH int引脚连接到微型中断,以查看它们是否被触发。
以上来自于谷歌翻译
以下为原文
actually you can self test the interrupts with the built in self test.
If you read the spec sheet look at sections 7.6 thru 7.9
in CRTL_REG3 you need to set the I1_AOI1 and
I1_AOI2 bits to 1 to activate the interrupts, by default they are 0.
Weather in self test mode or using external vibration to test, these will activate the interrupts based on the preset threshold levels.
You simply have to determine what levels you want to use if using vibration to test, in self test mode the interrupts should fire.
One of the easiest is of course attach the LIS2DH int pins to interrupts on the micro to see if they fired.
实际上你可以用内置的自测试来自我测试中断。
如果您阅读规格表,请参阅第7.6至7.9节
在CRTL_REG3中你需要设置I1_AOI1和
I1_AOI2位为1以激活中断,默认情况下它们为0。
在自检模式下天气或使用外部振动进行测试,这些将根据预设的阈值水平激活中断。
如果使用振动测试,您只需确定要使用的级别,在自测模式下,中断应该触发。
最简单的一个当然是将LIS2DH int引脚连接到微型中断,以查看它们是否被触发。
以上来自于谷歌翻译
以下为原文
actually you can self test the interrupts with the built in self test.
If you read the spec sheet look at sections 7.6 thru 7.9
in CRTL_REG3 you need to set the I1_AOI1 and
I1_AOI2 bits to 1 to activate the interrupts, by default they are 0.
Weather in self test mode or using external vibration to test, these will activate the interrupts based on the preset threshold levels.
You simply have to determine what levels you want to use if using vibration to test, in self test mode the interrupts should fire.
One of the easiest is of course attach the LIS2DH int pins to interrupts on the micro to see if they fired.
举报