Digital and analog port toggling