Zitat Zitat von Anam52 Beitrag anzeigen
Danke! Das ist der Fehler. Toggle Pind.1 ändert nicht den Ausgang ...
Hmmmmm, grübelgrübel, seltsam - wenn der Bascom-Compiler so reagiert. Laut Datenblatt wird nämlich ein Pin getoggelt, wenn eine logische 1 ins PIN-Register geschrieben wird. Ein Effekt, der sicher nicht ohne Absicht von den Hardcore-Programmierern eingebaut wurde.

Zitat Zitat von Atmel-Dokumentation 8272D–AVR–05/12 auf S. 72 unten
... 14. I/O-Ports
14.1 Overview
... writing a logic one to a bit in the PINx Register, will result in a toggle in the corresponding bit in the Data Register ...
14.2.2 Toggling the pin
Writing a logic one to PINxn toggles the value of PORTxn, independent on the value of DDRxn. Note that the SBI instruction can be used to toggle one single bit in a port.