摘要 |
A processor includes analog signal input ports, an A/D conversion unit, and an ALU in a stage subsequent to the A/D conversion unit, separately from a CPU. The ALU not only stores a comparison result in a RAM independently of the CPU, but also compares an output value of the A/D conversion unit with a reference value set in the RAM, and interrupts the CPU or issues a command to a PWM generator in accordance with a flag based on the comparison result. This realizes high-speed processing in accordance with a change in an analog signal, although the processor has a low cost and a low clock frequency overall.
|