User manual
32/48 myEthernet Technische Beschreibung / technical description
www.myAVR.de © Laser & Co. Solutions GmbH – 06/2009 www.myAVR.com
5.3 Pin-Funktionen
Die Pins 0 bis 23 sind einzeln programierbare, extern
herausgeführte Leitungen. Neben den Pins 0 bis 23 bietet
das myEthernet noch die virtuelle oder auch
pinübergreifende Funktion. Dabei werden mehrere Pins
als Gruppe genutzt oder für ausgewählte Zusatzgeräte,
z. B. TWI, bereitgestellt.
5.3.1 Digitale Ein-/Ausgabe (Pin 0…23)
Jede herausgeführte Leitung kann als Ein- oder Ausgang
verwendet werden.
• Pins:
0…23
• Konfigurationsoptionen:
0x01 = digital out
0x02 = digital in
0x102= digital in mit pullup
• Abfrage / Darstellung auf HTML-Seite:
°v<pinNr>° = Zustand als Ziffer 0
oder 1
Beispiele:
• Konfiguration von Pin 3 auf „digital out“:
http://192.168.20.98/?myConfigCmd=
°
c3~0x01°
• Konfiguration von Pin 4 auf „digital in“:
http://192.168.20.98/?myConfigCmd=
°
c4~0x02°
• Konfiguration von Pin 5 und 6 auf „digital in mit
pullup“:
http://192.168.20.98/?myConfigCmd=
°
c5~0x102°c6~0x102°
• Darstellen der Pins 3 bis 6:
Meine Pins = °v3°,°v4°,°v5°,°v6°
5.3 Pin functions
The pins 0 till 23 are external pilotages which are lead out
and programmable individually. In addition to the pins 0 to
23 the myEthernet offers also the virtual or across pin
function. Thereby several pins will be used as a group or
were provided for selected accessory units e.g. TWI.
5.3.1 Digital input / output (pin 0…23)
Every pilotage which is lead out can be used as input or
output.
• Pins:
0…23
• Configuration options:
0x01 = digital out
0x02 = digital in
0x102= digital in mit pullup
• Query / presentation on a html-file:
°v<pinNr>° = Zustand als Ziffer 0 oder
1
Examples:
• Configuration from pin 3 to „digital out“:
http://192.168.20.98/?myConfigCmd=
°
c3~0x01°
• Configuration from pin 4 to „digital in“:
http://192.168.20.98/?myConfigCmd=
°
c4~0x02°
• Configuration from pin 5 and 6 to „digital in with
pullup“:
http://192.168.20.98/?myConfigCmd=
°
c5~0x102°c6~0x102°
• Present the pins 3 till 6:
my pins = °v3°,°v4°,°v5°,°v6°
5.3.2 Analoge Eingänge
Pin (0...3 und 12...15)
Das myEthernet verfügt über 8 Pins, die als analoge
Eingänge verwendet werden können.
• Pins:
0…3 und 12…15
• Konfigurationsoptionen:
0x04 = analog input
• Abfrage/Darstellung auf HTML-Seite:
°v<pinNr>° = gemessener Wert 0…1023
Die Analog-Digital-Wandlung erfolgt mit einer Auflösung
von 10 Bit Genauigkeit im Messbereich von 0 bis 5 Volt.
Beispiele:
• Konfiguration von Pin 12 auf „analog input“:
http://192.168.20.98/?myConfigCmd=
°
c12~0x04°
• Darstellen des Messwertes an Pin12:
gemessen = °v12°
5.3.2 Analogue inputs
Pin (0…3 und 12…15)
The myEthernet has 8 pins which can be used as
analogue inputs.
• Pins:
0…3 and 12…15
• Configuration options:
0x04 = analogue input
• Query / presentation on a html file:
°v<pinNr>° = measured value 0…1023
The analogue-digital-conversion happens with a resolution
of 10 bit exactness in the measurement range from 0 to 5
volt.
Examples:
• Configuration from pin 12 to „analogue input“:
http://192.168.20.98/?myConfigCmd=
°
c12~0x04°
• Presentation of the measurand on pin12:
measured = °v12°