Port_Writebit - Conrad C-Control Pro Mega Series Manual

Table of Contents

Advertisement

175
C-Control Pro Mega Series
PortC
PortD
PortE (Mega128)
PortF (Mega128)
PortG (Mega128)

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.
input, a Port_WriteBit() will set an internal pull-up resistor on (bit = 1) or off (bit = 0).
of
Assignment
Parameter
portbit bit number of port (see table)
val bit value (0 or 1)
Portbits Table
Definition
PortA.0
PortA.7
PortB.0
PortB.7
PortC.0
PortC.7
PortD.0
PortD.7
from here only Mega128
PortE.0
PortE.7
PortF.0
M32
and M128.
...
...
...
...
...
2
3
4
5
6
Portbit
0
...
7
8
...
15
16
...
23
24
...
31
32
...
39
40
Is a Pin configured as
See Pin
© 2008 Conrad Electronic

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the C-Control Pro Mega Series and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

C-control pro mega32C-control pro mega128

Table of Contents