摘要 |
<p>PROBLEM TO BE SOLVED: To provide an addition and subtraction circuit that can execute a continuous calculation of addition and subtraction or subtraction and addition without requiring time and effort.SOLUTION: An addition and subtraction circuit for executing addition and subtraction on the basis of a command from a controller, includes: an addition circuit; a subtraction circuit; first, second and third registers; and a control register. When the controller issues a predetermined command to the control register, the control register causes the addition circuit to add values set in the first and second registers, subsequently subtract a value set in the third register from the addition value, and output the subtraction value.</p> |