Design of integrated systems for the measurement and stimulation of the nervous system. Basics of brain physiology: central and peripheral nervous systems, types of nerves, neuronal conduction, biopotentials. synapse, neurotransmitters. Electrodes and sensors: electrical models, materials, electrode networks, sampling, types of sensors. Biophysical principles of neural or neuromuscular electrical stimulation. Neural stimulators for the central and the peripheral nervous systems: devices, programming, clinical considerations. Typical applications: Parkinson's disease, sensorimotor neuroprostheses, epilepsy, pain. Control of closed-loop neurostimulators (regulators) and optimization of neurostimulation by machine learning.