The ML66517 family of highly fu nctional C MOS 16-bit single chip m icrocontrollers utilizes th e nX-8/500S, Ok i's
proprietary CPU core.
Each device includes capture input with an internal digital filter, 10-bit A/D converter, a number of timers, and
dedicated 3-phase PWM (6 outputs) function capable of generating and controlling of AC/DC motor driving
waveforms.
By means of the internal dedicated function for motor control, this general-purpose microcontroller is optimally
suited for DC and AC motor control applications for energy saving. And the internal hardware multiplier allows
high-speed arithmetic operations to be executed. And also the internal clock multiplication circuit can reduce the
source frequency noise so that high-speed operations can be performed.
The flash ROM versions (ML66Q517 and ML66Q515) programmable with a single 5V power supply (4.5 to
5.5V) are also included in the family.
APPLICATIONS
Air conditioner or inverter control
Motor control for FA equipment
ORDERING INFORMATION
Order Code or Product NamePackageRemark
ML66514-xxRB *15 V mask ROM version (4.5 to 5.5 V)
ML66Q515-NRB *2
ML66517-xxGA *15 V mask ROM version (4.5 to 5.5 V)
ML66Q517-NGA *2
*1 : The “xx” of “-xx” stands for the code number.
*2 : The “N” of “-N” stands for the flash ROM, blank version.
When OKI programs and ship the flash ROM, the part number is changed from ”–N” to ”–XX” (code
number ) , for example, ML66Q517-999GA.
64-pin plastic SDIP
(SDIP 64-P-750-1.778)
80-pin plastic QFP
(QFP 80-P-1420-0.80-BK)
5 V flash ROM version (4.5 to 5.5 V)
ML66517 flash ROM version (4.5 to 5.5 V)
1/29
Page 2
1
Semiconductor
ML66517 Family
FEATURES
NameML66514ML66517
Operating temperature–40°C to 85°C
Power supply voltage/
Serial portSynchronous/UART × 2ch
A/D converter10-bit × 4ch10-bit × 8ch
3-phase PWM
(AC/DC motor control)
External interruptNon-Maskable × 1ch;
Interrupt priority3 levels
Flash ROM version
programmable at the bit level),
4 input pins
16-bit auto-reload timer (also functions as a event input/timer out) × 1ch
8-bit auto reload timer × 2ch
(also functions as serial communication baud rate generators)
8-bit auto reload timer × 1ch (also functions as a watchdog timer)
8-bit PWM × 2ch (can also be
used as 16-bit PWM × 1ch)
Maskable × 2ch
External bus interface (Multiplexed address and data buses)
ML66Q515
(ROM = 64 KB, RAM = 2 KB)
V
= 4.5 to 5.5 V/f = 25 MHz
DD
80 nsec @25 MHz
56 I/O pins (with pull-up resistors,
programmable at the bit level),
8 input pins
16-bit free-running counter × 1ch
Compare output/capture input × 2ch
8-bit auto reload timer × 4ch (can a lso
be used as 16-bit auto reload timer ×
1ch and 8-bit auto reload tim er × 2ch)
Capture input × 2ch
8-bit auto reload timer × 2ch
8-bit PWM × 4ch (can al so be u sed as
16-bit PWM × 2ch)
Available
Non-Maskable × 1ch;
Maskable × 4ch
Multiplication calculatorOthers
Clock multiplication circuit (x2, x4)
ML66Q517
FEDL66517-01
2/29
Page 3
FEDL66517-01
1
Semiconductor
ML66517 Family
SPECIAL FEATURES
1. High-performance CPU
The family includes the high-performance CPU, powerful bit manipulation instruction set, full symmetrical
addressing mode, and ROM WINDOW function, and also provides the best optimized C compiler support.
2. 3-phase PWM circuit for generating motor drive waveforms
The device includes a 16-bit three-phase PWM (six outputs) circuit designed specifically for generating AC
three-phase motor or DC three-phase brushless motor drive waveforms. PWM and level outputs can be switched
by compare and match circuitry and software, and the compare and match circuitry can switch the outputs in real
time.
The device has circuitry to fix the three-phase outputs at an inactive level by inputting malfunction signals from a
motor at the specific pin.
3. Capture inputs with digital filters
The device has two channels of capt ure inputs with 3/4 digital filters. T he device is best suited to event inter val
measurement, pulse width measurement, etc. in a high noise environment such as motor control. An optimum
filter can be selected according to noise width since a sampling interval of an input signal can be selected. A digital
filter OFF mode can also be selected.
4. High-speed multiplier
The device includes a dedicated high-speed multiplier.
The calculation time, 16 bits × 16 bits = 32 bits, is 200 ns (f = 25 MHz).
5. Clock multiplication circuit
The device includes a clock multiplication circuit in which the clock can be selected as a source clock (PLL OFF),
2 × clock, or 4 × clock.
Therefore, the use of a low frequency oscillator (external clock) allows the device to internally operate at a high
speed, which achieves noise reduction and lower power consumption.
6. Flash memory version programmable wit h a single power supply
In addition to the mask ROM versions, the family includes the vers ions (ML 66Q517 and ML 66Q515) w ith 64 KB
flash memory that can be programmed with a single 5 V supply (4.5 to 5.5 V).
7. A high-precision A/D converter
The device has a high precision 10-bit A/D converter with eight channels.
An independent result register for each channel provides easy accessibility by software.
The A/D converter is activated in a channel select mode, and automatic conversion is also implemented in a scan
mode which sc ans from any d esignated channel to the la st channel (ch 7).
8. Programmable pull-up resistors
Building the pull-up resistors into the chip contributes to overall design compactness. Making them
programmable on a per-bit basis allows co mplete flexibility in circuit board layout and system design. T hese
programmable pull-up resistors are available for all I/O pins not already assigned specific functions (such as the
oscillator connection pins).
3/29
Page 4
1
(U)
(U)
Semiconductor
FEDL66517-01
ML66517 Family
PWM output switching every 60°°°° of motor turn using the compare-out timer
PWM-U
PWM-UB
PWM-V
PWM-VB
PWM-W
PWM-WB
Compare register
value setting
CAP inputCAP inputCAP inputCAP inputCAP input
CAP input
Compare-match
generation
CAP input
PWM Output Timing (DC Motor Control)
Period register
setting value
16-bit counter value
0000H
PWM-UB
PWM-U
Underflow counts up the counter
Set by 8-bit dead-time timer
(Only U and U output signals are indicated above)
PWM Output Timing (AC Motor Control)
4/29
Page 5
1
Semiconductor
BLOCK DIAGRAM
FEDL66517-01
ML66517 Family
TM0OUT
TM0EVT
TM1OUT
TM1EVT
TM2OUT
TM2EVT
CLKOUT
RXD1
TXD1
RXC1
TXC1
RXD6
TXD6
RXC6
TXC6
TM5EVT
PWM0OUT
PWM2OUT
PWM1OUT
PWM3OUT
16-bit Timer0
8-bit Timer1
8-bit Timer2
Peripheral
SIO1
(UART/SYNC)
8-bit Timer4/BRG
SIO6
(UART/SYNC)
8-bit Timer3/BRG
8-bit Timer5
8-bit PWM0
8-bit PWM1
ALU
ALU Control
ACC
Memory Control
Pointing Registers
Local Registers
RAM 2K
CPU Core
Control
Registers
SSP
LRB
ROM
64K
System
Control
PSW
PC
CSRTSR
Instruction
Decoder
OSC0
OSC1
CLKSEL0
CLKSEL1
RES
EA
PSEN
ALE
RD
WR
INACT
PWMU
PWMUB
PWMV
PWMVB
PWMW
PWMWB
CAPF0
CAPF1
CPCMF0
CPCMF1
V
REF
AGND
AI0 to AI7
NMI
EXINT0
to
EXINT3
8-bit Timer9
3-phase
PWM
CMP
CAP
CAP/CMP
16-bit FRC
10-bit A/D
Converter
Interrupt
TBC
8-bit Timer6/WDT
ML66517/ML66Q517 Block Diagram
AD0 to AD7
Bus Port Control
A8 to A16
P0
P1
P2
P3
P5
P6
P7
P8
P10
Port Control
P11
P12
P15
P16
P17
5/29
Page 6
1
Semiconductor
FEDL66517-01
ML66517 Family
TM0OUT
TM0EVT
CLKOUT
RXD1
TXD1
RXC1
TXC1
RXD6
TXD6
RXC6
TXC6
PWM0OUT
PWM1OUT
INACT
PWMU
PWMUB
PWMV
PWMVB
PWMW
PWMWB
16-bit Timer0
Peripheral
SIO1
(UART/SYNC)
8-bit Timer4/BRG
SIO6
(UART/SYNC)
8-bit Timer3/BRG
8-bit Timer5
8-bit PWM0
8-bit PWM1
8-bit Timer9
3-phase
PWM
ALU
ALU Control
ACC
Memory Control
Pointing Registers
Local Registers
*1
RAM
1K/2K
CPU Core
Control
Registers
SSP
LRB
*2
32K/64K
ROM
System
Control
PSW
PC
Instruction
Decoder
OSC0
OSC1
CLKSEL0
CLKSEL1
RES
EA
PSEN
ALE
RD
WR
AD0 to AD7
Bus Port Control
A8 to A15
CMP
CAPF0
CAPF1
CPCMF0
CPCMF1
V
REF
AGND
AI4 to AI7
NMI
EXINT0
to
EXINT1
*1 ML66Q515 has 2KB RAM, ML66514 has 1KB RAM
*2 ML66Q515 has 64KB ROM, ML66514 has 32KB ROM
converter is not used.)
Analog GND pin (Connect to the GND pin when A/D converter is not
used.)
Main clock oscillation input pin
Connect to a crystal or ceram ic os cil lat or. O r, in put an external clock.
Main clock oscillation output pin
Connect to a crystal or ceramic oscillator.
The clock output is opposite in phase to OSC0.
Leave this pin unconnected when an external clo ck is use d .
Clock multiplication factor select pin
Clock multiplication factor is selected from source oscillation (PLL
OFF), source oscillation × 2, or source oscillation × 4
External program memory access input pin
If the EA pin is enabled (low level), the internal program me mory is
masked and the CPU executes the pr ogram code in external pro gram
memory all address space.
FEDL66517-01
ML66517 Family
pin when A/D
DD
* Each of the family devices has unique pattern routes for the internal power and ground. Connect the
power supply voltag e to all V
one or more V
or GND pins to which the power supply voltage or the ground potential is not
DD
pins and the groun d poten tia l to a ll GND pins . If a de vice m ay have
DD
connected, it can not be guaranteed for normal operation.
7-bit I/O port
Pull-up resistors can be
specified for each individual
bit
4-bit I/O port
Pull-up resistors can be
specified for each individual
bit
Type
IAbnormality detect input pin
Capture 0 input/compare 0
output pin
Capture 1 input/compare 1
I/O
output pin
FEDL66517-01
ML66517 Family
Secondary function
14/29
Page 15
1
Semiconductor
ML66Q515/ML66514 Pin Descriptions (Continued)
FunctionSymbolTypeDescription
V
DD
GNDI
Power supply
V
REF
AGNDI
OSC0I
Oscillation
OSC1O
CLKSEL0I
CLKSEL1I
ResetRESIReset inpu t pin
NMIINon-maskable interrupt input pin
Others
EAI
Power supply pin
I
Connect all V
pins to the power supply.*
DD
GND pin
Connect all GND pins to GND.*
Analog reference voltage pin (Connect to the V
I
converter is not used.)
Analog GND pin (Conne ct t o the GND pin w hen A/D convert er i s not
used.)
Main clock oscillation input pin
Connect to a crystal or ceramic oscillator. Or, input an external
clock.
Main clock oscillation output pin
Connect to a crystal or ceramic oscillator.
The clock output is opposite in phase to OSC0.
Leave this pin unconnected when an external clo ck is use d .
Clock multiplication factor select pin
Clock multiplication factor is selected from source oscillation (PLL
OFF), source oscillation × 2, or source oscillation × 4
External program memory access input pin
If the EA pin is enabled (low level), the internal program me mory is
masked and the CPU executes the program code in external
program memory all address space.
FEDL66517-01
ML66517 Family
pin when A/D
DD
* Each of the family devices has unique pattern routes for the internal power and ground. Connect the
power supply voltag e to all V
one or more V
or GND pins to which the power supply voltage or the ground potential is not
DD
pins and the groun d poten tia l to a ll GND pins . If a de vice m ay have
DD
connected, it can not be guaranteed for normal operation.
15/29
Page 16
1
Semiconductor
ABSOLUTE MAXIMUM RATINGS
ParameterSymbolConditionRatingUnit
Digital power supply voltageV
Input voltageV
Output voltageV
Analog reference voltageV
Analog input voltageV
DD
O
REF
AI
I
GND = AGND = 0 V
Ta = 25°C
Ta = 85°C
D
per package
Storage temperatureT
STG
RECOMMENDED OPERATING CONDITIONS
FEDL66517-01
ML66517 Family
–0.3 to +7.0V
–0.3 to VDD +0.3V
–0.3 to VDD +0.3V
–0.3 to VDD +0.3V
–0.3 to V
REF
80-pin QFP600
64-pin QFP520Power dissipationP
64-pin SDIP1280
—–50 to +150°C
V
mW
ParameterSymbolConditionRatingUnit
Digital power supply voltageV
Analog reference voltageV
Analog input voltageV
Memory hold voltageV
Internal operating frequencyf
DD
REF
AI
DDH
OSC
f
≤ 25 MHz4.5 to 5.5V
OSC
—V
– 0.3 to V
DD
—AGND to V
f
= 0 Hz2.0 to 5.5V
OSC
PLL (multiplier) OFF2 to 25
PLL (multiplier) ON20 to 25
DD
REF
Ambient temperatureTa—–40 to +85°C
MOS load20—
P36
Fan outN
TTL load
P0, P162
P1, P2, P5 to P8,
P10, P11, P15, P17
1
INTERNAL FLASH ROM PROGRAMMING CONDITIONS
ParameterSymbolConditionRatingUnit
Supply VoltageV
Ambient TemperatureTa
DD
During Programming+0 to +50
EnduranceCEP—100Cycles
Blocks size——128bytes
—7—
During A/D operation——4mA
When A/D is stopped——10µA
*1:Applicable to P0
*2:Applicable to P1, P2, P6, P7, P8, P10, P11, P15, P17
*3:Applicable to P12
*4:Applicable to P3
*5:Applicable to P16
*6:Applicable to RES
*7:Applicable to EA, NMI, CLKSEL0, CLKSEL1
*8:Applicable to OSC0
—V
—V
+ 0.3
+ 0.3
± 10
DD
V
µA
µA
kΩ
pF
Supply current
Mode
CPU operation mode *1I
HALT mode *2I
STOP mode *3I
[Note]
Ports used as inputs are at VDD or 0 V. Other ports are unloaded.
*1. CPU and all the peripheral functions (timer, PWM, A/D, etc.) are activated.
*2. CPU is stopped, and all the peripheral functions (timer, PWM, A/D, etc.) are activated.
*3. CPU and all the peripheral functions are deactivated.
Low address setup timet
Low address hold timet
High address setup timet
High address hold timet
Read data setup timet
Read data hold timet
Write data setup timet
Write data hold timet
CPUCLK
cyc
φWH
φWL
AW
RW
WW
RAD
WAD
ALS
ALH
AHS
AHH
RS
RH
WS
WH
FEDL66517-01
ML66517 Family
(VDD = 4.5 to 5.5 V, Ta = –40 to +85°C)
f
= 25 MHz40—
OSC
13—
13—
2tφ – 10—
2tφ – 18—
2tφ – 18—
tφ – 5—
tφ – 5—
CL = 50 pF
2tφ – 15—
tφ – 13—
3tφ – 30—
tφ – 3—
30—
0tφ – 3
2tφ – 30—
tφ – 3—
Note: tφ = t
t
cyc
ns
cyc
/2
ALE
RD
AD0 to AD7
A8 to A15
WR
AD0 to AD7
A8 to A15
t
t
φWL
φWH
t
AW
t
RAD
RAP0 to 7
t
ALS
t
AHS
RAP0 to 7DOUT0 to 7
t
ALS
t
AHS
t
ALH
RAP8 to 15
t
WAD
t
ALH
RAP8 to 15
t
RW
DIN0 to 7
t
WW
t
RS
t
WS
t
t
t
AHH
WH
AHH
t
RH
Bus timing during no wait cycle time
20/29
Page 21
1
Semiconductor
(3) Serial port control
Master mode (Clock synchronous serial port)
ParameterSymbolConditionMin.Max.Unit
Cycle timet
Serial clock cycle timet
Output data setup timet
Output data hold timet
Input data setup timet
Input data hold timet
t
cyc
cyc
SCKC
STMXS
STMXH
SRMXS
SRMXH
(VDD = 4.5 to 5.5 V, Ta = –40 to +85°C)
f
= 25 MHz40—
OSC
4 t
cyc
2tφ – 5—
CL = 50 pF
5tφ – 10—
13—
0—
FEDL66517-01
ML66517 Family
—
ns
Note: tφ = t
cyc
/2
CPUCLK
TXC/RXC
SDOUT
(TXD)
SDIN
(RXD)
t
SRMXS
t
SRMXH
t
STMXH
t
SCKC
t
STMXS
21/29
Page 22
1
Semiconductor
Slave mode (Clock synchronous serial port)
ParameterSymbolConditionMin.Max.Unit
Cycle timet
Serial clock cycle timet
Output data setup timet
Output data hold timet
Input data setup timet
Input data hold timet
t
cyc
CPUCLK
cyc
SCKC
STMXS
STMXH
SRMXS
SRMXH
(VDD = 4.5 to 5.5 V, Ta = –40 to +85°C)
f
= 25 MHz40—
OSC
4 t
cyc
2tφ – 15—
CL = 50 pF
4tφ – 10—
13—
3—
FEDL66517-01
ML66517 Family
—
ns
Note: tφ = t
cyc
/2
TXC/RXC
SDOUT
(TXD)
t
STMXH
SDIN
(RXD)
t
SRMXS
t
SRMXH
Measurement points for AC timing (the serial port)
V
DD
0 V
0.8V
0.2V
DD
Measurement points for AC timing (except the serial port)
between the A/D conversion
results when the same
analog input is applied to AI0
through AI7 and the A/D
conversion results of the
circuit to the left.
*AI4 to AI7 for the ML66Q515/ML66514
0.1 µF
V
REF
AI1
to
AI7*
or AGND
Measurement Circuit 2
*AI4 to AI7 for the ML66Q515/ML66514
23/29
Page 24
FEDL66517-01
1
Semiconductor
ML66517 Family
Definition of Terminology
1. Resolution
Resolution is the value of minimum discernible analog input.
With 10 bits, since 2
10
= 1024, resolution of (V
– AGND) ÷ 1024 is possible.
REF
2. Linearity error
Linearity error is the difference between ideal conversion characteristics and actual conversion characteristics
of a 10-bit A/D converter (not including quantization error).
Ideal conversion characteristics can be obtained by dividing the voltage between V
and AGND into 1024
REF
equal steps.
3. Differential linearity error
Differential linearity error indicates the smoothness of conversion characteristics. Ideally, the rang e of analog
input voltage that corresponds to 1 converted bit of digital output is 1LSB = (V
– AGND) ÷ 1024.
REF
Differential error is the difference between this ideal bit size and bit size of an arbitrary point in the con version
range.
4. Zero scale error
Zero scale error is the difference between ideal conversion characteristics and actual conversion characteristics
at the point where the digital output changes from 000H to 001H.
5. Full-scale error
Full-scale error is the difference between ideal conversion characteristics and actual conversion characteristics
at the point where the digital output changes from 3FEH to 3FFH.
24/29
Page 25
FEDL66517-01
1
Semiconductor
ML66517 Family
PACKAGE DIMENSIONS
(Unit: mm)
QFP80-P-1420-0.80-BK
Mirror finish
Package materialEpoxy resin
Lead frame material42 alloy
Notes for Mounting the Surface Mount Type Packages
The surface mount type packages are very susceptible to heat in reflow mounting and humidity
absorbed in storage.
Therefore, before you perf orm r eflow mounting, contac t Oki’s res ponsible sal es person on t he product
name, package name, pin n umber, package code and desired m ounting conditions (reflow method,
temperature and times).
25/29
Page 26
FEDL66517-01
1
Semiconductor
(Unit: mm)
SDIP64-P-750-1.778
ML66517 Family
5
Package material Epoxy resin
Lead frame material Cu alloy
Pin treatment
Package weight (g) 8.70 TYP.
Rev. No./Last Revised 2/Dec. 11, 1996
Solder plating (≥5µm)
26/29
Page 27
FEDL66517-01
1
Semiconductor
(Unit: mm)
QFP64-P1414-0.80-BK
ML66517 Family
Epoxy resin
42 alloy
Solder plating (≥5µm)
0.87 TYP.
5/Sept.21,1999
5
Package material
Lead frame material
Pin treatment
Package weight (g)
Rev. No./Last Revised
Notes for Mounting the Surface Mount Type Packages
The surface mount type packages are very susceptible to heat in reflow mounting and humidity
absorbed in storage.
Therefore, before you perf orm r eflow mounting, contac t Oki’s res ponsible sal es person on t he product
name, package name, pin n umber, package code and desired m ounting conditions (reflow method,
temperature and times).
27/29
Page 28
1
Semiconductor
REVISION HISTORY
DateChanges compared to previous version
Mar. 2000Apr. 2001- Modified the contents on P-1.
- Added the contents in table on P-2.
- Modified the contents in Fig. on P-9.
- Added the contents of P3_2 and P3_3 in table on P-10 and P-13.
- Modified the contents of P5_6 and P5_7 in table on P-13.
- Added the contents of V
- Modified the contents of “H” output pin (1pin) in table on P-17.
- Added the contents in Fig. and table on P-23.
and AGND in table on P-12 and P-15.
REF
FEDL66517-01
ML66517 Family
28/29
Page 29
FEDL66517-01
1
Semiconductor
ML66517 Family
NOTICE
1. The information contained herein can change without notice owing to produ ct an d/or techn i cal improv em ents.
Before using the product, please make sure that the information being referred to is up-to-date.
2. The outline of action and examples for application circuits described herein have been chosen as an explanation
for the standard action and performance of the product. When planning to use the product, please ensure that
the external conditions are reflected in the actual circuit, assembly, and program designs.
3. When designing your product, please use our product below the specified maximum ratings and within the
specified operating ranges including, but not limited to, operating voltage, power dissipation, and operating
temperature.
4. Oki assumes no responsibility or liability whatsoever for any failure or unus ual or
unexpected operation resulting from misuse, neglect, improper installation, repair, alteration or accident,
improper handling, or unusual physical or electrical stress including, but not limited to, exposure to parameters
beyond the specified maximum ratings or operation outside the specified operating range.
5. Neither indemnity against nor license of a third party’s industrial and intellectual property right, etc. is granted
by us in connection with the use of the product and/or the information and drawings contained herein. No
responsibility is assumed by us for any infringement of a third party’s right which may result fro m the use
thereof.
6. The products listed in this document are intended for use in general electronics equipment for commercial
applications (e.g., office automation, communication equipment, measurement equipment, consumer
electronics, etc.). These products are not authorized for use in any system or application that requires special or
enhanced quality and reliability characteristics nor in any s ystem or application where the failure of such
system or application may result in the loss or damage of property, or death or injury to humans.
Such applications include, but are not limited to, traffic and automotive equipment, safety devices, aerospace
equipment, nuclear power control, medical equipment, and life-support systems.
7. Certain products in this document may need government approval before they can be exported to particular
countries. The purchaser as su m es the res pon s i bility of determining the legali ty of export of these products and
will take appropriate and necessary steps at their own expense for these.
8. No part of the contents contained herein may be reprinted or reproduced without our prior permission.
Copyright 2001 Oki Electric Industry Co., Ltd.
29/29
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.