atmega32 bit question

Hi all,

I entered this question on a different section, and I just realized that it may be in the wrong area!

Here is my simple question!

Processor → atmega32

Compiler → IAR

All I want to do is change a state of a given pin to

#1. HIGH

#2. LOW

#3. FLOAT

IAR has macros to access each bit for a register, so to set pin PC6 I would do

HIGH

DDRC_Bit6=1;       
PORTC_Bit6=1;

LOW

DDRC_Bit6=0;       
PORTC_Bit6=0;

FLOAT

DDRC_Bit6= ???????;
PORTC_Bit6= ??????;

Any thoughts on how to float a pin?

thanks!

~Kam (^8*

float would be to set the data direction register for the bit to be an input, the set the port output register for that bit to a 0. If the latter were a 1, it would enable the internal weak pull-up resistor.