JRC NJU39612 User manual

NJU39612
Figure 1. Block Diagram
V
DD
V
Ref
CS
A0
WR
D7 - D0
RESET
Vss
Sign2
DA2
Sign1
DA1
D / A
D / A
E1
E2
POR
NJU39612
E
CD
R
DA- Data 1
E
CD
R
DA- Data 2
R
■ FEATURES
• Analog control voltages from 3V down to 0.0V
• High-speed microprocessor interface
• Full -scale error ±1 LSB
• Fast conversion speed 3 µs
• Matches the dual stepper motor drivers
• Package EMP20
■ BLOCK DIAGRAM
NJU39612E2
NJU39612 is a dual 7-bit+sign; Digital-to-Analog Converter
(DAC) developed to be used in micro stepping applications
together with the dual stepper motor driver. The NJU39612
has a set of input registers connected to an 8-bit data port for
easy interfacing directly to a microprocessor. Two registers
are used to store the data for each seven-bit DAC, the eighth
bit being a sign bit (sign/magnitude coding).
MICROSTEPPING MOTOR CONTROLLERWITH DUAL DAC
■GENERAL DESCRIPTION ■ PACKAGE OUTLINE

NJU39612
Figure 2. Pin configuration
1
2
3
4
5
6
7
8
9
10
18
17
16
15
14
13
12
11
D6
WR
D7
D4
D0
CS
A0
NC
V
ref
D5
DA
1
Sign
1
VDD
Reset
DA
2
Sign
2
V
ss
D3 D2
D1
19
20
NJU39612E2
■PIN CONFIGURATION
■PIN DESCRIPTION
Refer to figure 2.
EMP Symbol Description
1V
Ref Voltage reference supply pin, 2.5 V nominal (3.0 V maximum)
2DA
1Digital-to-Analog 1, voltage output. Output between 0.0 V and Vref - 1 LSB.
3 Sign1Sign 1, TTL/CMOS level. To be connected directly to NJM377x phase input. Databit D7 is transfered non
inverted from NJU39612 data input.
4V
DD Voltage Drain-Drain, logic supply voltage. Normally +5 V.
5 WR Write, TTL/CMOS level, input for writing to internal registers. Data is clocked into flip flops on positive
edge.
6 D7 Data 7, TTL/CMOS level, input to set data bit 7 in data word.
7 D6 Data 6, TTL/CMOS level, input to set data bit 6 in data word.
8 D5 Data 5, TTL/CMOS level, input to set data bit 5 in data word.
9 D4 Data 4, TTL/CMOS level, input to set data bit 4 in data word.
10 D3 Data 3, TTL/CMOS level, input to set data bit 3 in data word.
11 D2 Data 2, TTL/CMOS level, input to set data bit 2 in data word.
12 D1 Data 1, TTL/CMOS level, input to set data bit 1 in data word.
13 D0 Data 0, TTL/CMOS level, input to set data bit 0 in data word.
14 A0 Address 0, TTL/CMOS level, input to select data transfer, A0 selects between cannel 1 (A0 = LOW) and
channel 2 (A0 = HIGH).
15 NC Not connected
16 CS Chip Select, TTL/CMOS level, input to select chip and activate data transfer from data inputs. LOW level
= chip is selected.
17 VSS Voltage Source-Source. Ground pin, 0 V reference for all signals and measurements unless otherwise
noted.
18 Sign2Sign 2. TTL/CMOS level. To be connected directly to NJM377x phase input. Data bit D7 is transfered
non-inverted from NJU39612 data input.
19 DA2Digital-to-Analog 2, voltage output. Output between 0.0 V and Vref - 1 LSB.
20 Reset Reset, digital input resetting internal registers. HIGH level = Reset, VRes ≥3.5 V = HIGH level. Pulled low
internally.

NJU39612
Endpoint
non-linearity
Offset error
Actual Gain
error
Output
Input
Full scale
Correct
Less
than 2
bits
Positive
difference
Output
Input
More
than 2
bits
Negative
difference
Output
Input
Figure 5. Errors in D/A conversion.
Non-linearity, gain and offset errors.
Figure 4. Errors in D/A conversion.
Differential non-linearity of less than
1 bit, output is monotonic.
Figure 3. Errors in D/A conversion.
Differential non-linearity of more than
1 bit, output is non-monotonic.
■DEFINITION OF TERMS
Resolution
Resolution is defined as the reciprocal of the number of discrete steps in the DAC output. It is directly related to the
number of switches or bits within the DAC. For example, NJU39612 has 27, or 128, output levels and therefor has 7
bits resolution. Remember that this is not equal to the number of microsteps available.
Linearity Error
Linearity error is the maximum deviation from a straight line passing through the end points of the DAC transfer
characteristic. It is measured after adjusting for zero and full scale. Linearity error is a parameter intrinsic to the
device and cannot be externally adjusted.
Power Supply Sensitivity
Power supply sensitivity is a measure of the effect of power supply changes on the DAC full-scale output.
Settling Time
Full-scale current settling time requires zero-to-full-scale or full-scale-to-zero output change. Settling time is the
time required from a code transition until the DAC output reaches within ±1/2LSB of the final output value.
Full-scale Error
Full-scale error is a measure of the output error between an ideal DAC and the actual device output.
Differential Non-linearity
The difference between any two consecutive codes in the transfer curve from the theoretical 1LSB, is differential
non-linearity
Monotonic
If the output of a DAC increases for increasing digital input code, then the DAC is monotonic. A 7-bit DAC which is
monotonic to 7 bits simply means that increasing digital input codes will produce an increasing analog output.
NJU39612 is monotonic to 7 bits.
■FUNCTIONAL DESCRIPTION
Each DAC channel contains one register and a D/A converter. A block diagram is shown on the first page.
The sign outputs generate the phase shifts, i.e., they reverse the current direction in the phase windings.
Data Bus Interface
NJU39612 is designed to be compatible with 8-bit microprocessors such as the 6800, 6801, 6803, 6808, 6809,
8051, 8085, Z80 and other popular types and their 16/32 bit counter parts in 8 bit data mode. The data bus inter-
face consists of 8 data bits, write signal, chip select, and two address pins. All inputs are TTL-compatible (except
reset). The address pin control data transfer to the two internal D-type registers. Data is transferred according to
figure 7 and on the positive edge of the write signal.

NJU39612
T [mNm]
1
T [mNm]
2
max
T
nom
T
min
T
I [mA]
1
I [mA]
2
I
CS A0 Data Transfer
0 0 D7 —> Sign1, (D6—D0) —> (Q61—Q01)
0 1 D7 —> Sign2, (D6—D0) —> (Q62—Q02)
1 X No Transfer
Current Direction, Sign1& Sign2
These bits are transferred from D7when writing in the respective DA register. A0must be set according to the data
transfer table in figure 7.
DA1and DA2
These are the two outputs of DAC1 and DAC2. Input to the DACs are internal data bus (Q61 … Q01) and (Q62 … Q02).
Reference Voltage VRef
VRef is the analog input for the two DACs. Special care in layout, gives a very low voltage drop from pin to resistor.
Any VRef between 0.0 V and VDD can be applied, but output might be non-linear above 3.0 V.
Power-on Reset
This function automatically resets all internal flip flops at power-on. This results in VSS voltage at both DAC outputs
and all digital outputs.
Reset
If Reset is not used, leave it disconnected. Reset can be used to measure leakage currents from VDD.
Figure 7. Table showing how data is transfered inside NJU39612.
Figure 6b. An example of acces-
sible positions with a given torque
deviation/fullstep. Note that 1:st
µstep sets highest resolution. Data
points are exaggerated for illustra-
tion purpose.
TNom = code 127.
Figure 6a. Assuming that torque is
proportional to the current in resp.
winding it is possible to draw figure
8b.

NJU39612
■RECOMMENDED OPERATING CONDITIONS
Parameter Symbol Min Typ Max Unit
Supply voltage VDD 4.75 5.0 5.25 V
Reference voltage VRef 0 2.5 3.8 V
Rise and fall time of WR tr, tf- - 1µs
■ ABSOLUTE MAXIMUM RATINGS
Parameter Pin no. Symbol Min Max Unit
Voltage
Supply 4 VDD - 6 V
Logic inputs 5-14,16 VI-0.3 VDD+ 0.3 V
Reference input 1 VRef -0.3 VDD+ 0.3 V
Current
Logic inputs 5-14,16 II-0.4 +0.4 mA
Temperature
Storage temperature Tstg -55 +150 °C
Operating ambient temperature Topr -20 +85 °C

NJU39612
■ELECTRICAL CHARACTERISTICS
Electrical characteristics over recommended operating conditions.
Parameter Symbol Conditions Min Typ Max Unit
Logic Input
Reset logic HIGH input voltage VIHR 3.5 - - V
Reset logic LOW input voltage VILR - - 0.1 V
Logic HIGH input voltage VIH 2.0 - - V
Logic LOW input voltage VIL - - 0.8 V
Reset input current IIR VSS < VIR < VDD -0.01 - 1 mA
Input current, other inputs IIVSS < VI < VDD -1 - 1 µA
Input capacitance -3 -pF
Internal Timing Characteristics
Address setup time tas Valid for A0 60 - - ns
Data setup time tds Valid for D0 - D7 60 - - ns
Chip select setup time tcs 70 - - ns
Address hold time tah --0ns
Data hold time tdh --0ns
Chip select hold time tch --0ns
Write cycle length tWR 50 - - ns
Reset cycle length tres 80 - - ns
Reference Input
Input resistance Rref 6 9 - kohm
Logic Outputs
Logic HIGH output current IOH VO= 2.4 V - -13 -5 mA
Logic LOW output current IOL VO= 0.4 V 2 5 - mA
Write propagation delay tpwr From positive edge of WR. - 30 100 ns
Outputs valid, Cload = 120 pF
Reset propagation delay tpres From positive edge of Reset to - 60 150 ns
outputs valid, Cload = 120 pF
DAC Outputs Reset open, VRef = 2.5 V
Nominal output voltage VDA 0-V
Ref
- 1LSB V
Resolution - 7 - Bits
Offset error - 0.2 0.5 LSB
Gain error - 0.1 0.5 LSB
Endpoint nonlinearity - 0.2 0.5 LSB
Differential nonlinearity - 0.2 0.5 LSB
Load error (VDA, unloaded - VDA, loaded) - 0.1 0.5 LSB
Rload = 2.5 kohm, Code 127 to DAC
Power supply sensitivity Code 127 to DAC - 0.1 0.3 LSB
4.75 V < VDD < 5.25 V
Conversion speed tDAC For a full-scale transition to ±0.5 LSB - 3 8 µs
of final value, Rload = 2.5 kohm, Cload = 50 pF.

NJU39612
Figure 8. Timing
Figure 9. Timing of Reset
t
t
tt
t
tt
CS
A0
D0-D7
WR
DA
Sign
cs ch
as ah
ds dh
WR
t
DAC
t
pwr
t
t
Reset
Sign
res
pres

NJU39612
■ APPLICATIONS INFORMATION
How Many Microsteps?
The number of true microsteps that can be obtained depends upon many different variables, such as the number of
data bits in the Digital-to-Analog converter, errors in the converter, acceptable torque ripple, single- or double-pulse
programming, the motor’s electrical, mechanical and magnetic characteristics, etc. Many limits can be found in the
motor’s ability to perform properly; overcome friction, repeatability, torque linearity, etc. It is important to realize that
the number of current levels, 128 (27), is
not
the number of steps available. 128 is the number of current levels
(reference voltage levels) available from each driver stage. Combining a current level in one winding with any of
128 other current levels in the other winding will make up 128 current levels. So expanding this, it is possible to get
16,384 (128 • 128) combinations of different current levels in the two windings. Remember that these 16,384 micro-
positions are not all useful, the torque will vary from 100% to 0% and some of the options will make up the same
position. For instance, if the current level in one winding is OFF (0%) you can still vary the current in the other
winding in 128 levels. All of these combinations will give you the same position
but
a varying torque.
Typical Application
The microstepper solution can be used in a system with or without a microprocessor.
Without a microprocessor, a counter addresses a ROM where appropriate step data is stored. Step and Direction
are the input signals which represent clock and up / down of counter. This is the ideal solution for a system where
there is no microprocessor or it is heavily loaded with other tasks.
With a microprocessor, data is stored in ROM / RAM area or each step is successively calculated. NJU39612 is
connected like any peripheral addressable device. All parts of stepping can be tailored for specific damping needs
etc. This is the ideal solution for a system where there is an available microprocessor with extra capacity and low
cost is more essential than simplicity. See typical application, figure 13.
■ User Hints
Never disconnect ICs or PC Boards when power is supplied.
Select a motor that is rated for the current you need to establish desired torque. A high supply voltage will gain
better stepping performance even if the motor is not rated for the VMM voltage, the current regulation in the drivers
from New JRC will take care of it. A normal stepper motor might give satisfactory result, but while microstepping, a
“microstepping-adapted” motor is recommended. This type of motor has smoother motion due to two major differ-
ences, the stator / rotor teeth relationship is non-equal and the static torque is lower.
The NJU39612 can handle programs which generate microsteps at a desired resolution as well as quarter
stepping, half stepping, full stepping, and wave drive.
Ramping
Every drive system has inertia which must be considered in the drive system. The rotor and load inertia play a big
role at higher speeds. Unlike the DC motor, the stepper motor is a synchronous motor and does not change its
speed due to load variations. Examining a typical stepper motor’s torque-versus-speed curve indicates a sharp
torque drop-off for the “start-stop without error” curve. The reason for this is that the torque requirements increase
by the cube of the speed change. For good motor performance, controlled acceleration and deceleration should be
considered even though microstepping will improve overall performance.

NJU39612
Time
Time when motor is in
a compromise
position.
Time when micro
position is correct.
Write
signal.
Motor
position.
Writing to
channel 1.
Writing to
channel 2.
Write time = incorrect position
Actual data = true position
Normal resolution
Double pulse write signal
Ideal data = desired position
Useful time = correct
position
Time
Time when motor is in
an intermediate
position.
Time when micro
position is almost
correct.
Write
signal.
Motor position. Note
that position is always
a compromise.
Writing to
channel 1.
Writing to
channel 2.
Useful time = compromise position
with equally spaced angles
Actual data = true position
Note increased resolution
Single pulse write signal
"Ideal data" = desired
position
Useful time = almost
correct position
Figure 10. Double pulse programming, in- and output signals.
Figure 11. Single pulse programming, in- and output signals.

NJU39612
■ Programming NJU39612
There are basically two different ways of programming the NJU39612. They are called “single-pulse programming”
and “double-pulse programming.” Writing to the device can only be accomplished by addressing one register at a
time. When taking one step, at least two registers are normally updated. Accordingly there must be a certain time
delay between writing to the first and the second register. This programming necessity gives some special stepping
advantages.
Double-pulse Programming
The normal way is to send two write pulses to the device, with the correct addressing in between, keeping the delay
between the pulses as short as possible. Write signals will look as illustrated in figure10. The advantages are:
• low torque ripple
• correct step angles between each set of double pulses
• short compromise position between the two step pulses
• normal microstep resolution
Single-pulse Programming
A different approach is to send one pulse at a time with an equally-spaced duty cycle. This can easily be accom-
plished and any two adjacent data will make up a microstep position. Write signals will look as in figure 11. The
advantages are:
• higher microstep resolution
• smoother motion
The disadvantages are:
• higher torque ripple
• compromise positions with almost-correct step angles

NJU39612
D0
D7
A0
RESET
VV
19
2
18
3
17
4
1
14
5
20
16
6
13
WR
CS
To
P
+2.5V
Sign
DA
2
2
SS
VDD
Ref
10
11
8
15
14
17
Phase
Dis
V
Phase
Dis
V
1
1
2
2
R1
R2
ECECGND
RC
NJM3777
12 k
4700 pF
0.47 0.47
M
M
M
M
A1
B1
A2
B2
V
CC
VV
MM1 MM2
+5 V
4
2
21
23
13 5 20
12 6, 7,
18, 19 316 22
9
11
22
RS
STEPPER
MOTOR
V
MM
Pin numbers refer
to EMP package.
GND (V
)
RS
0.1 F 0.1 F
+
10 F
V (+5 V)
CC
GND
(V )
CC MM
Sign
DA
1
1
NJU39612
Voltage
Reference
Control Logic
Step
Direction
Clock Up/Dn
CE
A0
WR
CS
Vref
D0-D7
Counter PROM NJU39612 NJM3777
Figure 13. Typical application in a microprocessor based system.
Figure 12. Typical blockdiagram of an application without a microprocessor.
The specifications on this databook are only
given for information , without any guarantee
as regards either mistakes or omissions.
The application circuits in this databook are
described only to show representative
usages of the product and not intended for
the guarantee or permission of any right
including the industrial rights.
This manual suits for next models
1
Table of contents
Other JRC Controllers manuals
Popular Controllers manuals by other brands

Mitsubishi Electric
Mitsubishi Electric MELSEC-F FX-USB-AW user manual

KiSS
KiSS KIPR Link manual

Ducasa
Ducasa Smart Command Installation and operating manual

Vello
Vello Extenda LW-100 quick start guide

Extron electronics
Extron electronics Basic MediaLink Controllers MLC 52 IR user manual

Carrier
Carrier SmartVu control manual