3935 views|4 replies

9707

Posts

24

Resources
The OP
 

LSM6DSL msp430 driver and debugging process [Copy link]

 , sans-serif]
sans-serif]Using an oscilloscope to view the waveform, I found that the register address written after sending the device address was not pulled up. I began to suspect that the pull-up resistor had poor contact. Configuring an internal pull-up in the microcontroller did not solve the problem.
Failed to write address
Later, I thought that it was probably because the LSM6DSL always output 0 and the external pull-up resistor of the MCU failed to pull it up.
I checked the device address sent, and the last bit was 1, which is the read address. The LSM6DSL will become the output mode, and of course the 0x0F of the who am i address cannot be written in.
I looked at the address in the driver and found that 0xD5 corresponds to the read address, but the code in the MSP430 only changes the write code to read (the last position is 1) but does not change the read address to write (the last position is 0)
The problem was later solved by changing the address to 0xD4
Write address successfully
Read data successfully
2.msp430fr5969 soft i2c lsm6dsl.rar (1.4 MB, downloads: 104)

This post is from MEMS sensors

Latest reply

Thanks for sharing!!!   Details Published on 2020-6-28 09:58
Personal signature虾扯蛋,蛋扯虾,虾扯蛋扯虾
 
 

821

Posts

0

Resources
2
 
Really useful information, I’ve learned a lot.
This post is from MEMS sensors
 
 
 

4

Posts

0

Resources
3
 
good
This post is from MEMS sensors
 
 
 

12

Posts

0

Resources
4
 
The zero drift of the angular velocity reading is quite small, which is not easy.
This post is from MEMS sensors
 
 
 

4

Posts

0

Resources
5
 

Thanks for sharing!!!

This post is from MEMS sensors
 
 
 

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