摘要 |
PURPOSE:To achieve a fast and highly accurate computation of speed using a microcomputer having no division instruction, by comparing counts of clock pulses sequentially with a table data referred to based on the predetermined. CONSTITUTION:With the rotation of a motor 101, a pulse generator 102 generates a pulse and a microcomputer 107' reads counts N of a counter 105 from a register 106. The relationship between the counts N of the clock pulses as independent variable and the speed V as dependent variable is defined by a many- to-one functional relations and a value alpha(k) which characterizes a subset (k) corresponding to values of dependent variables is memorized into a ROM108 in the form of a table. The computer 107' reads a data alpha[A] from the address A of a table in the ROM108 and compares the counts N with the data alpha[A] to determine to which subset the value of the independent variable N belongs by binary retrieval. When N=alpha[A], A as relative address of the table gives the computed value of the speed V directly. |