a programmable logic and analogic integrated device comprises a programmable logic section capable of constituting by programming a state machine which beside producing outpout logic signals in function of input logic signals may drive a digital - analog converter , the analog signal generated by which is managed as well as other analog signals which may be respectively fed to a number of analog input pins of the integrated device by the said programmable state machine by means of a plurality of integrated analog switches which also permit the output of the analog signal generated by the dac through a buffered analog output pin of the device . an integrated comparator provides a comparison between two distinct external analog signals or between an external analog signal and the analog signal generated by the dac for producing an output logic signal which may be fed to an input of the state machine for implementing a certain interaction function . the device is useful for a wide range of applications in lieu of a microprocessor based system .