
175
C-Control Pro Mega Series
© 2008 Conrad Electronic
PortC
2
PortD
3
PortE (
Mega128
)
4
PortF (
Mega128
)
5
PortG (
Mega128
)
6
6.14.6 Port_WriteBit
Port Functions
Syntax
void Port_WriteBit(byte portbit,byte val);
Sub Port_WriteBit(portbit As Byte,val As Byte)
Description
The function Port_WriteBit sets the value of a Pin that is configured for output.
Is a Pin configured as
input, a Port_WriteBit() will set an internal pull-up resistor on (bit = 1) or off (bit = 0).
See Pin
Assignment
of
Parameter
portbit bit number of port (see table)
val bit value (0 or 1)
Portbits Table
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
from here only Mega128
PortE.0
32
...
...
PortE.7
39
PortF.0
40
Summary of Contents for C-Control Pro Mega Series
Page 1: ... 2008 Conrad Electronic C Control Pro Mega Series ...
Page 9: ...VIII Inhalt 2008 Conrad Electronic ...
Page 10: ...Part 1 ...
Page 17: ...Part 2 ...
Page 23: ...Part 3 ...
Page 41: ...32 Hardware 2008 Conrad Electronic 3 3 5 3 Component Parts Plan ...
Page 57: ...48 Hardware 2008 Conrad Electronic 3 4 5 3 Component Parts Plan ...
Page 58: ...Part 4 ...
Page 91: ...82 IDE 2008 Conrad Electronic ...
Page 92: ...Part 5 ...
Page 135: ...126 Compiler 2008 Conrad Electronic 31 1F US 63 3F 95 5F _ 127 7F DEL ...
Page 136: ...Part 6 ...
Page 231: ...Part 7 ...
Page 240: ......