Simulates when 16-bit multi-purpose timer is used in PMD mode and rectangular-wave drive of the motor is performed.
Click the "Operate by one step" or "Start continuous operation" button. The value to be set for PMD output control register and PMD output at that time are displayed and rotation of the connected motor is simulated.
(PMD control register)
|PWMCK||Specifies PWM cycle extension mode||0:Normal cycle|
|SYNTMD||Sets port output of U-, V- and W-phases||0|
|DTYMD||DUTY mode||0:U-phase in common|
|INTPRD||PWM interrupt cycle||01:Every PWM 1 cycle|
|PWMMD||PWM carrier wave||0:sawtooth|
(PWM cycle register)
|MDPRD||PWM cycles||(ex.)4000:PWM period 20kHz@12.5ns|
(PWM compare U register)
|CMPU||PWM pulse width||Speed of the motor rotation changes according to the value (the value should be set lower than PWM cycle).|
(PMD output setting register)
|POLH||Polarity of upper phase output port||1:High active|
|POLL||Polarity of lower phase output port||1:High active|
|PSYNCS||timing when port outputs of U-, V- and W-phase output setting is reflected||00:Reflects when write|
(PMD enable register)
|PWMEN||Controls waveform generation to enable/disable||1:Enabled|
In this simulation, if the number of rotations of the motor is constant, PWM output is also constant as the fixed rectangular-wave drive. If PWM is changed 1 pulse at a time as shown in the figure below, the motor actuator serves as a pseudo-sine-wave drive.
In PMD mode of the 16-bit multi-timer, a motor can be sine-wave driven by the following procedure.