C Control Pro application board Mega 128 198258 Benutzerhandbuch

Produktcode
198258
Seite von 200
140
C-Control Pro Mega Series
© 2005 Conrad Electronic
port   Portnummer (siehe Tabelle)
val   Ausgabe byte
Portnummern Tabelle
Definition
Wert
PortA
0
PortB
1
PortC
2
PortD
3
PortE (
Mega128
)
4
PortF (
Mega128
)
5
PortG (
Mega128
)
6
5.4.12.6
Port_WriteBit
Port Funktionen
Syntax
void Port_WriteBit(byte portbit,byte val);
Sub Port_WriteBit(portbit As Byte,val As Byte)
Beschreibung
Die Funktion  Port_WriteBit setzt den Wert eines Pins, der auf Ausgang geschaltet ist. Ist ein Pin auf
Eingang geschaltet, so kann der interne Pullup Widerstand eingeschaltet (1) oder abgeschaltet (0) werden. (
Für die Abbildung zwischen Portbits und den Pins des Atmel Mega Chips siehe Pinzuordnung
 von 
).
Parameter 
portbit   Bitnummer des Ports (siehe Tabelle)
val   darf 0 oder 1 sein
Portbits Tabelle
Definition
Portbit
PortA.0
0
...
...
PortA.7
7
PortB.0
8
...
...
PortB.7
15
PortC.0
16
...
...
PortC.7
23