what is ur query?
read the datasheet of atmega32, choose ur mode of operation, prescaler, move the related values to ADMUX, ADCSRA and ull get the values at any1 of the channels u want on PORTA , on ADC0 etc
dear sir,
thanks for ur replay..k i got that solution (ADC).but now i want know about how interface the external ports in atmega32.basic thinks and which IC i want to use..
What do you mean by "interface the external ports"? Interface with what?
For LEDs, you can just connect them by using resistors.
For relays, etc, you would usually a transistor or MOSFET.
For power MOSFET, you would usually use a transistor, a few transistors or a driver IC.
It depends on what you want to interface with. But, the above 3 are 3 common devices.