ich habe ein Atmega 16 und versuche die I/O`S pc2, pc3,pc4 und pc5
zu benutzen. Geht aber nicht. Hat das was mit den Funktionen von den I/O
zu tun (tck, Tms, tdo, tdi) oder liegt das nur an mir.
Hier mal das Progie:
bei " Portc.2 = 1 " fleißt zwar strom aber dei Diode geht nit an.
Code:$regfile = "m16def.dat" $crystal = 1000000 $baud = 4800 Config Portc.2 = Output Config Pinc.5 = Input Config Pinc.4 = Input Config Pinc.3 = Input Portc.5 = 1 Portc.4 = 1 Portc.3 = 1 Do Portc.2 = 1 If Pinc.5 = 1 Then Print "1" End If If Pinc.4 = 1 Then Print "2" end if If Pinc.5 = 1 Then Print "3" End If Loop End
Lesezeichen