A method and a multichannel implantable device are described for partial orcomplete restoration of impaired gastrointestinal motility, or for disturbingand/or partially or completely blocking normal gastrointestinal motility usingone or multiple microsystem-controlled channels of circumferentially arrangedsets of two or more electrodes which provide externally-invoked synchronizedelectrical signals to the smooth muscles via the neural pathways.