Instructions

305 C-Control Pro IDE
© 2013 Conrad Electronic
Parameter
portbit bit number of port (see Port Table)
Return Parameter
bit value (0 or 1)
5.18.6 Port_ToggleBit
Port Functions
Syntax
void Port_ToggleBit(byte portbit);
Sub Port_ToggleBit(portbit As Byte)
Description
The function Port_WriteBit inverts the value of a Pin that is configured for output. See Pin Assignment of
AVR32, M32 and M128.
Mega: Is a Pin configured as input, this will set an internal pull-up resistor on (bit = 1) or off (bit
= 0).
Mega: Port Bit access is always significant slower than the normal Port access that transfers 8 Bit. If
the desired values of all Port Bits are known, 8-Bit Port access is always preferable.
Parameter
portbit bit number of port (see Port Table)
5.18.7 Port_Toggle (Mega)
Port Functions
Syntax
void Port_Toggle(byte port);
Sub Port_Toggle(port As Byte)
Description
Inverts all Bits on the specified port. Only the Pins of port that are configured for output will show their value
as port output on their bit position (see Pin Assignment of M32 and M128). Is a Pin configured as input,
this will set an internal pull-up resistor on (bit = 1) or off (bit = 0). See Pin Assignment of M32 and
M128.
Parameter