ST意法半导体
直播中

江松洁

8年用户 168经验值
私信 关注
[问答]

LIS3DH怎么从FIFO获得12位值?

我尝试在FIFO_STREAM模式和HighRes模式下使用lis3dh。但是当我读取值时,它们似乎只是10位值。
(我设置CTRL_REG4 = 0x08,CTRL_REG5 = 0x40和ODR = 100Hz。)
根据AN3308,16位值存储在FIFO中。在LIS3DH数据表中,首页上显示的是“16位数据输出FIFO”。但在第3.6节中,我读到'LIS3DH包含一个10位,32级FIFO'。
有没有人设法从FIFO获得12位值?
BR

/托马斯

以上来自于谷歌翻译


以下为原文




I try to use the lis3dh in FIFO_STREAM mode and HighRes mode. But when I read the values they seem to only be 10bit values.
(I am setting CTRL_REG4 = 0x08, CTRL_REG5=0x40 and ODR=100Hz.)
According to AN3308 16-bits values are stored in the FIFO. In the LIS3DH datasheet, on the front page it says '16-bit data output FIFO'. But further down in section 3.6 I read 'The LIS3DH contains a 10-bit, 32-level FIFO.'.
Has any one managed to get 12-bit values from the FIFO?
BR

/Tomas

回帖(1)

曾玲娟

2018-11-21 10:43:21
你是对的,它在数据表中写得不是很好。
FIFO只能存储10位值。当您读取值时,您实际读取16位值2字节,但仅使用左侧10位。

以上来自于谷歌翻译


以下为原文




You are right, it is not very well written in the datasheet.
The FIFO can store only 10-bit values. When you read the values you actualy read 16-bit value 2 bytes, but only left 10-bits are used.
举报

更多回帖

发帖
×
20
完善资料,
赚取积分