interfacing with ps2(dual shock2) controller

i'm getting no response with the controller...soon after uploading the code i get a status as"done uploading...avrdude: stk500_getsync(): not in sync: resp=0x00"