User manual

34/48 myEthernet Technische Beschreibung / technical description
www.myAVR.de © Laser & Co. Solutions GmbH – 06/2009 www.myAVR.com
Ein Beispiel für die Schaltung von 8 LEDs einer Leiste an
Port B. Es soll jede ungerade LED leuchten, beginnend bei
der ersten LED.
Konfiguration von Pin 211 auf „ByteOut“:
http://192.168.20.98/?myConfigCmd=
°
c211~0x40°
Ausgabe des Bytes „0x55“:
http://192.168.20.98/?myChangeCmd=
°
o211~0x55°
An example for the circuit of 8 LEDs of a bracket on
PortB. Every unequal LED should be glowing. Starting is
by the first LED.
Configuration of pin 211 to “ByteOut”:
http://192.168.20.98/?myConfigCmd=
°
c211~0x40°
Output of the byte “0x55”:
http://192.168.20.98/?myChangeCmd=
°o211~0x55°
Darstellen des zuletzt ausgegeben Wertes:
PORTB = °v211°
Beispiel für Byte-Eingabe an PortA:
Konfiguration von Pin 210 auf „ByteIn“:
http://192.168.20.98/?myConfigCmd=
°
c211~0x80°
Darstellen des Wertes von PortA:
PORTB = °v210°
5.3.5 SharedRAM (Pin 1000…3999)
Der SharedRAM ist ein Speicherbereich im RAM des
Mikrocontrollers, auf den sowohl über den Webserver als
auch über externe Schnittstellen (z. B. TWI) zugegriffen
werden kann.
Virtuelle Pins:
1000...=Daten byte-weise, ab Adresse 0
2000...=Daten word-weise, ab Adresse 0
(nicht Nr. des Word, sondern
Adresse im RAM)
3000...=Daten dword-
weise, ab Adresse 0
(nicht Nr. des DWord, sondern
Adresse im RAM)
Einträge in der config.cfg:
sharedRamSize=<ramGröße>
Mit diesem optionalem Parameter kann die
Größe des SharedRam festgelegt werden. Die
Standardgröße ist 128 Byte.
Abfrage / Darstellung auf HTML-Seite:
°v<pinNr>° = Eingelesener bzw. zuletzt
ausgegebener Wert
Beispiele:
Wert ändern / speichern:
myChangeCmd=°o1020~0x33°
Ersetzung / Auslesen für aktuellen Wert:
°v1020° = 20. Byte darstellen
Present the last output value
PORTB = °v211°
Example for the byte input on PortA:
Configuration of pin 210 on “ByteIn”
http://192.168.20.98/?myConfigCmd=
°
c211~0x80°
Present the value of PortA:
PORTB = °v210°
5.3.5 SharedRAM (pin 1000…3999)
The SharedRAM is a memory area in the RAM of the
microcontroller. You can access to this memory area via
the web server but also via the external interfaces (e.g.
TWI).
Virtual pins:
1000...=data byte-by-byte,
from address 0
2000...=data word-by-word,
from address 0 (not number of the
word, but address in the RAM)
3000...=data dword-by-dword, from
address 0 (not number of the
dword, but address in the RAM)
Entry in the config.cfg:
sharedRamSize=<ramGröße>
The size of the SharedRAM can be deter-
mined with this optional parameter. The stan-
dard size is 128 byte.
Query / presentation on the html-file:
°v<pinNr>° = value which is read or
readout at last
Examples:
Change / save the value:
myChangeCmd=°o1020~0x33°
Replacement / readout for the actually value:
°v1020° = present the 20th byte