摘要 |
PURPOSE:To attain ease of a program by storing control parameters to a table in the lump and referencing the control parameters so as to allow the user to eliminate the need for notice of the control parameters. CONSTITUTION:In controlling an analog input circuit 5 to convert an inputted analog value into a digital value, a processor 1 references a table 9 to read a control parameter and gives it to the circuit 5. The circuit 5 recognizes an address commanding the start position of a multiplexer converting the level of analog value by a multiplexer star address and recognizes number of level conversion of the multiplexer by the multiplexer count, recognizes the multiple to be converted by the converting gain and recognizes whether or not interruption is given to the processor 1 by the interruption mode. Thus, after the circuit 5 converts the inputted analog value into a proper voltage, the result is converted into a digital value. Similarly, when an analog signal is outputted from an analog output circuit 7, the control parameter from the table 9 is given to the circuit 7. |