MSM66Q589GS-BK [OKI]
Microcontroller, 16-Bit, FLASH, 20MHz, CMOS, PQFP12, QFP-128;型号: | MSM66Q589GS-BK |
厂家: | OKI ELECTRONIC COMPONETS |
描述: | Microcontroller, 16-Bit, FLASH, 20MHz, CMOS, PQFP12, QFP-128 时钟 微控制器 外围集成电路 |
文件: | 总28页 (文件大小:255K) |
中文: | 中文翻译 | 下载: | 下载PDF数据表文档文件 |
FEDL66589-01
This version: Sep. 2000
¡ Semiconductor
MSM66589/66P589/66Q589
OLMS-66K Series CMOS 16-Bit Microcontroller
GENERAL DESCRIPTION
The MSM66589/66P589/66Q589 is a high-speed, high-performance 16-bit microcontroller that
employs OKI original nX-8/500S CPU core.
The MSM66589/66P589/66Q589 includes a 16-bit CPU, ROM, RAM, a 10-bit A/D converter,
serial ports, flexible timers, pulse-width modulator (PWM), and I/O ports.
The MSM66Q589, used for program developments, is a Flash EEPROM version.
FEATURES
• Program memory space
Internal ROM
• Data memory space
Internal RAM
: 128K bytes
: 96K bytes
: 64K bytes
: 4K bytes
• High-speed execution
Minimum instruction execution time : 100 nsec (@ 20 MHz)
• Built-in multiplier
• Powerful instruction set
: Instruction set superior in orthogonal matrix
8/16-bit data transfer instructions
8/16-bit arithmetic instructions
Multiplication and division operation instructions
Bit manipulation instructions
Bit logic instructions
ROM table reference instructions
: Register addressing
• Abundant addressing modes
Page addressing
Pointing register indirect addressing
Stack addressing
Immediate addressing
• I/O port
Analog input only ports
Input-output ports
: 16 channels
: 11 ports ¥ 8 bits, 1 port ¥ 6 bits
(Each bit can be configured to be an input or output)
• Flexible timers
Free run counters
19-bit CAP with a divider
16-bit double buffer RTO
16-bit RTO/PWM
: 19 bits ¥ 1, 16 bits ¥ 1
: 4
: 6
: 2
: 6
: 1
: 1
: 8
: 1
16-bit CAP/RTO
• 8-bit general timer
8-bit event counter
• 16-bit PWM
Input clock divider
• 8-bit serial ports
UART mode with BRG
: 1
1/28
FEDL66589-01
¡ Semiconductor
MSM66589/66P589/66Q589
Synchronous/UART switchable mode
with BRG
: 1
• 10-bit A/D converter
• Transition detector
• Watchdog timer
• Interrupts
: 16 channels
: 6
: 1
Non-maskable
: 1
Maskable
: Internal 47/external 2
(4-level priority can be set)
• ROM window function
• Standby modes
HALT mode
STOP mode
• Package:
128-pin plastic QFP (QFP128-P-2828-0.80-BK) (Product name: MSM66589-¥¥¥GS-BK)
(Product name: MSM66P589-¥¥¥GS-BK)
(Product name: MSM66Q589GS-BK)
¥¥¥ indicates the code number.
2/28
P2_0/RTO4
P2_5/RTO9
P2_6/FTM10
P3_0/FTM11A
P3_1/FTM11B
EA
ALE/P5_5
PSEN/P5_4
RD/P7_1
WR/P7_0
WAIT/P7_2
Flexible Timer
P3_3/FTM11D
P3_4/CAP0
CPU Core
Control
RAM
4K bytes
P3_7/CAP3
Registers
P10_0/RTO12
P10_1/RTO13
P10_2/FTM14
SSP
LRB
PSW
AD0/P0_0
AD7/P0_7
A8/P1_0
Memory Control
PC
Pointing R.
Local R.
P10_5/FTM17
TSR CSR
P6_2/RXD1
P6_3/TXD1
P6_4/RXC1
P6_5/TXC1
P6_6/RXD0
P6_7/TXD0
ROM
96K bytes
Serial Port
PWM
A15/P1_7
A16/P9_0
ALU
P7_4/PWM0
P8_3/PWM7
Instruction
Decoder
AVDD
V
ARGENFD
AI0
A/ D
ALU Control
ACC
Converter
AI15
P4_0/ETMCK
P4_1/ECTCK
Event Timer
P4_2/TRNS0
P4_7/TRNS5
Transition
Detector
System Control
Port Control
P6_0/INT0
P6_1/INT1
NMI
Interrupt
O
S
C
0
O
S
C
1
R
E
S
P P P P P P P PPPPP
0 1 2 3 4 5 6 7 8 9 1 1
0 1
O
E
Peripheral
WDT
P7_3/CLKOUT
FEDL66589-01
¡ Semiconductor
MSM66589/66P589/66Q589
PIN CONFIGURATION (TOP VIEW)
TRNS3/P4_5
TRNS4/P4_6
TRNS5/P4_7
P5_0
1
2
3
4
5
6
7
8
9
96 P2_6/FTM10
95 P2_5/RTO9
94 P2_4/RTO8
93 P2_3/RTO7
92 P2_2/RTO6
91 P2_1/RTO5
90 P2_0/RTO4
89 VDD
P5_1
P5_2
P5_3
NMI
RES
88 P9_7
EA 10
87 P9_6
VDD 11
86 P9_5
AVDD 12
VREF 13
AI0 14
85 P9_4
84 P9_3
83 P9_2
AI1 15
82 P9_1
AI2 16
81 P9_0/A16
80 P1_7/A15
79 P1_6/A14
78 P1_5/A13
77 P1_4/A12
76 P1_3/A11
75 P1_2/A10
74 P1_1/A9
73 P1_0/A8
72 GND
AI3 17
AI4 18
AI5 19
AI6 20
AI7 21
AI8 22
AI9 23
AI10 24
AI11 25
AI12 26
AI13 27
AI14 28
AI15 29
AGND 30
GND 31
INT0/P6_0 32
71 P0_7/AD7
70 P0_6/AD6
69 P0_5/AD5
68 P0_4/AD4
67 P0_3/AD3
66 P0_2/AD2
65 P0_1/AD1
128-Pin Plastic QFP (FLAT)
4/28
FEDL66589-01
¡ Semiconductor
MSM66589/66P589/66Q589
PIN DESCRIPTION
Symbol
Type
Description
P0: 8-bit input-output port. Each bit can be assigned to be an input or an output.
AD: When an external memory is used, these pins output the lower 8 bits of the address.
These pins also input or output the data.
P0_0-P0_7/
AD0-AD7
I/O
P1_0-P1_7/
A8-A15
P1: 8-bit input-output port. Each bit can be assigned to input or output.
A: When an external memory is used, these pins output the upper 8 bits of the address.
I/O
I/O
P2_0-P2_5/
RTO4-RTO9
P2_6/FTM10
P2_7
P2: 8-bit input-output port. Each bit can be assigned to input or output.
RTO: Output pin for real time output
FTM10: Capture input pin or real-time output pin
P3_0-P3_3/
FTM11A-FTM11D
P3_4-P3_7/
P3: 8-bit input-output port. Each bit can be assigned to input or output.
FTM11A: Capture input pin or real-time output pin
I/O
I/O
FTM11B-D:
4-port real-time output pin
CAP0-CAP3
CAP : Capture input pin
P4_0/ETMCK
P4_1/ECTCK
P4_2-P4_7/
P4: 8-bit input-output port. Each bit can be assigned to input or output.
ETMCK: External clock input pin of 8-bit general timer
ECTCK: External clock input pin of 8-bit event counter
TRNS: Transition detector input pin
TRNS0-TRNS5
P5_0-P5_3
P5_4/PSEN
P5_5/ALE
P5: 6-bit input-output port. Each bit can be assigned to input or output.
PSEN: Strobe pulse output pin to fetch to external program memory
ALE: Timing pulse output pin to latch the lower 8 bits of the address output from port 0
when the CPU accesses the external memory
I/O
I/O
P6: 8-bit input-output port. Each bit can be assigned to input or output.
INT0, 1: External interrupt request input pin
RXD1 : SCI1 Receiver data input pin
TXD1 : SCI1 Transmitter data output pin
RXC1 : SCI1 Receiver circuit clock pin
TXC1 : SCI1 Transmitter circuit clock pin
RXD0 : SCI0 Receiver data input pin
TXD0 : SCI0 Transmitter data output pin
P6_0/INT0
P6_1/INT1
P6_2/RXD1
P6_3/TXD1
P6_4/RXC1
P6_5/TXC1
P6_6/RXD0
P6_7/TXD0
P7: 8-bit input-output port. Each bit can be assigned to input or output.
WR: Write strobe output pin for external data memory
RD: Read strobe output pin for external data memory
WAIT: CPU wait request input pin when accessing external data memory
CLKOUT: Output pin to output clock pulse specified by PRPHF
PWM: PWM output pin
P7_0/WR
P7_1/RD
P7_2/WAIT
P7_3/CLKOUT
P7_4-P7_7/
PWM0-PWM3
I/O
P8: 8-bit input-output port. Each bit can be assigned to input or output.
PWM: PWM output pin
P8_0-P8_3/
PWM4-PWM7
P8_4-P8_7
I/O
I/O
P9_0/A16
P9_1-P9_7
P9: 8-bit input-output port. Each bit can be assigned to input or output.
A16: When an external program memory is used, this pin outputs the MSB of the
address.
P10: 8-bit input-output port. Each bit can be assigned to input or output.
RTO: Output pin for real time output.
FTM: Capture input pin or real-time output pin
P10_0-P10_1/
RTO12-RTO13
P10_2-P10_5/
FTM14-FTM17
P10_6-P10_7
I/O
I/O
P11_0-P11_7
P11: 8-bit input-output port. Each bit can be assigned to input or output.
5/28
FEDL66589-01
¡ Semiconductor
MSM66589/66P589/66Q589
PIN DESCRIPTION (Continued)
Symbol
Type
Description
Analog signal input pin for A/D converter
I
AI0-AI15
I
AVDD
Power supply input pin for A/D converter
Reference voltage input pin for A/D converter
GND input pin for A/D converter
I
I
VREF
AGND
OSC0
OSC1
I
Basic clock oscillation pin
O
When P0, P1, P2, P7_4-P7_7, and P8-P11 are in an output state and OE pin is "H"
level, P0, P1, P2, P7_4-P7_7, and P8-P11 go to a high-impedance state.
When P0, P1, P2, P7_4-P7_7, and P8-P11 are in an output state and OE pin is "L"
level, P0, P1, P2, P7_4-P7_7, and P8-P11 output "H" or "L" level.
However, when P0, P1, P2, P7_4-P7_7, and P8-P11 are in an input state, these
ports are not under the influence of OE pin.
I
OE
I
I
NMI
Nonmaskable interrupt request input pin
Low-active RESET input pin
RES
Normally set to "H" level. If set to "L" level, the program memory goes into
external access mode and accesses external program memory
I
EA
I
I
VDD
Power supply pin
Ground pin
GND
6/28
FEDL66589-01
¡ Semiconductor
MSM66589/66P589/66Q589
REGISTERS
Accumulator
15
15
0
0
ACC
Control Register (CR)
Program Status Word
PSW
Bit 15 : Carry flag (CY)
Bit 14 : Zero flag (ZF)
Bit 13 : Half carry flag (HC)
Bit 12 : Data descriptor (DD)
Bit 11 : Sign flag (S)
Bit 10 : Master interrupt priority flag (MIP)
Bit 9 : Overflow flag (OV)
Bit 8 : Master interrupt enable flag (MIE)
Bit 7 : Multiply and accumulate operation bank flag (MAB)*
Bit 6 : User flag (F1)
Bit 5 : Bank common base (BCB1)*
Bit 4 : Bank common base (BCB0)*
Bit 3 : User flag (F0)
Bit 2-0 : System control base 2-0 (SCB2-0)
* Bit 7 (MAB), Bit 5 (BCB1), and Bit 4 (BCB0) can be used
as the User flag.
15
0
Program Counter
Local Register Base
System Stack Pointer
PC
LRB
SSP
Segment Register
7
0
Code Segment Register
CSR
TSR
Table Segment Register
Pointing Register (PR)
15
0
Index Register 1
Index Register 2
Data pointer
X1
X2
DP
User Stack Pointer
USP
7/28
FEDL66589-01
¡ Semiconductor
MSM66589/66P589/66Q589
7
0 7
0
Local Register
ER0
ER1
ER2
R1
R3
R5
R7
R0
R2
R4
R6
ER3
8/28
FEDL66589-01
¡ Semiconductor
MSM66589/66P589/66Q589
SFR
Abbreviated Abbreviated
Name (BYTE) Name (WORD)
8/16
Operation
Reset
Status
Address [H]
Name
R/W
0000
0001
0002
0003
0004
0005
0006
0007
0008✩
0009
000A
000B
000C✩
000D✩
000E
000F✩
0010
0011
0012
0013
0014
0015✩
0016
0017
0018
0019
001A
001B
001C
001D✩
001E
001F
—
SSP
LRB
PSW
16
FFFF
System Stack Pointer
Local Register Base
Program Status Word
LRBL
LRBH
PSWL
PSWH
ACCL
ACCH
TSR
Undefined
00
00
00
00
00
R/W
8/16
8
ACC
—
Accumulator
Table Segment Register
ROMWIN
ROMRDY
RAMRDY
STPACP
SBYCON
P0
—
—
—
—
—
00
FF
ROM Window Register
ROM Ready Control Register
RAM Ready Control Register
Stop Code Acceptor
Standby Control Register
Port 0 Data Register
Port 1 Data Register
Port 2 Data Register
Port 3 Data Register
Port 4 Data Register
Port 5 Data Register
Port 6 Data Register
Port 7 Data Register
Port 0 Mode Register
Port 1 Mode Register
Port 2 Mode Register
Port 3 Mode Register
Port 4 Mode Register
Port 5 Mode Register
Port 6 Mode Register
Port 7 Mode Register
Port 8 Data Register
Port 9 Data Register
Port 10 Data Register
Port 11 Data Register
R/W
W
8
FF
"0"
C8
00
00
00
00
00
C0
00
00
00
00
00
00
00
C0
00
00
00
00
00
00
P0P1
P2P3
P1
P2
P3
P4
P4P5
P5
P6
P6P7
P7
P0IO
P1IO
P2IO
P3IO
P4IO
P5IO
P6IO
P7IO
P8
P0P1IO
P2P3IO
P4P5IO
P6P7IO
P8P9
8/16
R/W
0020
0021
0022
0023
0024
0025✩
0026✩
0027
P9
P10
P10P11
TRNSCON
P11
—
16
8
F000
TRNS Control Register
—
TRNSIT
WDT
—
—
C0
Transition Detector
Watchdog Timer
Stop
W
✩ mark in the address column indicates that there is a nonexistent bit in its register.
9/28
FEDL66589-01
¡ Semiconductor
MSM66589/66P589/66Q589
SFR (Continued)
Abbreviated Abbreviated
Name (BYTE) Name (WORD)
8/16
Operation
Reset
Status
Address [H]
Name
R/W
0028
0029
002A
002B
002C✩
002D✩
002E
002F
Port 8 Mode Register
P8IO
00
00
00
00
C0
F0
P8P9IO
P9IO
Port 9 Mode Register
8/16
Port 10 Mode Register
P10IO
P10P11IO
P11IO
Port 11 Mode Register
R/W
A/D Interrupt Control Register
A/D Hardware Select Enable Register
ADINTCON
ADHENCON
—
—
—
8
A/D Hardware Select Register
ADHSEL
16
0000
—
0030
0031
0032✩
0033
0034
0035✩
0036
0037
0038✩
0039✩
003A✩
003B
003C
003D
003E
003F
Port 1 Secondary Function Control Register
Port 2 Secondary Function Control Register
Port 3 Secondary Function Control Register
Port 4 Secondary Function Control Register
Port 5 Secondary Function Control Register
Port 6 Secondary Function Control Register
Port 7 Secondary Function Control Register
Port 8 Secondary Function Control Register
Port 9 Secondary Function Control Register
Port 10 Secondary Function Control Register
P1SF
P2SF
P3SF
P4SF
P5SF
P6SF
P7SF
P8SF
P9SF
P10SF
—
—
—
—
—
—
—
—
—
-—
00
80
00
00
CF
00
00
F0
00
00
R/W
8
IRQD0L
IRQD0H
IRQD1L
IRQD1H
IRQ0L
IRQ0H
IRQ1L
IRQ1H
IE0L
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
Interrupt Request Flag
Disable Register 0
IRQD0
IRQD1
IRQ0
IRQ1
IE0
Interrupt Request Flag
Disable Register1
0040
0041
0042
0043
0044
0045
0046
0047
0048
0049
004A
004B
004C
004D
004E
004F
Interrupt Request Register 0
Interrupt Request Register 1
Interrupt Enable Register 0
Interrupt Enable Register 1
R/W
8/16
IE0H
IE1L
IE1
IE1H
Interrupt Priority Control
Register 00
IP00L
IP00H
IP01L
IP01H
IP10L
IP10H
IP11L
IP11H
IP00
IP01
IP10
IP11
Interrupt Priority Control
Register 01
Interrupt Priority Control
Register 10
Interrupt Priority Control
Register 11
✩ mark in the address column indicates that there is a nonexistent bit in its register.
10/28
FEDL66589-01
¡ Semiconductor
MSM66589/66P589/66Q589
SFR (Continued)
Abbreviated Abbreviated
Name (BYTE) Name (WORD)
8/16
Operation
Reset
Status
Address [H]
Name
R/W
0050
0051
0052
0053
0054
0055
0056
0057
0058
0059
005A
005B
005C
005D
005E
005F
0060
0061
0062
0063
0064
0065
0066
0067
0068
0069
006A
006B
006C
006D
006E
006F
0070
0071
0072
0073
0074
0075
0076
0077
PWM Counter 0
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
PWC0
PWC1
FFFF
FFFF
FFFF
FFFF
FFFF
FFFF
FFFF
FFFF
FFFF
FFFF
FFFF
FFFF
FFFF
FFFF
FFFF
FFFF
0000
0000
0000
0000
PWM Counter 1
PWM Counter 2
PWC2
PWM Counter 3
PWC3
R
PWM Counter 4
PWC4
PWM Counter 5
PWC5
PWM Counter 6
PWC6
PWM Counter 7
PWC7
PWC0 Buffer Register
PWC1 Buffer Register
PWC2 Buffer Register
PWC3 Buffer Register
PWC4 Buffer Register
PWC5 Buffer Register
PWC6 Buffer Register
PWC7 Buffer Register
PWR0 Buffer Register
PWR1 Buffer Register
PWR2 Buffer Register
PWR3 Buffer Register
PWC0BF
PWC1BF
PWC2BF
PWC3BF
PWC4BF
PWC5BF
PWC6BF
PWC7BF
PW0BF
PW1BF
PW2BF
PW3BF
16
R/W
✩ mark in the address column indicates that there is a nonexistent bit in its register.
11/28
FEDL66589-01
¡ Semiconductor
MSM66589/66P589/66Q589
SFR (Continued)
Abbreviated Abbreviated
Name (BYTE) Name (WORD)
8/16
Operation
Reset
Status
Address [H]
Name
R/W
0078
0079
007A
007B
007C
007D
007E
007F
0080
0081
0082
0083
0084
0085
0086
0087
0088
0089
008A
008B
008C
008D
008E
008F
0090
0091
0092
0093
0094
0095
0096
0097
0098
0099
009A
009B
009C
009D
009E
009F
PWR4 Buffer Register
PWR5 Buffer Register
PWR6 Buffer Register
PWR7 Buffer Register
Timer Register 0
Timer Register 1
Timer Register 2
Timer Register 3
Timer Register 4
Timer Register 5
Timer Register 6
Timer Register 7
Timer Register 8
Timer Register 9
Timer Register 10
Timer Register 11
Timer Register 12
Timer Register 13
Timer Register 14
Timer Register 15
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
PW4BF
PW5BF
PW6BF
PW7BF
TMR0
0000
0000
R/W
0000
0000
Undefined
Undefined
Undefined
Undefined
0000
TMR1
R
TMR2
TMR3
TMR4
TMR5
0000
16
TMR6
0000
TMR7
0000
TMR8
0000
TMR9
0000
R/W
TMR10
TMR11
TMR12
TMR13
TMR14
TMR15
0000
0000
0000
0000
0000
0000
✩ mark in the address column indicates that there is a nonexistent bit in its register.
12/28
FEDL66589-01
¡ Semiconductor
MSM66589/66P589/66Q589
SFR (Continued)
Abbreviated Abbreviated
Name (BYTE) Name (WORD)
8/16
Reset
Address [H]
Name
R/W
Operation Status
00A0
00A1
00A2
00A3
00A4
00A5
00A6
00A7
00A8
00A9
00AA
00AB
00AC
00AD
00AE
00AF
Timer Register 16
—
—
—
—
—
—
—
—
TMR16
TMR17
0000
Timer Register 17
0000
0000
TMR4 Buffer Register
TMR5 Buffer Register
TMR6 Buffer Register
TMR7 Buffer Register
TMR12 Buffer Register
TMR13 Buffer Register
TMR4BF
TMR5BF
TMR6BF
TMR7BF
TMR12BF
TMR13BF
0000
16
0000
0000
0000
0000
RTOCON0
RTOCON1
RTOCON2
RTOCON3
RTOCON4
RTOCON5
RTOCON6
RTOCON7
RTOCON8
RTOCON9
RTOCON10
RTOCON11
RTOCON12
RTOCON13
RTOCON14
TM0L
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
F8
F8
F8
F8
FC
FC
F8
00B0✩ RTO Control Register 0
00B1✩ RTO Control Register 1
00B2✩ RTO Control Register 2
00B3✩ RTO Control Register 3
00B4✩ RTO Control Register 4
00B5✩ RTO Control Register 5
00B6✩ RTO Control Register 6
00B7✩ RTO Control Register 7
R/W
8
F8
00
F8
F8
F8
F8
F8
F8
1F
00B8
RTO Control Register 8
00B9✩ RTO Control Register 9
00BA✩ RTO Control Register 10
00BB✩ RTO Control Register 11
00BC✩ RTO Control Register 12
RTO Control Register 13
00BD✩
00BE✩ RTO Control Register 14
00BF✩ Timer Counter 0 Low-order 3 bits
00C0
—
—
TM0
TM1
0000
0000
Timer Counter 0
00C1
16
8
00C2
Timer Counter 1
00C3
TMR0L
TMR1L
TMR2L
TMR3L
—
—
—
—
Undefined
Undefined
Undefined
Undefined
00C4✩ TMR0 Low-order 3 Bits
00C5✩ TMR1 Low-order 3 Bits
00C6✩ TMR2 Low-order 3 Bits
R
TMR3 Low-order 3 Bits
00C7✩
✩ mark in the address column indicates that there is a nonexistent bit in its register.
13/28
FEDL66589-01
¡ Semiconductor
MSM66589/66P589/66Q589
SFR (Continued)
Abbreviated Abbreviated
Name (BYTE) Name (WORD)
8/16
Reset
Address [H]
Name
R/W
Operation Status
00C8✩ Event Dividing Counter 0
EVDV0
EVDV1
—
—
C0
C0
C0
00C9✩ Event Dividing Counter 1
00CA✩ Event Dividing Counter 2
00CB✩ Event Dividing Counter 3
00CC✩ EVDV0 Buffer Register
00CD✩ EVDV1 Buffer Register
00CE✩ EVDV2 Buffer Register
00CF✩ EVDV3 Buffer Register
EVDV2
—
EVDV3
—
C0
C0
C0
C0
C0
R/W
8
EVDV0BF
EVDV1BF
EVDV2BF
EVDV3BF
ADCR0
—
—
—
—
00D0
00D1
00D2
00D3
00D4
00D5
00D6
00D7
00D8
00D9
00DA
00DB
00DC
00DD
00DE
00DF
A/D Result Register 0
A/D Result Register 1
A/D Result Register 2
A/D Result Register 3
A/D Result Register 4
A/D Result Register 5
A/D Result Register 6
A/D Result Register 7
A/D Result Register 8
A/D Result Register 9
A/D Result Register 10
A/D Result Register 11
A/D Result Register 12
A/D Result Register 13
A/D Result Register 14
A/D Result Register 15
ADCR0W
ADCR1W
ADCR2W
ADCR3W
ADCR4W
ADCR5W
ADCR6W
ADCR7W
ADCR8W
ADCR9W
ADCR10W
ADCR11W
ADCR12W
ADCR13W
ADCR14W
ADCR15W
—
ADCR1
ADCR2
ADCR3
ADCR4
ADCR5
ADCR6
ADCR7
R/W
(*1)
8/16
(*1)
Undefined
ADCR8
ADCR9
ADCR10
ADCR11
ADCR12
ADCR13
ADCR14
ADCR15
ADCONL
ADCONH
TMCON
TMSEL2
80
80
00
C0
00E0✩ A/D Control Register L
00E1✩ A/D Control Register H
—
8
—
00E2
Timer Control Register
—
00E3✩ TM Setting Register 2
00E4
16
8
—
TMSEL
0000
TM Setting Register
00E5✩
TMRMODE
—
—
00
C0
00E6
TMR Mode Register
TMRMODE2
00E7✩ TMR Mode Register 2
R/W
00E8
—
CAPCON
16
0000
Capture Control Register
00E9✩
CAPCON2
PWRUN
—
—
—
—
—
—
00
00
00
00
00
00
00EA
00EB
00EC
00ED
00EE
00EF
Capture Control Register 2
PWM RUN Register
PWCON0
PWCON1
PWCON2
PWCON3
PWM Control Register 0
PWM Control Register 1
PWM Control Register 2
PWM Control Register 3
8
✩ mark in the address column indicates that there is a nonexistent bit in its register.
14/28
FEDL66589-01
¡ Semiconductor
MSM66589/66P589/66Q589
SFR (Continued)
Abbreviated Abbreviated
Name (BYTE) Name (WORD)
8/16
Reset
Address [H]
Name
R/W
Operation Status
00F0
00F1
00F2
00F3
00F4
00F5
00F6
00F7
00F8✩
00F9
00FA
00FB
00FC✩
00FD✩
00FE
00FF
PWM Interrupt Register 0
PWINTQ0
PWINTQ
PWINTQ1
00
PWM Interrupt Register 1
00
8/16
00
PWM Interrupt Enable Register 0
PWM Interrupt Enable Register 1
SCI0 Transmit/Receive Buffer Register
SCI0 Status Register
PWINTE0
PWINTE
PWINTE1
00
Undefined
00
S0BUF
S0STAT
S1BUF
—
—
—
—
—
—
—
—
—
—
SCI1 Transmit/Receive Buffer Register
SCI1 Status Register
R/W
Undefined
00
S1STAT
GTMCON
GEVC
General-purpose 8-bit Timer Control Register
8-bit Event Counter
30
8
00
General-purpose 8-bit Timer Counter
General-purpose 8-bit Timer Register
GTMC
00
00
88
88
GTMR
EVNTCONL
EVNTCONH
Event Control Register
Emulator Use Area
* Note 3
0100
Memory Size Acceptor
MEMSACP
MEMSCON
—
—
"0"
W
8
0101✩ Memory Size Control Register
FC
R/W
0102
0103
0104
0105
0106
0107✩ Peripheral Control Register
PRPHF
NMICON
EXICON
—
—
—
(*3)
R/W
0108✩ NMI Control Register
FC or 7C
00
8
0109✩ External Interrupt Control Register
010A
010B
010C
010D
010E
010F
0110
SCI0 Timer
0111
—
S0TM
0000
16
8
R/W
SCI0 Timer Control Register
SCI0 Transmit Control Register
SCI0 Receive Control Register
S0CON
ST0CON
SR0CON
—
—
—
02
8A
1A
0112✩
0113✩
0114✩
0115
0116
0117
15/28
FEDL66589-01
¡ Semiconductor
MSM66589/66P589/66Q589
SFR (Continued)
Abbreviated Abbreviated
Name (BYTE) Name (WORD)
8/16
Reset
Address [H]
Name
R/W
Operation Status
0118
—
S1TM
0000
SCI1 Timer
16
8
0119
R/W
S1CON
ST1CON
SR1C0N
—
—
—
02
88
08
SCI1 Timer Control Register
SCI1 Transmit Control Register
SCI1 Receive Control Register
011A✩
011B✩
011C✩
011D
011E✩
011F✩
0120
R
TBCKDVC
TBCKDVR
—
—
F0
F0
TBC Clock Dividing Counter
TBC Clock Dividing Register
8
R/W
0121
0122
0123
0124
0125
0126
0127
✩ mark in the address column indicates that there is a nonexistent bit in its register.
*1 The 8/16 bit operation for the ADCR items is a special word manipulation. If a byte access is made, high-order 8 bits of
the A/D Result register are accessed, and if a word access is made, the 10-bit contents of the A/D Result register are
accessed.
Data can be written in the even number A/D Result registers and the odd number A/D Result registers separately.
When data is first written in the A/D Result register 0 (ADCR0), data is also written in other even number A/D Result
registers at a time. When data is first written in the A/D Result register 1 (ADCR1), data is also written in other odd A/D
Result registers at a time.
*2 Do not access the emulator use area.
*3 The initial values of PRPHF (SFR=107H) are as follows:
At reset by RES pin: VBFF (bit 6) is "1"; CKOUT1 (bit 1) and CKOUT0 (bit 0) are "0".
At reset by WDT and BRK instructions and operation code trap: VBFF (bit 6) holds the value just before reset; CKOUT1
(bit 1) and CKOUT0 (bit 0) are "0".
In both cases, the OE pin status is read for OERD (bit 7).
16/28
FEDL66589-01
¡ Semiconductor
MSM66589/66P589/66Q589
ADDRESSING MODES
The MSM66589/66P589/66Q589 provides independent 64K-byte data and 128K-byte program
spaces with various types of addressing modes. These modes are shown below for both RAM
(for data space) and ROM (for program space).
RAM Addressing Mode (for data space)
• Register addressing
Example
INC USP
USP
• Page addressing
a) sfr page
Example
0000H
0040H
L A, sfr IRQ0
SFR
b) Fixed page
Example
Example
0200H
02C0H
ST A, fix 0C0H
RAM
c) Current page
xx00H
xx78H
ROR off 078H
RAM
• Direct data addressing
Example
0700H
0780H
CLR dir 780H
RAM
17/28
FEDL66589-01
¡ Semiconductor
MSM66589/66P589/66Q589
• Pointing register indirect addressing
a) DP/X1 indirect
Example
XCHG A, [DP]
RAM
DP
b) Post increment DP indirect
Example
ADD A, [DP+]
DP
RAM
After access, DP is incremented by 2.
c) Post decrement DP indirect
Example
SUB A, [DP-]
DP
RAM
RAM
RAM
After access, DP is decremented by 2.
d) DP/USP indirect with 7-bit displacement
Example
AND A, 12[DP]
DP
–64 to +63
e) X1/X2 indirect with 16-bit base
Example
XOR A, 1234H[X1]
X1
0-65535
f) X1 indirect with 8-bit register (A, R0) displacement
Example
OR A, [X1+A]
RAM
AL
X1
18/28
FEDL66589-01
¡ Semiconductor
MSM66589/66P589/66Q589
• Special bit area addressing
a) Fixed page SBA area (02C0H to 02FFH)
Example
02C0H
RAM
SB sbafix 2D1H.3
02D1H
b) Current page SBA area (¥¥C0H to ¥¥FFH)
Example
¥¥C0H
RB sbaoff 2E9H.7
RAM
¥¥E9H
ROM Addressing Mode (for program space)
• Immediate addressing
Example
MOV SSP, #7FFH
ROM
Address
xxxxH
• Table data addressing
TSR specifies the address segment.
a) Direct
Example
LC A, 5678H
ROM
5678H
b) RAM addressing indirect
Example
CMPC A, [USP]
ROM
USP
c) RAM addressing indirect with 16-bit base
Example
LC A, 1234H[ER0]
0-65535
ROM
RAM
ER0
19/28
FEDL66589-01
¡ Semiconductor
MSM66589/66P589/66Q589
MEMORY MAP
Program Memory Space
Segment 0
0000H
Segment 1
0000H
Vector table area
(74 bytes)
0049H
004AH
VCAL table area
Internal
ROM area
Internal
ROM area
(32 bytes)
0069H
006AH
0FFFH
1000H
0FFFH
1000H
ACAL area
(2K bytes)
ACAL area
(2K bytes)
17FFH
1800H
17FFH
1800H
7FFFH
8000H
External
ROM area
FFFFH
FFFFH
Data Memory Space
0000H
SFR Area
00FFH
0100H
01FFH
0200H
02FFH
0300H
Expanded
SFR Area
Expanded SFR Area
01FFH
X1
0200H
0208H
0210H
FIX Area
X2
Internal RAM Area
SCB=0
DP
USP
X1
Area where
local
register
X2
SCB=1
DP
USP
X1
Pointing
Register Set
09FFH
0A00H
can be set
USP
X1
0238H
0240H
11FFH
1200H
X2
SCB=7
DP
USP
External Memory Area
02C0H
0300H
Area where SB, RB,
JBS, and JBR
instructions can be
performed in shorter
byte count.
Area where ROM
window can be set
SBA Area
(64 bytes)
FFFFH
20/28
FEDL66589-01
¡ Semiconductor
MSM66589/66P589/66Q589
ABSOLUTE MAXIMUM RATINGS
Parameter
Digital Power Supply Voltage
Input Voltage
Symbol
VDD
Condition
Rating
Unit
–0.3 to +7.0
VI
–0.3 to VDD+0.3
–0.3 to VDD+0.3
–0.3 to VDD+0.3
Output Voltage
VO
GND=AGND=0 V
V
Analog Power Supply Voltage
AVDD
Ta = 25°C
–0.3 to VDD+0.3 and
–0.3 to AVDD+0.3
Analog Reference Voltage
Analog Input Voltage
VREF
VAI
–0.3 to VREF
High-voltage Tolerant
Input Voltage*1
VHV
–0.3 to +13
Per package
Per output
855
50
Ta=85°C
Power Dissipation
PD
mW
–50 to +150
Storage Temperature
TSTG
—
°C
*1 Applied to EA (only for MSM66Q589)
Applya highvoltage totheEA pinafter avoltage within the range (4.75to5.25V)guaranteed
for operation is applied to V
.
DD
Remove a high voltage from the EA pin while a voltage within the range (4.75 to 5.25 V)
guaranteed for operation is being applied to V
.
DD
RECOMMENDED OPERATING CONDITIONS
Parameter
Symbol
Condition
Range
Unit
Digital Power Supply Voltage
VDD
fOSC£20 MHz
4.5 to 5.5
Digital Power Supply Voltage
during Flash ROM Programming
*1
Ta=0 to +70∞C
VWR
4.75 to 5.25
Analog Power Supply Voltage
Analog Reference Voltage
Analog Input Voltage
VDD=AVDD
—
AVDD
VREF
VAI
4.5 to 5.5
AVDD–0.3 to AVDD
AGND to VREF
2.0 to 5.5
V
—
Memory Hold Voltage
Operating Frequency
fOSC=0 Hz
DD=5 V±10%
VDDH
fOSC
Ta
V
0 to 20
MHz
Ambient Temperature
—
–40 to +85
°C
Ambient Temperature
during Flash ROM Programming
*1
VDD=4.75 to 5.25 V
TWR
0 to +70
MOS load
20
2
Fan Out
P0, P5_4, P5_5, P7_0, P7_1
—
N
TTL load
1
P1 to P11 (except P5_4,P5_5, P7_0, P7_1)
*1 Only for MSM66Q589
21/28
FEDL66589-01
¡ Semiconductor
MSM66589/66P589/66Q589
ELECTRICAL CHARACTERISTICS
DC Characteristics
(VDD=5 V±10%, Ta=–40 to +85˚C)
Typ.
Unit
Min.
Max.
VDD+0.3
VDD+0.3
0.8
Parameter
Symbol
Condition
–
–
–
–
–
–
–
–
–
–
H Level Input Voltage
2.2
1
VIH
–
2, 4, 5, 6, 7
0.80VDD
H Level Input Voltage
L Level Input Voltage
L Level Input Voltage 2, 4, 5, 6, 7
1
–0.3
–
VIL
VOH
VOL
–0.3
0.2VDD
–
V
IOH=–400 mA
IOH=–200 mA
H Level Output Voltage
H Level Output Voltage
L Level Output Voltage
L Level Output Voltage
Input Leakage Current
Input Current
1, 4
2
VDD–0.4
–
VDD–0.4
–
–
I
OL=3.2 mA
1, 4
2
0.4
IOL=1.6 mA
0.4
–
3, 6
5
1/–1
1/–250
µA
VI=VDD/0 V
IIH/IIL
–
–
–
–
Input Current
H Level Output Current
H Level Output Current
15/–15
–
7
1, 4
2
–2
–1
10
5
IOH
IOL
–
–
–
–
mA
VO=2.4 V
1, 4
2
L Level Output Current
L Level Output Current
–
–
–
–
Output Leakage Current 1, 2, 4
Input Capacitance
VO=VDD/0 V
±2
–
ILO
CI
µA
–
5
pF
f=1 MHz, Ta=25˚C
–
–
Output Capacitance
CO
7
–
–
6
mA
A/D in operation
A/D stopped
Analog Reference Current
IREF
–
–
µA
10
–
VDD=2 V, Ta=25˚C*
0.2
1
10
Current Consumption
(in STOP mode)
µA
IDDS
–
100
*
Current Consumption
(in HALT mode)
–
–
45
80
70
IDDH
IDD
fOSC=20 MHz
No load
mA
140
Current Consumption
1. Applied to P0
2. Applied to P1 to P11 (except P5_4, P5_5, P7_0, P7_1)
3. Applied to A
IN
4. Applied to P5_4, P5_5, P7_0, P7_1
5. Applied to RES
6. Applied to EA, OE, NMI
7. Applied to OSC0
*
Ports for input pins are V
or GND, otherwise no load.
DD
22/28
FEDL66589-01
¡ Semiconductor
MSM66589/66P589/66Q589
AC Characteristics
• External program memory control
(VDD=5 V±10%, Ta=–40 to +85°C)
Parameter
Clock (OSC) pulse width
ALE pulse width
Symbol
tøW
Condition
Min.
25
Max.
—
Unit
—
tAW
2tøW–10
2tøW–10
tøW–10
2tøW–20
tøW–10
3tøW–25
0
—
PSEN pulse width
tPW
—
PSEN pulse delay time
Low-order address set-up time
Low-order address hold time
High-order address set-up time
High-order address hold time
Instruction set-up time
Instruction hold time
tPAD
tALS
tALH
tAHS
tAPH
tIS
tøW+5
2tøW+0
tøW+5
3tøW+0
tøW+20
—
nsec
CL=50 pF
30
0
tIH
tøW–10
• External data memory control
(VDD=5 V±10%, Ta=–40 to +85°C)
Parameter
Clock (OSC) pulse width
ALE pulse width
Symbol
tøW
tAW
Condition
Min.
25
Max.
—
Unit
—
2tøW–10
2tøW–10
2tøW–10
tøW–10
tøW–10
2tøW–20
tøW–10
3tøW–25
tøW–0
30
—
RD pulse width
WR pulse width
tRW
tWW
tRAD
tWAD
tALS
tALH
tAHS
tAHH
tMS
—
—
RD pulse delay time
tøW+5
tøW+5
2tøW+0
tøW+5
3tøW+0
tøW+20
—
WR pulse delay time
Low-order address set-up time
Low-order address hold time
High-order address set-up time
High-order address hold time
Memory data set-up time
Memory data hold time
Data set-up time
nsec
CL=50 pF
0
tMH
tDD
tøW–10
tALH+15
tøW+20
tALH–0
tøW–10
Data hold time
tDH
23/28
FEDL66589-01
¡ Semiconductor
MSM66589/66P589/66Q589
CLK
ALE
t
t
øW
ø
W
tAW
PSEN
tPAD
tPW
AD 0-7
A 8-16
PC 0-7
tALS tALH
INST 0-7
tIS tIH
PC 8-16
tAHS
tAPH
RD
tRAD
tRW
AD 0-7
A 8-15
RAP 0-7
tALS tALH
DIN 0-7
tMS tMH
RAP 8-15
tAHH
tAHS
WR
tWAD
tWW
AD 0-7
RAP 0-7
tALS tALH
DOUT 0-7
tDH
tDD
A 8-15
RAP 8-15
tAHS
tAHH
24/28
FEDL66589-01
¡ Semiconductor
MSM66589/66P589/66Q589
A/D CONVERTER CHARACTERISTICS
(Ta=–40 to +85˚C, AVDD=VDD=VREF=5 V±10%, AGND=GND=0 V, fOSC=20 MHz)
Typ.
—
Unit
Min.
—
Max.
10
Parameter
Resolution
Symbol
Condition
n
Bit
Refer to the measuring
circuit. (Fig.1)
Analog input source
impedance
—
Linearity Error
EL
—
±3
—
ED
—
±1
Differential Linearity Error
Zero Scale Error
Full Scale Error
Crosstalk
—
—
+3
EZS
EFS
ECT
RI
£ 5 kW
LSB
t
CONV=19.2 msec
—
–3
—
—
—
±1
Refer to the measuring
circuit. (Fig.2)
—
tCONV
19.2
6.4
ms/CH
Conversion Time
by ADTM set data
47 W
AVDD
0.1
m
F
Reference
Voltage
+5 V
VREF
VDD
+
+
0.1 47
mF mF
0.1
mF
47
mF
RI
–
AI 0-15
+
Analog input
AGND
GND
0 V
0.1 mF
RI (Analog input source impedance) £ 5 kW
Fig.1 Measuring Circuit
25/28
FEDL66589-01
¡ Semiconductor
MSM66589/66P589/66Q589
Crosstalk is defined as the
difference between the A/D
conversion result when ap-
plying the identical analog
input to AI0 to AI15 and the A/D
conversion result in the circuit
in the left figure.
–
5 kW
AI0
AI1
+
Analog input
0.1mF
AI15
VREF or AGND
Fig.2 Crosstalk Measuring Circuit
Definitions of Terms
Resolution
10
The minimum distinguishable analog input value. For 10 bits, 2 =1024, i.e. (V –AGND)
REF
÷ 1024.
Linearity error
The variance between the ideal conversion characteristics as a 10-bit A/D converter and the
actual conversion characteristics. (Quantized error is therefore not included.)
In the ideal conversion, a voltage between V
and AGND is divided into 1,024 equal steps.
REF
Differential linearity error
The smoothness of the conversion. The width of analog input voltage corresponding to the
change by one bit of digital output is 1 LSB=(V –AGND) ÷ 1024 ideally. The variance
REF
between this ideal bit size and bit size at arbitrary point in the conversion range.
Zero scale error
The variance between the ideal conversion characteristics at the switching point of digital
output "000H to 001H" and actual conversion characteristics.
Full scale error
The variance between the ideal conversion characteristics at the switching point of digital
output "3FEH to 3FFH" and actual conversion characteristics.
26/28
FEDL66589-01
¡ Semiconductor
MSM66589/66P589/66Q589
PACKAGE DIMENSIONS
(Unit : mm)
QFP128-P-2828-0.80-BK
Mirror finish
Package material
Epoxy resin
Lead frame material
Pin treatment
Package weight (g)
Rev. No./Last Revised
Cu alloy
Solder plating (≥5 mm)
5.58 TYP.
Oki Electric Industry Co., Ltd.
3/Nov. 28, 1996
Notes for Mounting the Surface Mount Type Package
The SOP, QFP, TSOP, SOJ, QFJ (PLCC), SHP and BGA are surface mount type packages, which
are very susceptible to heat in reflow mounting and humidity absorbed in storage.
Therefore, before you perform reflow mounting, contact Oki’s responsible sales person for the
product name, package name, pin number, package code and desired mounting conditions
(reflow method, temperature and times).
27/28
FEDL66589-01
¡ Semiconductor
MSM66589/66P589/66Q589
NOTICE
1.
The information contained herein can change without notice owing to product and/or
technical improvements. 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.
4.
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.
Oki assumes no responsibility or liability whatsoever for any failure or unusual 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.
6.
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 from the use thereof.
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 system 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.
8.
Certain products in this document may need government approval before they can be
exported to particular countries. The purchaser assumes the responsibility of determining
thelegalityofexportoftheseproductsandwilltakeappropriateandnecessarystepsattheir
own expense for these.
No part of the contents contained herein may be reprinted or reproduced without our prior
permission.
Copyright 2000 Oki Electric Industry Co., Ltd.
Printed in Japan
28/28
相关型号:
MSM66Q591-XXXTCZ200
Microcontroller, 16-Bit, FLASH, 24MHz, CMOS, PQFP144, 20 X 20 MM, 0.50 MM PITCH, PLASTIC, LQFP-144
OKI
MSM66V84BTS-K
Memory Circuit, 4MX1, CMOS, PDSO20, 0.300 INCH, 1.27 MM PITCH, PLASTIC, TSOP2-26/20
OKI
MSM67620-GS-1K
Microcontroller, 16-Bit, MROM, 10MHz, CMOS, PQFP64, 14 X 14 INCH, PLASTIC, QFP-64
OKI
©2020 ICPDF网 联系我们和版权申明