Use of one 16-bit multifunction timer allows the following two types of pulse output. The PWM1 mode generates a synchronization output pulse with the cycle set in the cycle register. Two types of duty pulse are output by using two event registers. PWM2 mode generates a complementary output pulse with the cycle set in a cycle register. Also, one type of duty complementary pulse is output by using one event register.