Patent ID: 8610394

Claim:
A microcomputer that outputs a pulse signal controlling an ultrasonic motor, the microcomputer comprising: a digital/analog, D/A, conversion set register that stores a D/A conversion set value setting an amplitude value of the pulse signal; a D/A converter that generates the amplitude value based on the D/A conversion set value; a first compare register that stores a first compare register value setting a frequency of the pulse signal; a second compare register that stores a second compare register value setting a duty ratio of the pulse signal; a counter that outputs a count value; a first comparator that compares the first compare register value with the count value to generate a first comparison result signal; a second comparator that compares the second compare register value with the count value to generate a second comparison result signal; and an output circuit that generates the pulse signal based on the amplitude value, the first comparison result signal and the second comparison result signal.