6140 views|2 replies

13

Posts

0

Resources
The OP
 

How to use logic analyzer to debug SPI anomalies [Copy link]

As the title says, I recently used a logic analyzer (a pretty cheap one, but it doesn’t make sense that low-speed SPI would have problems, right?) to monitor the SPI communication between STM32F103C8T6 and NRF24L01. I used SPI2, but found that as long as any channel of the logic analyzer is clamped to SPI_CLK, the SPI will not run normally and will not pass the self-test (a prompt statement will be printed after the self-test is successful). Even
if the host computer is not running, it will not work if the connection line is shortened. As long as it is clamped, it will not pass the self-test, and other lines will not be affected. The SPI configuration rate is 256 divided by 140K, which is a rate of 140K. I beg you guys if you have a good solution, I don’t have a second logic analyzer~

(PS: The logic analyzer and the microcontroller share a common ground. Disconnecting the two grounds separately also results in a 0V voltage drop to the ground.)

200127bl7oonofof167a8r.png (26.72 KB, downloads: 0)

程序中判断语句

程序中判断语句

200129ajjksy0yjztlcjs2.png (1.07 MB, downloads: 0)

硬件连接实物

硬件连接实物
This post is from MCU

Latest reply

All ports of this logic analyzer have 100k pull-up resistors to 5V. When I use this logic analyzer, I often encounter interference signals that cause it to malfunction. Usually at this time I will use two 2N7002s to reverse the signal twice and then send it to the logic analyzer.   Details Published on 2019-6-26 19:24
 

1193

Posts

0

Resources
2
 

All ports of this logic analyzer have 100k pull-up resistors to 5V.

When I use this logic analyzer, I often encounter interference signals that cause it to malfunction.

Usually at this time I will use two 2N7002s to reverse the signal twice and then send it to the logic analyzer.

This post is from MCU

Comments

I have measured the pin level of the logic analyzer separately, it is 3.3V, not 5V  Details Published on 2019-6-27 14:45
 
 

13

Posts

0

Resources
3
 
qiushenghua posted on 2019-6-26 19:24 This logic analyzer has 100k pull-up resistors to 5V on all ports. When I use this logic analyzer, I often encounter interference signals that cause it to not work...

I have measured the pin level of the logic analyzer separately, it is 3.3V, not 5V

This post is from MCU
 
 
 

Guess Your Favourite
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