This is a picture of the 8 x 8 LED matrix display I used which I connected to my ATmega16 Here are the connections CS -> PORTD 2 DIN -> PORTD 1 CLK -> PORTD 0 Schematic