/var/www/restricted/ssh/stm32/www/stm32circle/ STM CircleOS forum / MEMS_ReadId

Username:     
Password:     
             

Forum

# 1   2008-03-28 11:05:05 MEMS_ReadId

JVidal
New member
Registered: 2008-03-28
Posts: 5

MEMS_ReadId

Hello,

In the source of CircleOS, in mems.c, in , I see that MEMS_Init contains :
if( MEMS_ReadID() != 0x3A )

I'm struggling a bit to understand where the value "0x3A" comes from. How was it determined that the test should use that particular value ?

Thanks for your help,
Jerome

Offline

 

# 2   2008-03-28 12:10:06 MEMS_ReadId

lionel
Member
From: Grenoble, France
Registered: 2007-07-24
Posts: 71
Website

Re: MEMS_ReadId

extract from page 22 in the MEMS datasheet:

WHO_AM_I (0Fh)
[...]
Addressing this register the physical address of the device is returned.
For LIS3LV02DL the physical address assigned in factory is $1.

Lionel

Offline

 

# 3   2012-12-07 11:16:25 MEMS_ReadId

softy
Member
Registered: 2012-12-03
Posts: 68

Re: MEMS_ReadId

what is this "extract from page 22 in the MEMS datasheet"? you mean page 22 of Datasheet for LIS3LV02DL ?
rgds,
Softy

Last edited by softy (2012-12-07 11:52:59)


" Pain is temporary, Quitting Lasts for ever"

Offline

 

# 4   2012-12-07 12:33:54 MEMS_ReadId

VincentC
Administrator
Registered: 2007-11-08
Posts: 149

Re: MEMS_ReadId

Yes, although in the latest version of this doc, it's now page 22:
http://www.st.com/internet/com/TECHNICA … 091417.pdf

Offline

 

Board footer