6702 views|37 replies
littleshrimp
Currently offline
|
The OP
Published on 2019-9-3 17:19
Only look at the author
This post is from MEMS sensors
Latest reply | |
Personal signature虾扯蛋,蛋扯虾,虾扯蛋扯虾
|
||
2
Published on 2019-9-3 17:32
Only look at the author
| |
|
|
|
3
Published on 2019-9-3 18:06
Only look at the author
This post is from MEMS sensors
Comments
Is it a standard library for stm32f103?
Details
Published on 2019-9-3 19:17
| ||
|
||
|
littleshrimp
Currently offline
|
This post is from MEMS sensors
| |
|
||
|
5
Published on 2019-9-4 08:41
Only look at the author
This post is from MEMS sensors
Comments
It is not much different from the code in this website. Just turn on i2c and uart in your project, and then put the files in the lps33hw_STdC folder into the project. Replace the corresponding functions in tx_com, platform_read, and platform_write in the read_data_simple.c file with the corresponding uart and
Details
Published on 2019-9-4 15:14
| ||
|
||
|
littleshrimp
Currently offline
|
This post is from MEMS sensors
| |
Personal signature虾扯蛋,蛋扯虾,虾扯蛋扯虾
|
||
|
7
Published on 2019-9-5 15:05
Only look at the author
This post is from MEMS sensors
Comments
Use an oscilloscope to check if the timing of CS, SCLK, and MOSI is normal. If it is normal, read who am i to see if there is any returned data.
Details
Published on 2019-9-5 15:46
| ||
|
||
|
littleshrimp
Currently offline
|
This post is from MEMS sensors
| |
Personal signature虾扯蛋,蛋扯虾,虾扯蛋扯虾
|
||
|
9
Published on 2019-9-5 15:58
Only look at the author
This post is from MEMS sensors
Comments
According to your timing, it should be writing CTRL_REG2 register to read who am i executing platform_read function, the register address is 0x0f
Details
Published on 2019-9-5 16:14
| ||
|
||
|
littleshrimp
Currently offline
|
This post is from MEMS sensors
| |
Personal signature虾扯蛋,蛋扯虾,虾扯蛋扯虾
|
||
|
11
Published on 2019-9-5 18:26
Only look at the author
This post is from MEMS sensors
Comments
Let's take a look at the waveform of who am i.
Details
Published on 2019-9-5 18:35
| ||
|
||
|
littleshrimp
Currently offline
|
This post is from MEMS sensors
| |
|
||
|
13
Published on 2019-9-6 09:37
Only look at the author
This post is from MEMS sensors
Comments
They are all similar. I2C is more convenient. Look at your timing of 2 wires. Are the mosi and miso marked wrong? The data sent without controlling the CS signal does not look like 0x0f
Details
Published on 2019-9-6 11:39
| ||
|
||
|
littleshrimp
Currently offline
|
This post is from MEMS sensors
| |
Personal signature虾扯蛋,蛋扯虾,虾扯蛋扯虾
|
||
|
15
Published on 2019-9-6 16:25
Only look at the author
This post is from MEMS sensors
Comments
Please send me the test project and hardware connection and I will show it to you.
Details
Published on 2019-9-6 16:38
| ||
|
||
|
littleshrimp
Currently offline
|
This post is from MEMS sensors
| |
|
||
|
17
Published on 2019-9-6 19:14
Only look at the author
This post is from MEMS sensors
Comments
" SPI: PB4-PB7 pins are used, now IIC connection is used: PB6 and PB7. I would like to ask how to change P1619 tx_com in lps_reg.c, so that data can be printed on the serial port. How to write Mian function to read and print data continuously? https://wenku.baidu
Details
Published on 2019-9-7 09:26
| ||
|
||
|
littleshrimp
Currently offline
|
This post is from MEMS sensors
| |
Personal signature虾扯蛋,蛋扯虾,虾扯蛋扯虾
|
||
|
19
Published on 2019-9-7 13:04
Only look at the author
| |
|
|
|
20
Published on 2019-9-9 14:32
Only look at the author
This post is from MEMS sensors
Comments
INT_DRDY is a digital output pin, connected to the data input of the microcontroller. The level of this pin will change when an interrupt occurs or the data is ready. The SPI is stuck there because the read who am i does not correspond to the device. In most cases, it is because of communication errors and no data is read.
Details
Published on 2019-9-9 15:10
| ||
|
||
|
EEWorld Datasheet Technical Support
EEWorld
subscription
account
EEWorld
service
account
Automotive
development
circle
About Us Customer Service Contact Information Datasheet Sitemap LatestNews
Room 1530, Zhongguancun MOOC Times Building, Block B, 18 Zhongguancun Street, Haidian District, Beijing 100190, China Tel:(010)82350740 Postcode:100190