User manual

myEthernet Technische Beschreibung / technical description 33/48
www.myAVR.de © Laser & Co. Solutions GmbH – 06/2009 www.myAVR.com
5.3.3 Temperatursensor LM75
(Pin 200...207)
Direkter Anschluss von bis zu 8 TWI-Temperatur-
Sensoren (LM75) an das myEthernet.
Virtuelle Pins:
200…207 TWI0…TWI7 Temperatursensoren
an Pin16/17
Konfigurationsoptionen:
0x10 = twi
Abfrage / Darstellung auf HTML-Seite:
°v<pinNr>° = Temperatur in halben
Gradschritten
°v<pinNr>~lm75° = Temperatur als
Dezimalzahl mit Kommastelle
Bei der Konfiguration der virtuellen Pins 200 bis 207
werden die Pins 16 und 17 auf „twi“ konfiguriert. Die 8
möglichen Pins entsprechen den 8 Adressen, die auf
dem myTWI Temperatursensor per Jumper einstellbar
sind.
Beispiele:
Konfiguration von Pin 200 auf „twi“:
http://192.168.20.98/?myConfigCmd=
°
c200~0x10°
Darstellen der Temperatur in ½ -Grad-Basis zurück,
z. B. 21 für 10,5 Grad:
Halbe Grade = °v200°
Darstellen der Temperatur als Text, z.B. 10,5°:
Temperatur = °v200~lm75°
&deg;
Beachten Sie, dass das Gradzeichen nicht im HTML-
Quelltext verwendet werden darf!
5.3.3 Temperature sensor LM75
(pin 200…207)
Direct connection of up to 8 TWI temperature sensors
(LM75) on the myEthernet.
Virtual pins:
200…207 TWI0…TWI7 temperature sensors
on Pin16/17
Configuration options:
0x10 = twi
Query / presentation on a html-file:
°v<pinNr>° = temperature in half
degree steps
°v<pinNr>~lm75° = temperature as
decimal number with decimal place
The pins 16 and 17 will be configurated to “twi” by the
configuration of the virtual pins 200 till 207. The 8 possible
pins are consistent with the 8 addresses which are
adjustable on the myTWI temperature sensor via jumper.
Examples:
Configuration of pin 200 to “twi”:
http://192.168.20.98/?myConfigCmd=
°
c200~0x10°
Present the temperature back on the base of ½
degree, e.g. 21 for 10,5 degree:
Half degrees = °v200°
Present the temperature as text:
Temperature = °v200~lm75°
&deg;
Please pay attention that you must not use the degree
character in the html source code!
5.3.4 Byteweise Ein- / Ausgabe
(Pin 210, 211)
PortA und PortB sind jeweils eine Gruppe von 8 Pins, die
für die Ein- / Ausgabe von einem Byte notwendig sind.
Dabei werden alle Pins auf digital umgestellt und können
so mit einem Kommando geregelt werden. Dies ermög-
licht z. B. die Steuerung einer Ziffern-LED oder 8-fachen
LED-Leiste.
Virtuelle Pins:
210 PortA Byteweise Ein-/Ausgabe
Pin0…3/12…15
211 PortB Byteweise Ein-/Ausgabe
Pin4…11
Konfigurationsoptionen:
0x40 = ByteOut
0x20 = ByteIn
0x120 = ByteIn mit PullUp
Abfrage / Darstellung auf HTML-Seite:
°v<pinNr>° = Eingelesener bzw.
zuletzt ausgegebener Wert als
Dezimalzahl
5.3.4 Input / Output byte-by-byte
(pin 210, 211)
PortA and PortB are each a group of 8 pins which are nec-
essary for the input / output of one byte. Thereby all pins
will be converted to digital and can so regulate with a
command. This enables e.g. a control of a numerics-LED
or 8x LED-line.
Virtual pins:
210 PortA input / output byte-by-byte
Pin0…3/12…15
211 PortB input / output byte-by-byte
Pin4…11
Configuration options:
0x40 = ByteOut
0x20 = ByteIn
0x120 = ByteIn with PullUp
Query / presentation on a html-file:
°v<pinNr>° = value which is read or
readout at last as decimal number