Program control for peripheral devices using hardware independent of the central processor, e.g. channel or peripheral processor