C Control PRO-BOT128 + C-Control PRO 128 Unit + Voltcraft® USB programming cable Kit 190406 User Manual

Product codes
190406
Page of 244
175
C-Control Pro Mega Series
© 2008 Conrad Electronic
Eingang konfiguriert.
Parameter 
portbit   Bitnummer des Ports (siehe Tabelle)
val   0=Eingang,  1= Ausgang
Portbits Tabelle
Definition
Portbit
PortA.0
0
...
...
PortA.7
7
PortB.0
8
...
...
PortB.7
15
PortC.0
16
...
...
PortC.7
23
PortD.0
24
...
...
PortD.7
31
ab hier nur Mega128
PortE.0
32
...
...
PortE.7
39
PortF.0
40
...
...
PortF.7
47
PortG.0
48
...
...
PortG.4
52
6.14.3 Port_Read
Port Funktionen
Syntax
byte Port_Read(byte port);
Sub Port_Read(port As ByteAs Byte
Beschreibung
Liest ein Byte vom spezifizierten Port. Nur die Pins des Ports, die auf Eingang geschaltet sind, liefern
einen gültigen Wert an der entsprechenden Bitposition in dem gelesenen Byte zurück. (Für die Abbildung
zwischen Portbits und den Pins des Atmel Mega Chips siehe Pinzuordnung
 von