Serial communication between arduino and avr atmega32

You have not posted a link to the datasheet for the Atmega32 board. The simplest way to communicate with a Mega is probably by using a serial connection.

...R
Serial Input Basics