clean previous pin on call of SetCS and SetIRQ