2827 views|3 replies

411

Posts

9

Resources
The OP
 

The MPU9250 magnetometer ID reading does not get the correct value for the following reasons: [Copy link]

This post was last edited by shijizai on 2020-11-23 17:20

I just made a note of the pit I just jumped out of, so as not to forget it later.

The MPU9250 magnetometer ID reading does not get the correct value for the following reasons:

Here is the IIC address of the magnetometer (0x0C). In the register manual, you can find the magnetometer device address register (0x00) and the device address (0x48).

Phenomenon: When reading the register, the correct address value should be 0x48. Here, the reading error is 0xff. At the same time, when reading the ID value of MPU9250, the result is correct.

Cause & Solution: Note the yellow highlighted part in the above picture. The manual says IIC mode is "Pass-Through mode". Pull down the INT pin to enable Pass-Through mode. At the same time, you need to write register 0x6A to disable IIC master mode. Then read it again to get the correct ID.

This post is from stm32/stm8

Latest reply

Many manuals are very confusing. If you don't read carefully, you can't see the details at all, and even if you read carefully, you still can't understand them for a while.   Details Published on 2020-11-24 13:12
 

2w

Posts

74

Resources
2
 

Praise the good habit of recording

This post is from stm32/stm8
Add and join groups EEWorld service account EEWorld subscription account Automotive development circle
 
Personal signature

加油!在电子行业默默贡献自己的力量!:)

 

7422

Posts

2

Resources
3
 

Many manuals are very confusing. If you don't read carefully, you can't see the details at all, and even if you read carefully, you still can't understand them for a while.

This post is from stm32/stm8

Comments

Haha, yes  Details Published on 2020-11-25 10:42
 
Personal signature

默认摸鱼,再摸鱼。2022、9、28

 

411

Posts

9

Resources
4
 
freebsder posted on 2020-11-24 13:12 Many manuals are very confusing. If you don't read carefully, you won't see the details at all. If you read carefully, you won't understand them for a while.

Haha, yes

This post is from stm32/stm8
 
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list