Hi,
ich habe ein Problem ich bekomme es nicht hin, das mein Controller auf meinen Taster reagiert.
Ich habe den Taster von PB6(XTAL1) auf GND gelegt. Als Programm habe ich:
Die Led die an Portb.1 höngt blinkt schnell. Also scheint der Portb.6 ja auf Low zu stehen.Code:$regfile = "m8def.dat"
$baud = 19200
$framesize = 32
$swstack = 32
$hwstack = 32
$crystal = 4000000
Config Portb.6 = Input
Config Portb.1 = Output
Do
If Portb.6 = 1 Then
Portb.1 = 1
Waitms 600
Portb.1 = 0
Waitms 600
Else
Portb.1 = 1
Waitms 100
Portb.1 = 0
Waitms 100
End If
Loop
End
Habt ihr evtl ne Idee warum ich keine Reaktion auf einen Tastendruck bekomme?
Danke
MFG Daniel