9526 views|13 replies

1368

Posts

6

Resources
The OP
 

The 74HC595 output high level is only half of the supply voltage [Copy link]

 
Background of the problem: I was bored and made a little gadget, but the MCU did not have enough IO ports, so I added a serial expansion IC: 74HC595A. Description of the problem: 1) The system power supply voltage is 3.3V, and the power supply voltage of 74HC595A is also 3.3V 2) 74HC595 has been checked and there is no cold soldering 3) Theoretically there is no problem with the driver 4) When the output is set to high, 74HC595A only outputs 1.65V, which is half of the power supply voltage? 5) Whether setting one port to output high or all 8 ports to output high, the output is only 1.65V 6) The drive voltage following 74HC595A has been disconnected, and the measured voltage is the voltage on the output pin of 74HC595A 7) As I understand it, the output high level should be the same as the system power supply voltage, which is 3.3V. But how does the output only reach 1.65V? Dear experts, have you ever encountered a similar situation? What is the main reason? I would like to ask for your advice. I have been confused for a whole day yesterday. I have tried several methods but none of them worked. I mainly tried the following methods: 1) I thought there was a problem with the driver code at first, but I checked it again and again and there was no problem. I carefully looked at the timing diagram and there was no problem either. Moreover, 74HC595A has high and low level theories, but the high level voltage is wrong 2) Checked the hardware voltage and carefully checked the three driver ports, data, clock, and lock signals. There was no problem connecting to the MCU, and the IO port settings were correct 3) Checked if there was any cold soldering 4) I changed an IC, but the problem persisted 5) I changed an MCU, but the problem persisted 6) I am going crazy and don’t know where to start…


This post is from DIY/Open Source Hardware

Latest reply

This post was last edited by bobde163 on 2018-8-21 08:35You can't use breakpoint simulation. You should measure the data input pin when the program is running normally. If the data input pin is really outputting square waves, the voltage measured by the multimeter will definitely be less than 3.3V. Or when simulating with breakpoints, after sending data to 595, pause the breakpoint and measure whether the output pin of 595 is 3.3V.   Details Published on 2018-8-21 08:33
Personal signature专注智能产品的研究与开发,专注于电子电路的生产与制造……QQ:2912615383,电子爱好者群: void
 

1w

Posts

25

Resources
2
 
I think it's either a problem with the 595 or a problem with the power supply.
This post is from DIY/Open Source Hardware

Comments

1) The power supply is a desktop power supply, which uses the 3.3V step-down output of LM1117. The system power consumption is relatively low, so there should be no problem with the power supply. 2) I don’t know if there is a problem with 74HC595, but I replaced it and the same problem still exists. Is it a batch problem?  Details Published on 2018-8-20 09:18
 
 

1368

Posts

6

Resources
3
 
dcexpert posted on 2018-8-20 09:14 I think it is either a problem with 595 or a problem with the power supply.
1) The power supply is a desktop power supply, using the 3.3V output of LM1117 step-down. The system power consumption is relatively low, so there should be no problem with the power supply. 2) I don't know if there is a problem with 74HC595, but I changed one and it's still the same. Is it a batch problem?
This post is from DIY/Open Source Hardware
Personal signature专注智能产品的研究与开发,专注于电子电路的生产与制造……QQ:2912615383,电子爱好者群: void
 
 
 

1w

Posts

25

Resources
4
 
After the basic problems are eliminated, it is difficult to analyze. You may need to find an oscilloscope to look at the waveforms of the power supply and input and output. The output voltage is exactly half, so will there be self-excitation?
This post is from DIY/Open Source Hardware
 
 
 

9

Posts

0

Resources
5
 
It is recommended to use a logic analyzer to capture the timing of the input signal, Enable, Reset, shift clock and latch clock.
This post is from DIY/Open Source Hardware

Comments

OE - directly connected to GND RESET - directly connected to VCC DATA - output high bit shift clock first - transfer 1BIT to a clock latch clock - given after 8BIT data is transmitted  Details Published on 2018-8-20 09:44
Personal signatureI'am crazy! I just do what I should do!!!
 
 
 

1972

Posts

0

Resources
6
 
This post was last edited by bobde163 on 2018-8-20 09:46 It is best to use an oscilloscope to look at the waveform. If you are continuously inputting square waves with a duty cycle of 50%, the voltage measured with a multimeter will be half the voltage. I guess there is something wrong with your program. If you don’t have an oscilloscope, you can also use a multimeter to measure whether the signal output by the microcontroller is also less than 3.3V. If so, then it can be determined that the problem is with your microcontroller.
This post is from DIY/Open Source Hardware

Comments

1) I don't have an oscilloscope. 2) When simulating at breakpoints, the voltage levels of the clock and data input pins are 3.3V. 3) The output is incorrect.  Details Published on 2018-8-20 09:55
 
 
 

1368

Posts

6

Resources
7
 
IC90 posted on 2018-8-20 09:39 It is recommended to use a logic analyzer to capture the timing of the input signal, Enable, Reset, shift clock and latch clock.
OE - directly connected to GND RESET - directly connected to VCC DATA - output high-bit shift clock first - transfer 1BIT to a clock latch clock - after transferring 8BIT data
This post is from DIY/Open Source Hardware
Personal signature专注智能产品的研究与开发,专注于电子电路的生产与制造……QQ:2912615383,电子爱好者群: void
 
 
 

1368

Posts

6

Resources
8
 
bobde163 posted on 2018-8-20 09:43 It is best to use an oscilloscope to look at the waveform. If you are continuously inputting square waves with a duty cycle of 50%, the voltage measured with a multimeter will be half the voltage, ...
1) I don't have an oscilloscope. 2) During breakpoint simulation, the voltage levels of the clock and data input pins are 3.3V without any problems. 3) The output is incorrect
This post is from DIY/Open Source Hardware

Comments

You can't use breakpoint simulation. You should measure the data input pin when the program is running normally. If the data input pin is really outputting square waves, the voltage measured by the multimeter will definitely be less than 3.3V.  Details Published on 2018-8-21 08:33
Personal signature专注智能产品的研究与开发,专注于电子电路的生产与制造……QQ:2912615383,电子爱好者群: void
 
 
 

1368

Posts

6

Resources
9
 
This post was last edited by Lazy Cat Love Flying on 2018-8-20 10:56 Well, if this document is correct, I think I know the reason. If it is not correct, I have to continue to look for other reasons. Because I have never used this IC before, I looked at the data sheet of On Semiconductor, and did not find similar keywords in the manual. And my circuit is connected to an NMOS. Because the NMOS has not been turned on, I removed it and measured the pins directly, which caused the above problem. Well, if you often walk by the river, you will finally get your shoes wet. Finally, thank you all for your enthusiastic help! In addition, existence is reasonable, and what you see is not necessarily the most real. You must see the essence through the phenomenon^_^ Regarding this document on Baidu, I will continue to test and verify it when I go back...




This post is from DIY/Open Source Hardware

Comments

I haven't heard of a 74HC595 with open-drain output.  Details Published on 2018-8-20 10:47
I haven't heard of a 74HC595 with open-drain output.  Details Published on 2018-8-20 10:40
Personal signature专注智能产品的研究与开发,专注于电子电路的生产与制造……QQ:2912615383,电子爱好者群: void
 
 
 

1w

Posts

25

Resources
10
 
Lazy Cat Loves Flying posted on 2018-8-20 10:32 Ok, I think I know the reason because I have never used this IC before, and then I looked at the data sheet of On Semiconductor, and there is no...
I have never heard that 74HC595 has an open-drain output model.
This post is from DIY/Open Source Hardware

Comments

I did not find similar keywords in the manual, and I have reservations about the correctness of the documents uploaded online.  Details Published on 2018-8-20 10:57
 
 
 

1w

Posts

142

Resources
11
 
Lazy Cat Loves Flying published on 2018-8-20 10:32 Well, I think I know the reason. I haven't used this IC before, so I looked at the data sheet of On Semiconductor. In the manual, there is no...
595 is not an open-drain output, but a conventional push-pull output. If it is an open-drain output, there is no external pull-up, and it can only measure a low level. Everything is subject to the device manual. Anything that contradicts the device manual and is not an errata sheet can only be said to be nonsense, especially in Chinese. The phenomenon you encountered must be due to improper use. It may be a hardware problem or a software problem, or even a problem with both.
This post is from DIY/Open Source Hardware

Comments

Okay, I understand. I will continue to measure it when I get home tonight.  Details Published on 2018-8-20 10:55
Personal signature上传了一些书籍资料,也许有你想要的:http://download.eeworld.com.cn/user/chunyang
 
 
 

1368

Posts

6

Resources
12
 
chunyang posted on 2018-8-20 10:47 595 is not an open-drain output, but a conventional push-pull output. If it is an open-drain output, without an external pull-up, it can only measure a low level. Everything depends on the device manual...
Well, I understand this. I will continue to measure it when I go back tonight.
This post is from DIY/Open Source Hardware
Personal signature专注智能产品的研究与开发,专注于电子电路的生产与制造……QQ:2912615383,电子爱好者群: void
 
 
 

1368

Posts

6

Resources
13
 
dcexpert posted on 2018-8-20 10:40 I have never heard of 74HC595 having an open-drain output model.
I did not find similar keywords in the manual, and I have reservations about the correctness of the documents uploaded online.
This post is from DIY/Open Source Hardware
Personal signature专注智能产品的研究与开发,专注于电子电路的生产与制造……QQ:2912615383,电子爱好者群: void
 
 
 

1972

Posts

0

Resources
14
 
This post was last edited by bobde163 on 2018-8-21 08:35
Lazy Cat Loves Flying posted on 2018-8-20 09:55 1) I don’t have an oscilloscope, 2) When simulating at breakpoints, the voltage levels of the clock and data input pins are 3.3V and there is no problem. 3) The output is incorrect
You can't use breakpoint simulation. You should measure the data input pin when the program is running normally. If the data input pin is really outputting square waves, the voltage measured by the multimeter will definitely be less than 3.3V. Or when simulating with breakpoints, after sending data to 595, pause the breakpoint and measure whether the output pin of 595 is 3.3V.
This post is from DIY/Open Source Hardware
 
 
 

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