Microcomputer control of electric drives