A method and a multichannel implantable device are described for partial or complete restoration of impaired gastrointestinal motility, or for disturbing and/or partially or completely blocking normal gastrointestinal motility using one or multiple microsystem-controlled channels of circumferentially arranged sets of two or more electrodes which provide externally-invoked synchronized electrical signals to the smooth muscles via the neural pathways.