Hi,

poste mal deinen Code, ich hab das bei mir so gemacht:

Code:
Const Ref = 5 / 1023
Dim Volt As Single
Const A = 27
Const B = 0.05
Dim D As Single
Dim Z As Single

Config Adc = Single , Prescaler = Auto
Config Porta.2 = Input


      Start Adc
      W = Getadc(2)
      Volt = W * Ref

      Z = Volt - B
      D = A / Z
Viele Grüße