All of these patents disclose various apparatus and methods wherein a microprocessor based controller downhole is actuated by a surface or other external signal such that the microprocessor executes a control signal which is transmitted to an electromechanical control device which then actuates a downhole tool such as a sliding sleeve, packer or valve.