hello all 
I have worked with 8051 microcontroller and this is my first time with avr. I am simply trying to run a dc motor using switches and an atmega32.
With 8051, i could set the specific bits to what i want so i could use only the bits for what i need.
sbit motor_front=P0^0;
now how do i do this in AVR? i.e I dont want to use the whole port. I just want to check if the first bit in portx is high or low.. using the whole port is not helping. I am not able to control a simple dc motor..
any help will be useful.
thank you
I have worked with 8051 microcontroller and this is my first time with avr. I am simply trying to run a dc motor using switches and an atmega32.
With 8051, i could set the specific bits to what i want so i could use only the bits for what i need.
sbit motor_front=P0^0;
now how do i do this in AVR? i.e I dont want to use the whole port. I just want to check if the first bit in portx is high or low.. using the whole port is not helping. I am not able to control a simple dc motor..
any help will be useful.
thank you