Hallo,
warum geht folgender Code nicht?
Code:
$regfile = "m8def.dat"
$crystal = 1000000
$baud = 1200
Enable Interrupts

Config Adc = Single , Prescaler = Auto

Start Adc

Dim Count As Integer , X As Integer , Y As Single , Z As Integer
Do
X = Getadc(5)
Y = 2700 *(5 / 1024 * X) /(5 -(5 / 1024 * X))
Print Y
Wait 1
Loop
End
Ich bekomme dann folgende Fehlermeldung:
Source variable does not match the target variable[0]

Hoffe ihr könnt mir helfen
Gruß
Spurius