vielleicht hast du einen interrupt enabled, den du im code noch nciht eingebaut hast und dein controller schmiert ab ?!