cancel
Showing results for 
Search instead for 
Did you mean: 

LIV4F

2jjayne
Associate

Is a document available that defines all the configuration data blocks for the LIV4F?  We are specifically looking for the contents of configuration data block 263, which seems to configure the I2C interface.

1 REPLY 1
GalaxyQuest
ST Employee

Hi,

You can enable the I2C interface by

 

$PSTMSETPAR,1263,0x1,1 //enable I2C 
$PSTMSAVEPAR   //save and reset
$PSTMSRR       //reset for settings to take effect

$PSTMSETPAR,1263,0x1,2 //disable I2C with bit mask 2 
$PSTMSAVEPAR   //save and reset
$PSTMSRR       //reset for settings to take effect

 

I2C speed by default is set to STANDARD.

Bit 16-23
0..2
0 = Speed mode STANDARD
1 = Speed mode FAST
2 = Speed mode HS

Default device address of LIV4F is 0x3A.

I would not change bit-24 to bit-31 as this deals with pin assignment and is not applicable for module settings.


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.