The next command writes to the data direction register of port B.
To use pin PC5 as output you need to set the PC5 bit in the data direction register for port C (DDRC).
The microcontroller has a data direction register (DDR) by setting a bit in that register to one we configure the corresponding pin as output.
Internet search shows that the open collector behaviour can be emulated with standard AVR pins. The port is set to LOW and the output (LOW or HIGH) is controlled by the DDRx data direction register. For example PORTD and Pin PD4
Eine Suche im Internet ergibt, dass man scheinbar die Open-Collector-Schaltung simulieren kann, indem man auf den Pin ein LOW schreibt und dann mittels des DDRx-Registers den Pin umschaltet. Die Idee bedeutet im einzelnen(am Beispiel PORTD und Pin PD4)
Andere resultaten
In the second example variables are not used, setting LED output and lighting it will be done by changing port B data direction and output registers values.
Im zweiten Beispiel werden keine Variablen genutzt. Um die LED als Output zu markieren und zum Leuchten zu bringen, werden die Datenrichtung des Port B und die Output Registerwerte verändert.
Therefore, some means of arbitrating the data direction is required.
Folglich ist für die Daten eine Richtungszuordnung notwendig.
Depending on the data direction colored data events increase the readability and assignment.
Abhängig von der Datenrichtung farbig abgesetzte Datenereignisse erleichtern die Lesbarkeit und Zuordnung.
However, there are in the data direction of the variables made a significant difference.
Einen wesentlichen Unterschied gibt es allerdings bei der Datenrichtung der Variablen.
In the late afternoon we follow the GPS data direction to Kees and Els.
This parameter is only evaluated for data direction option 6.
After a given number of cycles, the direction of data flow in the storage shift register is reversed.
Nach einer vorgegebenen Anzahl von Takten wird im Speicherschieberegister die Richtung des Datenflusses umgekehrt.
With 100BaseT4, three pairs are always used simultaneously in each data direction.
Für jede Datenrichtung werden bei 100BaseT4 immer 3 Paare gleichzeitig verwendet.
Before the actual sending of user data, this controller must first address the desired terminal defice as a talker or listener, depending on the required data direction.