Design a control system for micro-controller