4019 views|23 replies

3222

Posts

0

Resources
The OP
 

Can the microcontroller detect negative values if it is powered by a single power supply? [Copy link]

 

Can the microcontroller detect negative values if it is powered by a single power supply?


单片机是单电源供电 能检测负值?.png (239.48 KB, downloads: 0)

单片机是单电源供电  能检测负值?.png
This post is from Test/Measurement

Latest reply

Assumption: If the minus sign in front of -VCD is an error in the document, then VCD is a positive value, for example: 1.4mv (typical value, CHS[1:0] = 00). When the battery is fully charged, the voltage drop across the sampling resistor tends to 0V, then VRS2-VRS1=0V <= 1.4mV is always true, so the battery cannot exit the charging state after being fully charged.   Details Published on 2021-1-21 11:31
 
 

1w

Posts

25

Resources
2
 

It should be a documentation error

This post is from Test/Measurement

Comments

How to say Moderator  Details Published on 2021-1-15 16:36
 
 
 

3222

Posts

0

Resources
3
 
dcexpert posted on 2021-1-15 16:24 It should be a document error

How to say Moderator

This post is from Test/Measurement

Comments

Ordinary circuits cannot detect negative pressure, and general single-chip microcomputers will not add complex circuits to detect negative pressure for cost reasons.  Details Published on 2021-1-15 21:38
 
 
 

1942

Posts

2

Resources
4
 

I feel that most single-chip microcomputers do not have the function of detecting negative values, and basically require an external chip.

This post is from Test/Measurement
 
 
 

1w

Posts

25

Resources
5
 

Ordinary circuits cannot detect negative pressure, and general single-chip microcomputers will not add complex circuits to detect negative pressure for cost reasons.

This post is from Test/Measurement

Comments

Is the documentation wrong?  Details Published on 2021-1-19 09:03
 
 
 

3222

Posts

0

Resources
6
 
dcexpert published on 2021-1-15 21:38 Ordinary circuits cannot detect negative pressure. Generally, single-chip microcomputers will not add complex circuits to detect negative pressure for the sake of cost.

Is the documentation wrong?

This post is from Test/Measurement

Comments

I guess there is an extra minus sign.  Details Published on 2021-1-19 11:12
 
 
 

1w

Posts

25

Resources
7
 
QWE4562009 posted on 2021-1-19 09:03 So the document is wrong?

I guess there is an extra minus sign.

This post is from Test/Measurement
 
 
 

216

Posts

0

Resources
8
 
The charging current and discharging current have opposite circuits.
This post is from Test/Measurement

Comments

Do you know the process of negative pressure treatment? For example, how is the reverse stall current -10A completed AD conversion and then sampling?  Details Published on 2021-1-19 15:49
 
 
 

3222

Posts

0

Resources
9
 
LuJianchang published on 2021-1-19 14:25 The charging current and discharging current loops are exactly opposite

Do you know the process of negative pressure treatment? For example, the reverse stall current is -10A and the sampling resistance is 0.001 ohm. How is the sampling and AD conversion completed?

This post is from Test/Measurement

Comments

First, the differential is amplified 300 times to get a voltage of about 3V, and then converted through the MCU ADC.  Details Published on 2021-1-19 16:59
 
 
 

216

Posts

0

Resources
10
 
QWE4562009 posted on 2021-1-19 15:49 LuJianchang posted on 2021-1-19 14:25 The circuits of charging current and discharging current are just opposite. Do you know the process of negative pressure treatment? ...

First, the differential is amplified 300 times to get a voltage of about 3V, and then converted through the MCU ADC.

This post is from Test/Measurement

Comments

If one end of the sampling resistor is grounded, an inverting amplifier can be used to amplify it.  Details Published on 2021-1-19 17:01
 
 
 

216

Posts

0

Resources
11
 
LuJianchang published on 2021-1-19 16:59 First, the differential is amplified by 300 times to get a voltage of about 3V, and then converted by MCU ADC.

If one end of the sampling resistor is grounded, an inverting amplifier can be used to amplify it.

This post is from Test/Measurement

Comments

The sampling resistor is not grounded. One RS1 and one RS2 are connected to the SH36730X chip in a differential form.  Details Published on 2021-1-20 11:55
 
 
 

3138

Posts

0

Resources
12
 

1. From this information, it cannot be seen that VCD must be positive, that is, "-VCD" must be negative;

2. If you really want to measure negative values, it is not impossible to do so. You can use the built-in inverting op amp as the input.

This post is from Test/Measurement
 
 
 

3222

Posts

0

Resources
13
 
LuJianchang published on 2021-1-19 16:59 First, the differential is amplified by 300 times to get a voltage of about 3V, and then converted by MCU ADC.

http://www.szssyx.com/plan2-13-9.html

This is the chip specification. I don't see any differential circuit inside. If it is as stated in the specification, it can detect negative pressure.

This post is from Test/Measurement
 
 
 

3222

Posts

0

Resources
14
 
LuJianchang published on 2021-1-19 17:01 If one end of the sampling resistor is grounded, an inverting amplifier can be used to amplify it.

The sampling resistor is not grounded. One RS1 and one RS2 are connected to the SH36730X chip in a differential form.

This post is from Test/Measurement

Comments

[attachimg]522094[/attachimg]This is the direction of the charging current. At this time, VRS2-VRS1 is a negative value. In addition, one end of the sampling resistor is connected to the negative end of the battery pack, which is the reference ground of this circuit.  Details Published on 2021-1-20 13:53
 
 
 

3222

Posts

0

Resources
15
 
Xianmao published on 2021-1-19 17:30 1. From this information, it cannot be seen that VCD must be a positive value, that is, "-VCD" must be a negative value; 2. If you really want to measure negative values, it is not impossible to do it, ...

http://www.szssyx.com/plan2-13-9.html Don't know about negative values with signs? This is a specific number, not a vector. In addition to indicating the direction, it also indicates positive and negative.

This post is from Test/Measurement
 
 
 

40

Posts

0

Resources
16
 
Differential signal input can be used to detect the AD value between the negative voltage and the ground, and the negative voltage can be calculated.
This post is from Test/Measurement
 
 
 

216

Posts

0

Resources
17
 
QWE4562009 Published on 2021-1-20 11:55 The sampling resistor is not grounded. One RS1 and one RS2 are differentially connected to the chip SH36730X

This is the direction of the charging current. At this time, VRS2-VRS1 is a negative value. In addition, one end of the sampling resistor is connected to the negative end of the battery pack, which is the reference ground of this circuit.

This post is from Test/Measurement

Comments

[attachimg]522095[/attachimg]This is the discharge current direction, at this time VRS2-VRS1 is positive.  Details Published on 2021-1-20 13:57
 
 
 

216

Posts

0

Resources
18
 
LuJianchang published on 2021-1-20 13:53 This is the direction of the charging current. At this time, VRS2-VRS1 is a negative value. In addition, one end of the sampling resistor is connected to the negative end of the battery pack, which is the reference ground of this circuit...

This is the discharge current direction, at this time VRS2-VRS1 is positive.

This post is from Test/Measurement

Comments

[attachimg]522098[/attachimg] -VCD should be the charging status detection voltage  Details Published on 2021-1-20 14:03
 
 
 

216

Posts

0

Resources
19
 
LuJianchang posted on 2021-1-20 13:57 This is the direction of the discharge current. At this time, VRS2-VRS1 is positive.

-VCD should be the charging status detection voltage

This post is from Test/Measurement

Comments

When charging, it is still negative.  Details Published on 2021-1-21 11:04
 
 
 

3222

Posts

0

Resources
20
 
LuJianchang posted on 2021-1-20 14:03 -VCD should be the charging status detection voltage

When charging, it is still negative.

This post is from Test/Measurement

Comments

The negative sign in front of -VCD should indicate the direction of the charging current.  Details Published on 2021-1-21 11:14
 
 
 

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