When programming an Atmel AVR with ISP interface, the connector must have the pinout as shown in the figure below.