The input pins are multiplexed on port B. PB0 thru PB2 are used as the analog inputs for back EMF sensing of hall sensor inputs. PB3 can be used for op-amp output if required and the internal Vref can be configured as an external reference or buffered output of the internal circuit.