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*