DATA SHEET MOS INTEGRATED CIRCUIT µPD168112 SERIAL CONTROL H-BRIDGE DRIVER FOR CAMERA LENS DRIVING DESCRIPTION The µPD168112 is a monolithic 6-channel H-bridge driver that consists of a CMOS controller and a MOS output stage. Compared with existing drivers that use bipolar transistors, this H-bridge driver can lower the current consumption and voltage loss at the output stage thanks to employment of a MOS process. This product employs a P-channel MOSFET on the high side of the output stage, eliminating the need for a charge pump, so that the circuit current consumption can be substantially reduced during operation. In the µPD168112 driving a stepper motor, DC motor, or coil can be selected by serial control, making this product ideal for driving the motor of a digital still camera. FEATURES • Six H-bridge circuits using power MOSFET • Motor control using serial data (6 bytes of 8-bit configuration) Data is input MSB first. Pulse cycle, number of pulses, and output current value can be set. • Input logic frequency: 6 MHz MAX. • 3 V power supply Minimum operating power supply voltage: VDD = 2.7 V • Undervoltage lockout circuit Shuts down the internal circuit at VDD = 1.7 V TYP. • 48-pin WQFN ORDERING INFORMATION Part Number Package µPD168112K9-5B4-A 48-pin plastic WQFN (7 mm x 7 mm) The information in this document is subject to change without notice. Before using this document, please confirm that this is the latest version. Not all products and/or types are available in every country. Please check with an NEC Electronics sales representative for availability and additional information. Document No. S15866EJ1V0DS00 (1st edition) Date Published May 2003 NS CP(K) Printed in Japan 2003 µPD168112 2 PGND6 OUT6B VM6 OUT6A PGND6 RSEN6 RSEN5 PGND5 OUT5B VM5 OUT5A PGND5 PIN CONFIGURATION 36 35 34 33 32 31 30 29 28 27 26 25 OUT3B 40 21 OUT2A PGND34 41 20 PGND12 OUT4A 42 19 OUT1B VM4 43 18 VM12 OUT4B 44 17 OUT1A PGND34 45 16 PGND12 (NC) 46 15 CLKB VDD 47 14 CLK (NC) 48 13 LGND 1 2 3 4 5 6 7 8 9 10 11 12 (NC) VM12 (NC) 22 OSC 39 COSC VM3 VD OUT2B RESET 23 SDATA 38 SCLK OUT3A LATCH PGND12 (NC) 24 (NC) 37 (NC) PGND34 Data Sheet S15866EJ1V0DS µPD168112 PIN LIST Package: 48-pin WQFN No. Pin Name Pin Function No. Pin Name Pin Function 1 (NC) (Not used) 25 PGND5 GND pin of motor block of channel 5 2 (NC) (Not used) 26 OUT5A Output A of channel 5 3 (NC) (Not used, used for test function) 27 VM5 Power pin of motor block of channel 5 4 LATCH Serial data latch input 28 OUT5B Output B of channel 5 5 SCLK Serial clock input 29 PGND5 GND pin of motor block of channel 5 6 SDATA Serial data input 30 RSEN5 Resistor connection for channel 5 current detection 7 RESET Reset input 31 RSEN6 Resistor connection for channel 6 current detection 8 VD Sync signal input 32 PGND6 GND pin of motor block of channel 6 9 COSC (Constant current) 33 OUT6A Output A of channel 6 34 VM6 Power pin of motor block of channel 6 Capacitor connection for triangular wave generation 10 OSC (Stepper motor, DC motor) Capacitor connection for triangular wave generation 11 (NC) (Not used) 35 OUT6B Output B of channel 6 12 (NC) (Not used) 36 PGND6 GND pin of motor block of channel 6 13 LGND GND pin of control block 37 PGND34 GND pin of motor block of channels 3 and 4 14 CLK Original oscillation clock input 38 OUT3A Output A of channel 3 15 CLKB Original oscillation clock output 39 VM3 Power pin of motor block of channel 3 16 PGND12 GND pin of motor block of channels 1 40 OUT3B Output B of channel 3 41 PGND34 GND pin of motor block of channels 3 and 2 17 OUT1A Output A of channel 1 and 4 18 VM12 Power pin of motor block of channels 1 42 OUT4A Output A of channel 4 and 2 19 OUT1B Output B of channel 1 43 VM4 Power pin of motor block of channel 4 20 PGND12 GND pin of motor block of channels 1 44 OUT4B Output B of channel 4 45 PGND34 GND pin of motor block of channels 3 and 2 21 OUT2A Output A of channel 2 and 4 22 VM12 Power pin of motor block of channels 1 46 (NC) (Not used) and 2 23 OUT2B Output B of channel 2 47 VDD Power pin of control block 24 PGND12 GND pin of motor block of channels 1 48 (NC) (Not used) and 2 Data Sheet S15866EJ1V0DS 3 µPD168112 PIN FUNCTIONS Pin Name RESET Detailed Pin Function Initializes the internal circuitry of the IC. The output goes into a Hi-Z state and the registers are initialized. When a stepper motor is driven, driving is started with phase A at +100% and phase B at 0%. CLK Inputs CLK from an external source for generating CLK that serves as a reference of the duty factor of a DC motor or pulse cycle of a stepper motor. CLKB Outputs the signal input from CLK via the oscillator. LATCH Command input enable signal. Equivalent to chip select signal from a microcontroller. SCLK CLK signal for inputting a command. When data is transmitted, this signal is transmitted in synchronization with the data. The contents of SDATA are read as data at the rising edge of SCLK. SDATA Command data input signal. Initialization is performed at addresses 0 and 1, and the contents of addresses 2 to 5 specify how the motor is to be driven. VD Pin that inputs a sync signal. The driver that drives a stepper motor outputs signals after wait time (set by address 1) has elapsed after VD has risen. The output timing is always constant if the VD signal is periodically input, even if the timing of serial input changes. The driver starts outputting signals at the falling edge of the LATCH signal, not in synchronization with VD, when a DC motor or a constant current is driven. COSC Pin that connects a capacitor to a triangular wave generator that drives a constant current. Connect a capacitor of 100 to 330 pF between this pin and GND. OSC Pin that connects a capacitor to a triangular wave generator that drives a stepper motor or a DC motor. Connect a capacitor of 100 to 330 pF between this pin and GND. RSEN Connects a detector resistor to the constant-current detector. Remark Hi-Z: High impedance 4 Data Sheet S15866EJ1V0DS µPD168112 BLOCK DIAGRAM RESET VD 7 8 LATCH SCLK SDATA 4 5 6 CLK CLKB COSC OSC 14 15 9 10 OSC OSC VDD 47 Serial control block LGND 13 VM12 18 39 VM3 OUT1A 17 Ch1 H-bridge OUT1B 19 16 40 OUT3B 37 Pre driver PGND12 38 OUT3A Ch3 H-bridge 20 VM12 22 OUT2A 21 41 43 VM4 42 OUT4A Ch4 H-bridge Ch2 H-bridge OUT2B 23 44 OUT4B PGND 24 45 PGND34 Sense circuit 25 34 VM6 Ch5 H-bridge Sense circuit VM5 27 PGND5 PGND34 Ch6 H-bridge 29 32 36 26 28 OUT5A OUT5B 30 31 RSEN5 RSEN6 Data Sheet S15866EJ1V0DS 33 PGND6 35 OUT6A OUT6B 5 µPD168112 STANDARD CONNECTION EXAMPLES (1) When address 0 (D1, D0) = (0, 0) 100 pF 100 pF RESET VD 7 8 LATCH SCLK SDATA 4 5 6 CLK CLKB COSC OSC 14 15 9 10 OSC OSC VDD 47 Serial control block LGND 13 VM12 18 39 VM3 OUT1A 17 Ch1 H-bridge 40 OUT3B Pre driver OUT1B 19 PGND12 38 OUT3A Ch3 H-bridge 16 20 VM12 22 OUT2A 21 37 41 43 VM4 Ch2 H-bridge M OUT2B 23 42 OUT4A Ch4 H-bridge M 44 OUT4B PGND 24 45 PGND34 Ch5 H-bridge 25 29 26 28 OUT5A OUT5B 34 VM6 Sense circuit Sense circuit VM5 27 PGND5 PGND34 30 31 RSEN5 RSEN6 1 kΩ Ch6 H-bridge 33 32 36 PGND6 35 OUT6A OUT6B 1 kΩ (2) When address 0 (D1, D0) = (0, 1) 100 pF 100 pF RESET VD 7 8 LATCH SCLK SDATA 4 5 6 CLK CLKB COSC OSC 14 15 9 10 OSC OSC VDD 47 Serial control block LGND 13 VM12 18 OUT1B 19 PGND12 Ch1 H-bridge Ch3 H-bridge Pre driver OUT1A 17 39 VM3 16 20 VM12 22 OUT2A 21 M OUT2B 23 41 Ch4 H-bridge 28 OUT5A OUT5B Sense circuit Ch5 H-bridge 26 30 31 M 44 OUT4B RSEN5 RSEN6 34 VM6 Ch6 H-bridge 33 1 kΩ M 6 42 OUT4A 45 PGND34 Sense circuit 29 PGND34 43 VM4 Ch2 H-bridge VM5 27 PGND5 40 OUT3B 37 PGND 24 25 38 OUT3A Data Sheet S15866EJ1V0DS 35 OUT6A OUT6B 32 36 PGND6 µPD168112 (3) When address 0 (D1, D0) = (1, 0) 100 pF 100 pF RESET VD 7 8 LATCH SCLK SDATA 4 5 6 CLK CLKB COSC OSC 14 15 9 10 OSC OSC VDD 47 Serial control block LGND 13 VM12 18 39 VM3 OUT1A 17 Ch1 H-bridge PGND12 38 OUT3A Ch3 H-bridge 40 OUT3B Pre driver OUT1B 19 16 20 VM12 22 OUT2A 21 37 41 43 VM4 OUT2B 23 42 OUT4A Ch4 H-bridge Ch2 H-bridge M M 44 OUT4B VM5 27 Ch5 H-bridge 25 29 26 28 OUT5A OUT5B Sense circuit 45 PGND34 Sense circuit PGND 24 PGND5 PGND34 30 31 RSEN5 RSEN6 34 VM6 Ch6 H-bridge 33 32 36 PGND6 35 OUT6A OUT6B M M (4) When address 0 (D1, D0) = (1, 1) 100 pF 100 pF RESET VD 7 8 LATCH SCLK SDATA 4 5 6 CLK CLKB COSC OSC 14 15 9 10 OSC OSC VDD 47 Serial control block LGND 13 VM12 18 OUT1B 19 PGND12 39 VM3 Ch1 H-bridge Ch3 H-bridge Pre driver OUT1A 17 16 20 VM12 22 OUT2A 21 M OUT2B 23 41 Ch4 H-bridge 42 OUT4A M 44 OUT4B Ch5 H-bridge 26 28 OUT5A OUT5B Sense circuit 45 PGND34 Sense circuit 29 PGND34 43 VM4 Ch2 H-bridge VM5 27 PGND5 M 40 OUT3B 37 PGND 24 25 38 OUT3A 30 31 RSEN5 RSEN6 1 kΩ 34 VM6 Ch6 H-bridge 33 32 36 PGND6 35 OUT6A OUT6B 1 kΩ Data Sheet S15866EJ1V0DS 7 µPD168112 COMMAND INPUT TIMING CHART Setting Example Stepper motor Starts output after wait time synchronized with rising of VD has elapsed. Incorrect Correct Correct VD LATCH SCLK/SDATA Wait time Excited status (stopped) Pulse output Pulse output Pulse output VD - LATCH time VD - LATCH time Excited status (stop) VD - LATCH time VD - LATCH time VD - LATCH time VD - LATCH time NG Wait time DC motor/coil Wait time Wait time Starts output after LATCH has fallen, regardless of VD. LATCH SCLK/SDATA Output status ON OFF ON OFF VD must rise before LATCH rises (200 ns MIN.). VD must fall before LATCH falls (200 ns MIN.). In addition to the operations shown above, an operation in which the VD signal overlaps the LATCH signal is incorrect. If data related to a stepper motor (addresses 3−1 to 3−4) is input during the wait time, the previous data is ignored. If data related to a DC motor coil (addresses 4 and 5) is input during the wait time, all the data is valid. 8 Data Sheet S15866EJ1V0DS µPD168112 Example of Address Setting LATCH SCLK Address 0 Address 1 Address 4 Address 2 Address 3−1 to 3−4 Address 2 Address 5 Address 2 SDATA VD Initialization DC motor Stepper motor Constant-current driving Address 0 Address 2 Address 2 Address 2 Address 1 Address 4 Address 3−1 to 3−4 Address 5 Be sure to perform initialization (addresses 0 and 1) immediately and after power application and RESET. Transmit the data of only addresses 0 and 1 for the initialization operation. After the initialization operation, the system can be controlled simply by inputting driving data (addresses 2 to 5). To execute initialization again, the RESET pin must be mode high level. To set a stepper motor, be sure to input the VD signal. If only the VD signal is input, the previous status is held and the output does not change. Data Sheet S15866EJ1V0DS 9 µPD168112 OUTPUT TIMING CHART Two-phase Excitation Output Mode 1-2 Phase Excitation Output Mode Phase A current Phase A current 100 % 100 % 70 % −70 % −100 % 0 −100 % 1 2 3 4 5 6 7 8 0 1 2 Phase B current 3 4 5 6 7 8 6 7 8 Phase B current 100 % 100 % 70 % −70 % −100 % 0 −100 % 1 2 3 4 5 6 7 8 0 1 2 3 4 5 The horizontal axis of the above charts indicates the number of steps. The above charts show an example in the CW (forward) mode. The current flowing into phases A and B is positive in the direction from OUT pin A to OUT pin B, and negative in the direction from OUT pin B to OUT pin A. 10 Data Sheet S15866EJ1V0DS µPD168112 FUNCTIONAL DESCRIPTION Serial Control All information for driving the motor is processed by serial data from the CPU. The following parameters can be set by commands. - Wait value for setting timing when a stepper motor is driven - Motor current, motor revolution direction, and output excitation mode - Pulse cycle, and number of pulses Each command is assigned an address. Each data can be updated by inputting 8-bit data. For the configuration of the data and details of commands, refer to SERIAL INTERFACE SPECIFICATIONS on page 12. 2-phase Excitation Mode By allowing a current of ±100% to flow into output phases A and B, the motor can be driven with a large torque. The motor can be stopped in electrical cycle angle units of 90°. The two-phase excitation mode or 1-2 phase excitation mode is selected by a command. 1-2 Phase Excitation Mode By allowing a current of ±100% to flow into either output phase A or B and a current of ±70% to flow into the other phase, the motor can be positioned with an accuracy higher than that in the two-phase excitation mode. The motor can be stopped in electrical cycle angle units of 45°. The two-phase excitation mode or 1-2 phase excitation mode is selected by a command. Reset Function An initialization operation is performed and all the internal data is cleared to 0 when RESET = low level. The output remains in the Hi-Z state. When RESET = high level, commands can be input. Be sure to perform a reset operation after power application. When RESET = low level, the internal circuitry is stopped whenever possible, so that the self current consumption can be reduced. When input of the external CLK is stopped, the current consumption can be lowered to 1 µA MAX. Power Application Sequence This IC has a logic power supply (VDD) pin and an output power supply (VM) pin. To turn on power, turn on VDD and then VM. To turn off power, turn off VM with VDD on, and then turn off VDD. (VDD and VM can also be turned on/off at the same time.) Data Sheet S15866EJ1V0DS 11 µPD168112 SERIAL INTERFACE SPECIFICATIONS The internal data is determined by inputting 8-bit serial data synchronized with serial clock CLK while LATCH = high level, and then lowering LATCH. Serial data is input from the LSB (D0) to the MSB (D7). SDATA: Data is loaded to the internal circuitry at the rising edge of SCLK when LATCH = high level. LATCH: Inputting SDATA is prohibited when LATCH is low level. Inputting SDATA is enabled when it is high level. The internal data is determined at the negative transition of LATCH (high level → low level). Because this IC uses the external CLK, OSCIN, to generate the internal timing, the set values vary depending on the frequency of OSCIN. An example where OSCIN = 5 MHz is given below. To input a frequency other than 5 MHz to OSCIN, use the following expression. This applies to the serial registers marked in SERIAL REGISTER DETAILS on page 16 and 19. Time: Set value = Setting example x (5/OSCIN [MHz] ) Frequency: Set value = Setting example x (OSCIN [MHz] /5) Data Configuration Data is configured of 8 bits. Addresses are set in the order of command input. Six types of addresses, 0 to 5, are used. bit D7 D6 D5 D4 D3 MSB D2 D1 D0 LSB For how to set data, refer to Serial Register List on page 14 and 15 and SERIAL REGISTER DETAILS on page 16. The following chart shows an example of serial command waveforms. 0 1 2 3 4 5 6 7 SCLK SDATA LATCH Data of one motor can be input in accordance with the motor driving data specifications that are set while LATCH = high level. The input data is loaded in 8-bit units when SCLK = low level → high level after LATCH = low level → high level, and the data is determined when LATCH = high level → low level. Addresses 0 and 1 are used to perform initialization such as drive output settings. Turning on/off the motor and the number of pulses are set by addresses 2 to 5. Once initialization has been performed, therefore, the motor can be controlled simply by transmitting the drive data of addresses 2 to 5. The stepper motor operates in synchronization with the VD signal. To update data, be sure to input the VD signal (for details, refer to COMMAND INPUT TIMING CHART on page 8). When only the VD signal is input, the previous status is retained and the output does not change. 12 Data Sheet S15866EJ1V0DS µPD168112 SERIAL DATA INPUT SEQUENCE The µPD168112 can control driving of two or more motors with only a few CPU signals by using a serial data input method. The serial data is input as follows. (1) Input addresses 0 and 1 after power application and initialization. (2) Input addresses 3, 4, and 5, depending on the type of motor to be driven. (3) Input address 2 to specify the motor to be driven. (4) Only addresses 3 to 5 and 2 have to be input subsequently to specify driving. To perform an initialization operation such as selecting the motor, initialize the internal registers by using the RESET pin. Operation sequence when serial data is input Address 0 Address 1 Stepper motor Motor type Constant-current driving DC motor Address 3−1 to 3−4 Address 4 Address 5 Address 2 Data updated? Y N -- Initialization operation -<1> Input address 0. <2> Input address 1. -- Detailed drive settings -<3> Set addresses 3, 4, or 5. (a) To drive stepper motor Input 4 bytes, addresses 3−1, 3−2, 3−3, and 3−4. (b) To drive DC motor Input address 4. (c) For constant-current driving Input address 5. -- Specifying motor to be driven -<4> Input address 2 and set the data. Data Sheet S15866EJ1V0DS 13 µPD168112 ADDRESS LIST Address Item to Be Set Address 0 (initial setting) Initial setting 1 (motor selection), wait value Address 1 (initial setting) Initial setting 2 (test function) Address 2 (motor specification) Specifying motor to be driven (selecting output channel) Address 3 (stepper motor) 3−1 Motor on/off, revolution direction, driving mode 3−2 Pulse cycle 3−3 Number of pulses (lower) 3−4 Number of pulses (higher) Address 4 (DC motor) DC motor driving Address 5 (solenoid) Constant-current driving Table. Serial Register List (1/2) Bit Address 0 Address 1 7 Wait value setting 5 7 (Reserved) 6 Wait value setting 4 6 (Reserved) 5 Wait value setting 3 5 (Reserved) 4 Wait value setting 2 4 (Reserved) 3 Wait value setting 1 3 (Reserved) 2 Wait value setting 0 2 (Reserved) 1 Motor selection 1 1 (Reserved) 0 Motor selection 0 0 (Reserved) Bit 14 Bit Address 2 7 (Reserved) 6 (Reserved) 5 (Reserved) 4 (Reserved) 3 (Reserved) 2 Setting motor 2 1 Setting motor 1 0 Setting motor 0 Data Sheet S15866EJ1V0DS µPD168112 Table. Serial Register List (2/2) Bit Address 3−1 Bit Address 3−2 7 (Reserved) 7 Stepper motor pulse cycle 7 6 (Reserved) 6 Stepper motor pulse cycle 6 5 (Reserved) 5 Stepper motor pulse cycle 5 4 (Reserved) 4 Stepper motor pulse cycle 4 3 (Reserved) 3 Stepper motor pulse cycle 3 2 Motor driving mode setting 2 Stepper motor pulse cycle 2 1 Revolution direction 1 Stepper motor pulse cycle 1 0 Motor on/off 0 Stepper motor pulse cycle 0 Bit Address 3−3 Bit Address 3−4 7 Number of stepper motor pulses 7 7 Number of stepper motor pulses 15 6 Number of stepper motor pulses 6 6 Number of stepper motor pulses 14 5 Number of stepper motor pulses 5 5 Number of stepper motor pulses 13 4 Number of stepper motor pulses 4 4 Number of stepper motor pulses 12 3 Number of stepper motor pulses 3 3 Number of stepper motor pulses 11 2 Number of stepper motor pulses 2 2 Number of stepper motor pulses 10 1 Number of stepper motor pulses 1 1 Number of stepper motor pulses 9 0 Number of stepper motor pulses 0 0 Number of stepper motor pulses 8 Bit Address 4 Bit Address 5 7 Output duty setting 4 7 Current value setting 4 6 Output duty setting 3 6 Current value setting 3 5 Output duty setting 2 5 Current value setting 2 4 Output duty setting 1 4 Current value setting 1 3 Output duty setting 0 3 Current value setting 0 2 Brake mode 2 (Reserved) 1 Revolution direction 1 Excitation direction 0 Motor on/off 0 Excitation on/off Data Sheet S15866EJ1V0DS 15 µPD168112 SERIAL REGISTER DETAILS Address 0 This address selects the types of motors to be combined and a wait value when a stepper motor is to be driven. bit D7 D6 D5 Data D4 D3 D2 Wait value setting D1 D0 Motor selection • Motor selection The types of the motors allocated to the six channels to drivers are specified by data D0 to D1. D1 D0 Ch1 0 0 Stepper motor 1 0 1 1 1 Ch2 Ch3 Ch4 Ch5 Ch6 Stepper motor 2 Constant current 1 Constant current 2 Stepper motor 1 Stepper motor 2 DC motor 1 Constant current 1 0 Stepper motor 1 Stepper motor 2 DC motor 1 DC motor 2 1 Stepper motor 1 DC motor 1 Constant current 1 Constant current 2 DC motor 2 • Wait value When the stepper motor is to be controlled, counting is started from the rising of the VD signal and the motor is excited when the count value reaches 0. Even if transmission of serial data is delayed by the wait value, the stepper motor can be driven at a predetermined timing if the VD signal is periodically input. Note that the wait value must not be set to 0. The wait time can be set in a range of 32 to 2016 µs with a resolution of 32 µs using data D2 to D7. Example of setting wait value 16 D7......D2 Set value (µs) 000000 Input prohibited 000001 32 000010 64 : : 111101 1952 111110 1984 111111 2016 Data Sheet S15866EJ1V0DS µPD168112 Address 1 This address is used to test the internal functions of the IC. bit D7 D6 D5 D4 Data D3 D2 D1 D0 (Test function) • Test function The test function is used to check the internal operations of the IC. For usual use, input 0 to D0 to D7. Address 2 This address is used to select the motor to be driven. Input drive data by using addresses 3 to 5, and select the type of the motor using address 2. bit D7 D6 Data D5 D4 D3 D2 (Reserved) D1 D0 Motor to be selected • Motor to be selected Select the type of the motor to be driven using D0 to D2. The motor that can be selected is determined by the motor selection data of address 0. A motor type that does not match the motor selection data of address 0 cannot be selected. The data of addresses 3 to 5 and the motor type of address 2 must match. For details, refer to SERIAL DATA INPUT SEQUENCE on page 13. D2 D1 D0 Motor selection (D0 to D1 of address 0) (D1, D0) = (0, 0) (D1, D0) = (0, 1) (D1, D0) = (1, 0) (D1, D0) = (1, 1) 0 0 0 Stepper motor 1 Stepper motor 1 Stepper motor 1 Stepper motor 1 0 0 1 Stepper motor 2 Stepper motor 2 Stepper motor 2 − 0 1 0 − DC motor 1 DC motor 1 DC motor 1 0 1 1 − − DC motor 2 DC motor 2 1 0 0 Constant current 1 − − Constant current 1 1 0 1 Constant current 2 Constant current 1 − Constant current 2 1 1 0 − − − − 1 1 1 − − − − Data Sheet S15866EJ1V0DS 17 µPD168112 Address 3 This address is used to specify how the stepper motor is to be driven. Before setting this address, stepper motor 1 or 2 must be selected using address 2. Addresses 3−1 to 3−4 are used to specify the setting of the stepper motor. Therefore, a total of 4 bytes are input. Address 3− −1 bit D7 D6 Data D5 D4 (Reserved) D3 D2 D1 D0 Note 3 Note 2 Note 1 Notes 1. Motor on/off 2. Revolution direction 3. Motor driving mode • Motor on/off Whether motor is driven or not is specified by D0. When D0 = 0, the output goes into a Hi-Z state and the motor is turned off. Even if the number of pulses is set at this time, the motor is not excited. Internally, the phase does not advance. When D0 = 1, the output is turned on and the motor is driven according to the specified number of pulses and the specified pulse cycle. D0 Driving mode 0 Hi-Z 1 Excited • Revolution direction D1 specifies the revolution direction of the motor. In the CW mode, the current of phase B is output, 90° degrees in phase behind the current of phase A (forward mode). In the CCW mode, the current phase B is output, 90° degrees in phase ahead of the current phase A (reverse mode). D1 Operation mode 0 CW mode (forward revolution) 1 CCW mode (reverse revolution) • Motor driving mode D2 is used to select the two-phase excitation or 1-2 phase excitation mode. When D2 = 0, the 1-2 phase excitation mode is selected. When D2 = 1, the two-phase excitation mode is selected. 18 D2 Operation mode 0 1-2 phase excitation 1 2-phase excitation Data Sheet S15866EJ1V0DS µPD168112 Address 3− −2 bit D7 D6 D5 D4 Data D3 D2 D1 D0 D2 D1 D0 Pulse cycle • Pulse cycle D0 to D7 of address 3−2 specifies the pulse cycle per step. The pulse cycle can be set in a range of 0 to 25.5 ms with a resolution of 100 µs. If the 8-bit value is 0, no pulse is output and the driving status is maintained. Example of pulse cycle setting D7......D0 Set value (µs) 00000000 0 00000001 100 00000010 200 : : 11111101 25300 11111110 25400 11111111 25500 Address 3− −3 and 3− −4 bit D7 D6 D5 D4 Data D3 Number of pulses • Number of pulses Data of 16 bits, with the lower 8 bits set by address 3−3 and the higher 8 bits set by address 3−4, sets the number of pulses of the motor. Number of pulses = (D0 to D7 of address 3−4) x 256 + (D0 to D7 of address 3−3) If the 16-bit value is 0, no pulse is output and the driving status is maintained. Address 3−4 Address 3−3 Set value D7......D0 D7......D0 00000000 00000000 0 00000000 00000001 1 00000000 00000010 2 : : : 11111111 11111101 65533 11111111 11111110 65534 11111111 11111111 65535 Data Sheet S15866EJ1V0DS 19 µPD168112 Address 4 The address specifies how a DC motor is to be driven. To use this address, DC motor 1 or DC motor 2 must be selected using address 2. bit D7 D6 D5 Data D4 D3 Output duty factor D2 D1 D0 Note 3 Note 2 Note 1 Notes 1. Motor on/off 2. Revolution direction 3. Brake mode • Motor on/off D0 specifies whether the motor is to be driven. When D0 = 0, the motor is stopped (stop mode). The output status in the stop mode is Hi-Z or short brake mode, depending on the value of D2, which selects a brake mode. When D0 = 1, the start mode is selected and the motor is driven in the specified revolution direction and with the specified output duty factor. D0 Driving mode 0 Stop mode 1 Start mode • Revolution direction D1 selects the revolution direction of the motor. When the motor revolves in the forward direction, the current flows from phase A to B. When the motor revolves in the reverse direction, the current flows from phase B to A. D1 Operation mode 0 Current direction A → B (forward direction) 1 Current direction B → A (reverse direction) • Brake mode D2 is used to select the output status in the stop mode. When D2 = 0, the output goes into a Hi-Z state. When D2 = 1, the high side of both phase A and B is on and the short brake status is selected. At this time, the output goes high level. 20 D2 Operation mode 0 Hi-Z 1 Short brake (both phases A and B output high level) Data Sheet S15866EJ1V0DS µPD168112 • Output duty factor Data of D3 to D7 is used to select the output duty factor for current control. The output duty factor can be selected in 32 steps. The operating frequency of the output is the frequency oscillated by the oscillator connected to COSC (100 kHz TYP.). The following table shows the ideal set values. D7......D3 Output duty factor (%) D7......D3 Output duty factor (%) 00000 3.125 10000 53.125 00001 6.25 10001 56.25 00010 9.375 : : : : 11101 93.75 01110 46.875 11110 96.875 01111 50 11111 100 Data Sheet S15866EJ1V0DS 21 µPD168112 Address 5 This address selects constant-current driving. To use this address, constant current 1 or constant current 2 must be selected using address 2. bit D7 D6 Data D5 D4 D3 Output current value D2 D1 D0 (Reserved) Note 2 Note 1 Notes 1. Excitation on/off 2. Excitation direction • Excitation on/off D0 selects whether the coil is to be driven. When D0 = 0, the output goes into a Hi-Z state. When D0 = 1, the output is turned on, and the coil is driven in the specified revolution direction and with the specified output current. D0 Driving mode 0 Hi-Z 1 Output ON • Excitation direction D1 selects the direction in which the coil is to be excited. In the forward direction, the current flows from phase A to B. In the reverse direction, the current flows from phase B to A. D1 Operation mode 0 Current direction A → B (forward direction) 1 Current direction B → A (reverse direction) • Output current value Data of D3 to D7 selects the current value for constant-current control. These bits select the internal voltage that serves as a reference with a resolution of 20 mV. The current that flows to the output is {Set voltage value/RSEN x 1000}. A voltage lower than 100 mV is fixed to 100 mV and a voltage exceeding 500 mV is fixed to 500 mV. Therefore, the reference voltage can be set in a range of 100 to 500 mV. The operating frequency of the output is the frequency oscillation by the oscillator connected to COSC (100 kHz TYP.). Example: Where RSEN = 2 kΩ for constant-current driving at 100 mA Set voltage value = 100 (mA) x 2 (kΩ) /1000 = 200 (mV) → (D7...D3) = (01010) 22 D7......D3 Reference voltage (mV) D7......D3 Reference voltage (mV) 00000 100 10110 440 00001 100 10111 460 : : 11000 480 00101 100 11001 500 00110 120 : : 00111 140 11110 500 : : 11111 500 Data Sheet S15866EJ1V0DS µPD168112 ELECTRICAL SPECIFICATIONS Absolute Maximum Ratings (TA = 25°°C, Glass epoxy board of 100 mm x 100 mm x 1 mm with copper foil area of 15%) Parameter Power supply voltage Input voltage Symbol Condition Unit VDD Control block −0.5 to +4.5 V VM Motor block −0.5 to +6.0 V −0.5 to VDD +0.5 V 6.2 V VIN Output pin voltage Rating VOUT Note ID(DC) DC ±0.35 A/ch Instantaneous output current ID(pulse) PW < 10 ms, Duty ≤ 20% ±0.7 A/ch Power consumption PT 1.0 W Peak junction temperature Tch(MAX) 150 °C Storage temperature Tstg −55 to +150 °C DC output current Note Keep the total consumption from exceeding 1 W. Caution Product quality may suffer if the absolute maximum rating is exceeded even momentarily for any parameter. That is, the absolute maximum ratings are rated values at which the product is on the verge of suffering physical damage, and therefore the product must be used under conditions that ensure that the absolute maximum ratings are not exceeded. Recommended Operating Conditions (TA = 25°°C, Glass epoxy board of 100 mm x 100 mm x 1 mm with copper foil area of 15%) Parameter Power supply voltage Symbol Condition MIN. TYP. MAX. Unit VDD Control block 2.7 3.6 V VM Motor block 2.7 5.5 V 0 VDD V Input voltage VIN DC output current ID(DC) DC −0.3 +0.3 A/ch Instantaneous output current ID(pulse) PW < 10 ms, Duty ≤ 20% −0.6 +0.6 A/ch External CLK input frequency OSCIN 6 MHz SCLK input frequency fCLK 6 MHz LATCH - SCLK time fL-S 200 ns SDATA setup time fSETUP 80 ns SDATA hold time fHOLD 80 ns VD ↑ - LATCH ↑ time tVD-LATCH1 200 ns VD ↓ - LATCH ↓ time tVD-LATCH2 200 ns Operating temperature range TA −10 3 Data Sheet S15866EJ1V0DS 5 75 °C 23 µPD168112 Electrical Characteristics (Unless otherwise specified, TA = 25°°C, VDD = VM = 3 V) Parameter MAX. Unit IDD(STB) 1.0 µA VDD pin current in during operation IDD(ACT) 3.0 mA 1.0 µA 50 µA VDD pin current in standby mode VM leakage current Symbol IM(off) Condition MIN. TYP. Per VM pin, VM = 5.5 V, in standby mode High-level input current IIH VIN = VDD Low-level input current IIL VIN = 0 V High-level input voltage VIH 2.7 V ≤ VDD ≤ 3.6 V, input pin Low-level input voltage VIL 2.7 V ≤ VDD ≤ 3.6 V, input pin Input hysteresis voltage Vhys Input pin H-bridge on-state resistance Ron IM = 0.3 A, sum of upper and −1.0 µA 0.7 x VDD V 0.3 x VDD 0.3 V V 2.0 Ω lower stages Output turn-on time ton Output turn-off time toff RM = 20 Ω 0.02 0.7 2.0 µs 0.02 0.7 2.0 µs Caution The undervoltage lockout circuit operates at 1.7 V TYP. and the output goes into a Hi-Z state. Internal data is reset. 24 Data Sheet S15866EJ1V0DS µPD168112 PACKAGE DRAWING 48-PIN PLASTIC WQFN (7x7) HD D D HD /2 /2 /2 36 37 4−C0.5 25 24 detail of P part A E A2 E S HE /2 HE c 48 1 13 12 x4 ZE f ZD y A1 S A B terminal section c2 P y1 S c1 S S x4 t B S A B b1 b ITEM A 6.75 E 6.75 f 0.20 HD 7.00 HE 7.00 t 0.20 A A1 A2 e 0.08MIN. b x M Lp S A B 0.08MIN. NOTE "t" and "f" excludes mold flash MILLIMETERS D 0.67 +0.08 −0.04 0.03 +0.02 −0.025 0.64 b 0.23±0.05 b1 0.20±0.03 c 0.17 c1 0.14∼0.16 c2 0.14∼0.20 e 0.50 Lp 0.40±0.10 x 0.05 y 0.08 y1 0.10 ZD 0.625 ZE 0.625 P48K9-50-5B4 Data Sheet S15866EJ1V0DS 25 µPD168112 RECOMMENDED SOLDERING CONDITIONS The µPD168112 should be soldered and mounted under the following recommended conditions. For soldering methods and conditions other than those recommended below, contact an NEC Electronics sales representative. For technical information, see the following website. Semiconductor Device Mount Manual (http://www.necel.com/pkg/en/mount/index.html) Type of Surface Mount Device µPD168112K9-5B4-A: 48-pin plastic WQFN (7 mm x 7 mm) Process Infrared reflow Conditions Package peak temperature: 250°C, Time: 60 seconds MAX. (at 220°C or higher), Symbol IR60-103-3 Count: Three times or less, Exposure limit: 3 days Note (after that, prebake at 125°C for 10 hours), Flux: Rosin flux with low chlorine (0.2 Wt% or below) recommended Note After opening the dry pack, store it a 2°C or less and 65% RH or less for the allowable storage period. Caution Do not use different soldering methods together (except for partial heating). 26 Data Sheet S15866EJ1V0DS µPD168112 NOTES FOR CMOS DEVICES 1 PRECAUTION AGAINST ESD FOR SEMICONDUCTORS Note: Strong electric field, when exposed to a MOS device, can cause destruction of the gate oxide and ultimately degrade the device operation. Steps must be taken to stop generation of static electricity as much as possible, and quickly dissipate it once, when it has occurred. Environmental control must be adequate. When it is dry, humidifier should be used. It is recommended to avoid using insulators that easily build static electricity. Semiconductor devices must be stored and transported in an anti-static container, static shielding bag or conductive material. All test and measurement tools including work bench and floor should be grounded. The operator should be grounded using wrist strap. Semiconductor devices must not be touched with bare hands. Similar precautions need to be taken for PW boards with semiconductor devices on it. 2 HANDLING OF UNUSED INPUT PINS FOR CMOS Note: No connection for CMOS device inputs can be cause of malfunction. If no connection is provided to the input pins, it is possible that an internal input level may be generated due to noise, etc., hence causing malfunction. CMOS devices behave differently than Bipolar or NMOS devices. Input levels of CMOS devices must be fixed high or low by using a pull-up or pull-down circuitry. Each unused pin should be connected to V DD or GND with a resistor, if it is considered to have a possibility of being an output pin. All handling related to the unused pins must be judged device by device and related specifications governing the devices. 3 STATUS BEFORE INITIALIZATION OF MOS DEVICES Note: Power-on does not necessarily define initial status of MOS device. Production process of MOS does not define the initial operation status of the device. Immediately after the power source is turned ON, the devices with reset function have not yet been initialized. Hence, power-on does not guarantee out-pin levels, I/O settings or contents of registers. Device is not initialized until the reset signal is received. Reset operation must be executed immediately after power-on for devices having reset function. Data Sheet S15866EJ1V0DS 27 µPD168112 Reference Documents NEC Semiconductor Device Reliability/Quality Control System (C10983E) Quality Grades On NEC Semiconductor Devices (C11531E) • The information in this document is current as of May, 2003. The information is subject to change without notice. For actual design-in, refer to the latest publications of NEC Electronics data sheets or data books, etc., for the most up-to-date specifications of NEC Electronics products. Not all products and/or types are available in every country. Please check with an NEC Electronics sales representative for availability and additional information. • No part of this document may be copied or reproduced in any form or by any means without the prior written consent of NEC Electronics. NEC Electronics assumes no responsibility for any errors that may appear in this document. • NEC Electronics does not assume any liability for infringement of patents, copyrights or other intellectual property rights of third parties by or arising from the use of NEC Electronics products listed in this document or any other liability arising from the use of such products. No license, express, implied or otherwise, is granted under any patents, copyrights or other intellectual property rights of NEC Electronics or others. • Descriptions of circuits, software and other related information in this document are provided for illustrative purposes in semiconductor product operation and application examples. The incorporation of these circuits, software and information in the design of a customer's equipment shall be done under the full responsibility of the customer. NEC Electronics assumes no responsibility for any losses incurred by customers or third parties arising from the use of these circuits, software and information. • While NEC Electronics endeavors to enhance the quality, reliability and safety of NEC Electronics products, customers agree and acknowledge that the possibility of defects thereof cannot be eliminated entirely. To minimize risks of damage to property or injury (including death) to persons arising from defects in NEC Electronics products, customers must incorporate sufficient safety measures in their design, such as redundancy, fire-containment and anti-failure features. • NEC Electronics products are classified into the following three quality grades: "Standard", "Special" and "Specific". The "Specific" quality grade applies only to NEC Electronics products developed based on a customerdesignated "quality assurance program" for a specific application. The recommended applications of an NEC Electronics product depend on its quality grade, as indicated below. Customers must check the quality grade of each NEC Electronics product before using it in a particular application. "Standard": Computers, office equipment, communications equipment, test and measurement equipment, audio and visual equipment, home electronic appliances, machine tools, personal electronic equipment and industrial robots. "Special": Transportation equipment (automobiles, trains, ships, etc.), traffic control systems, anti-disaster systems, anti-crime systems, safety equipment and medical equipment (not specifically designed for life support). "Specific": Aircraft, aerospace equipment, submersible repeaters, nuclear reactor control systems, life support systems and medical equipment for life support, etc. The quality grade of NEC Electronics products is "Standard" unless otherwise expressly specified in NEC Electronics data sheets or data books, etc. If customers wish to use NEC Electronics products in applications not intended by NEC Electronics, they must contact an NEC Electronics sales representative in advance to determine NEC Electronics' willingness to support a given application. (Note) (1) "NEC Electronics" as used in this statement means NEC Electronics Corporation and also includes its majority-owned subsidiaries. (2) "NEC Electronics products" means any product developed or manufactured by or for NEC Electronics (as defined above). M8E 02. 11-1