2023-04-03 3:39 AM
2023-04-03 4:05 AM
2023-04-03 5:16 AM
I'm reading a 0-20 mA signal discharged on a 170 ohm resistance, so i get the 0-3.3V range values.
2023-04-03 5:36 AM
You wrote that the pin is floating. Then it has a 170ohm resistor to ground. So how is it really?
2023-04-03 5:52 AM
When I disconnect the pin fom the resistor i get the voltage i mentioned.
The application want's the pin to be connected like in my reply.
2023-04-03 6:41 AM
>When I disconnect the pin fom the resistor i get the voltage i mentioned.
ok, i explained, why this happens.
floating cmos input gives floating value.
so you know now.
right?
2023-04-03 6:56 AM
ok... so far so good.
The problem is : from the 0-20 mA pin i get 0 when the value read from the temp sens is zero, with the ADC pin disconnected, but with the resistance on. Working properly then
When connecting the ADC input pin... the value of the 0 corresponds to a 1.3 V like constant signal. not to the 0 volt.
When i ground the ADC input pin. i get 0 as expected.
So the problem is on the ADC pin i assume.
2023-04-03 7:27 AM
so: adc input with 170 r to gnd . gives 1,3V at 170 r ? (test without adc running !)
this is > 7 mA coming from...? if this current is coming from adc pin, chip is defective or just this pin , so last chance: try other adc pin .
and when adc running (which sample rate ? ) voltage at 170 r ?
2023-04-03 8:18 AM
Maybe the ADC sampling cap is not reset (grounded) between channels.
Don't keep an analog pin floating, you can still apply a pull-up or pull-down when inactive.
2023-04-03 9:10 AM
You mean the other channels/pins of the adc to pulldown?
Not the one i'm reading values with right?