谢谢您的回复。
简而言之,我正在为我的MCU加电并使用我想要的参数初始化加速度计,然后将其置于断电模式。然后,当提示MCU将加速度计置于活动状态(设置ODR值)并等待INT1上的ZYXDA拉高然后读取,然后在放入加速度计之前重复所需的样本总数进入省电模式。我没有使用FIFO功能,因为MCU在此期间无需处理,因此在INT1线上。
我写入器件的过程和每个寄存器的值如下:
TEMP_CFG_REG = 0xC0 //启用温度传感器和ADC
CTRL_REG2 = 0 //无过滤要求
CTRL_REG4 = 0 // Fs = 2g,8位分辨率
CTRL_REG6 = 0 //中断极性高电平有效
FIFO_CTRL_REG = 0x80 //流模式,INT1上触发中断
CTRL_REG3 = 0x10 // ZYXDA_ENCTRL_REG5 = 0 // FIFO禁用
CTRL_REG1 = 0x4F // 50Hz,8位分辨率,XYZ轴'启用
以上来自于谷歌翻译
以下为原文
Thank you for your reply.
In brief, I am powering up my MCU and initialising the accelerometer with my desired parameters and then putting it into power down mode. Then when prompted the MCU puts the accelerometer into an active state (
sets the ODR value) and waits for the ZYXDA on INT1 to be pulled high and then takes a reading, this is then repeated for the total number of required samples before putting the accelerometer into Power Down mode. I am not using the FIFO functionality as the MCU has nothing to process in the meantime and therefore pends on the INT1 line.
My process for writing to the device and each registers value is as follows:
TEMP_CFG_REG = 0xC0 // Temperature sensor and ADC enabled
CTRL_REG2 = 0 // No filtering requirements
CTRL_REG4 = 0 // Fs = 2g, 8 Bit Resolution
CTRL_REG6 = 0 // Interrupt Polarity Active High
FIFO_CTRL_REG = 0x80 // Stream mode, interrupt triggered on INT1
CTRL_REG3 = 0x10 // ZYXDA_ENCTRL_REG5 = 0 // FIFO Disabled
CTRL_REG1 = 0x4F // 50Hz, 8 Bit resolution, XYZ axis' enabled
谢谢您的回复。
简而言之,我正在为我的MCU加电并使用我想要的参数初始化加速度计,然后将其置于断电模式。然后,当提示MCU将加速度计置于活动状态(设置ODR值)并等待INT1上的ZYXDA拉高然后读取,然后在放入加速度计之前重复所需的样本总数进入省电模式。我没有使用FIFO功能,因为MCU在此期间无需处理,因此在INT1线上。
我写入器件的过程和每个寄存器的值如下:
TEMP_CFG_REG = 0xC0 //启用温度传感器和ADC
CTRL_REG2 = 0 //无过滤要求
CTRL_REG4 = 0 // Fs = 2g,8位分辨率
CTRL_REG6 = 0 //中断极性高电平有效
FIFO_CTRL_REG = 0x80 //流模式,INT1上触发中断
CTRL_REG3 = 0x10 // ZYXDA_ENCTRL_REG5 = 0 // FIFO禁用
CTRL_REG1 = 0x4F // 50Hz,8位分辨率,XYZ轴'启用
以上来自于谷歌翻译
以下为原文
Thank you for your reply.
In brief, I am powering up my MCU and initialising the accelerometer with my desired parameters and then putting it into power down mode. Then when prompted the MCU puts the accelerometer into an active state (
sets the ODR value) and waits for the ZYXDA on INT1 to be pulled high and then takes a reading, this is then repeated for the total number of required samples before putting the accelerometer into Power Down mode. I am not using the FIFO functionality as the MCU has nothing to process in the meantime and therefore pends on the INT1 line.
My process for writing to the device and each registers value is as follows:
TEMP_CFG_REG = 0xC0 // Temperature sensor and ADC enabled
CTRL_REG2 = 0 // No filtering requirements
CTRL_REG4 = 0 // Fs = 2g, 8 Bit Resolution
CTRL_REG6 = 0 // Interrupt Polarity Active High
FIFO_CTRL_REG = 0x80 // Stream mode, interrupt triggered on INT1
CTRL_REG3 = 0x10 // ZYXDA_ENCTRL_REG5 = 0 // FIFO Disabled
CTRL_REG1 = 0x4F // 50Hz, 8 Bit resolution, XYZ axis' enabled
举报