795
Preliminary User’s Manual U17566EE1V2UM00
Chapter 21 Stepper Motor Controller/Driver
(Stepper-C/D)
The Stepper Motor Controller/Driver module is comprised of six drivers (k = 1
to 6) for external 360° type meters or for bipolar and unipolar stepper motors.
The V850E/Dx3 microcontrollers have following instances of the Stepper Motor
Controller/Driver:
Throughout this chapter, the individual instances of Stepper-C/D are identified
by “n”, for example MCNTCn0, or MCNTCn1 for the timer mode control
registers.
The Stepper Motor Controller/Driver module can be separated into two sub-
modules. Throughout this chapter, the individual sub-modules are identified by
“m” (m = 0, 1).
21.1 Overview
The Stepper Motor Controller/Driver module generates pulse width modulated
(PWM) output signals. Each driver generates up to four output signals.
Features summary
The generated output signals have the following features:
• Pulse width of 8 bits precision
• 1-bit addition function enables an average pulse width precision of 1/2 bit,
resulting in a pseudo 9-bit precision
• PWM frequency up to 32 KHz
• automatic PWM phase shift for reducing fluctuation on power supply and for
reducing the susceptibility to electromagnetic interference
21.1.1
Driver overview
A stepper motor is driven by PWM signals. The PWM signals are generated by
comparing the contents of compare registers with the actual value of a free
running up counter.
The Stepper Motor Controller/Driver module can be separated into two sub-
modules - each sub-module contains one counter and assigned compare
registers and control registers. In the following, the two sub-modules are called
Stepper Motor Controller/Driver 0 sub-module and Stepper Motor Controller/
Driver 1 sub-module.
The following figures show the main components of the Stepper Motor
Controller/Driver 0 sub-module (
Figure 21-1
) and of the Stepper Motor
Controller/Driver 1 sub-module (
Figure 21-2
).
Stepper-C/D
All devices
Instances
1
electronic components distributor