Externally controlled internal mode switching via pin