Digital input using the sampling of an analogue quantity at regular intervals of time, input from a/d converter or output to d/a converter