Position encoder and motor connection in one interface between motor and microprocessor