ignition needs to be on for a start
make sure radio is off then hold down the AS button and turn radio ion keeping your finger on AS until you hear the beep, if it doesn't work then leave it a few hours
also the radio needs to have both the ignition live wire and permanent live wire working for it to accept the code as i found out, so no blown fuses