Attiny84 has a slow rising and falling edges
The signal is very weak because you are not setting the port pin to output mode. 

The line

DDRA &amp;= (1&lt;&lt;PA2);//set pin  as output 11


should be

DDRA |= (1&lt;&lt;PA2);//set pin  as output 11