Sign In
Upload
Manuals
Brands
Oki Manuals
Microcontrollers
MSM66591
Oki MSM66591 Manuals
Manuals and User Guides for Oki MSM66591. We have
1
Oki MSM66591 manual available for free PDF download: User Manual
Oki MSM66591 User Manual (466 pages)
CMOS 16-bit microcontroller
Brand:
Oki
| Category:
Microcontrollers
| Size: 1.52 MB
Table of Contents
Table of Contents
4
Chapter 1 Overview
18
Features
21
Block Diagram
23
Pin Configuration
24
Basic Operation Timing
25
Chapter 2 Description of Pins
30
P0_0-P0_7: Input/Output Pins
32
P1_0-P1_7: Input/Output Pins
32
P2_0-P2_7: Input/Output Pins
32
P3_0-P3_7: Input/Output Pins
33
P4_0-P4_7: Input/Output Pins
34
P5_0-P5_7: Input/Output Pins
34
P6_0-P6_7: Input/Output Pins
35
P7_0-P7_7: Input/Output Pins
36
P8_0-P8_7: Input/Output Pins
37
P9_0-P9_7: Input/Output Pins
37
P10_0-P10_7: Input/Output Pins
38
P11_0-P11_7: Input/Output Pins
39
P12_0, P12_1: Input/Output Pins
40
AI0-AI23: Input Pins
40
AV DD : Input Pin
40
VREF : Input Pin
40
AGND: Input Pin
40
OSC0, OSC1: Input Pin, Output Pin
40
OE: Input Pin
40
NMI: Input Pin
40
RES: Input Pin
40
EA: Input Pin
41
TEST: Input Pin
41
VDD : Input Pin
41
GND: Input Pin
41
Structure of Pins
41
Handling of Unused Pins
43
Chapter 3 CPU Architecture
44
Memory Space
46
Memory Space Expansion
46
Program Memory Space
47
Accessing Program Memory Space
49
Vector Table Area
49
VCAL Table Area
51
ACAL Area
52
Data Memory Space
53
Special Function Register (SFR) Area
54
Expanded Special Function Register (Expanded SFR) Area
54
Internal RAM Area
54
Fixed Page (FIX) Area
55
Local Register Setting Area
56
ROM Window Setting Area
56
Data Memory Access
57
Byte Operation
57
Word Operation
57
Registers
58
Arithmetic Register (ACC)
58
Control Register
59
Program Status Word (PSW)
59
Program Counter (PC)
62
Local Register Base (LRB)
62
System Stack Pointer (SSP)
63
Pointing Register (PR)
64
Local Registers (R, ER)
65
Segment Register
66
Code Segment Register (CSR)
66
Table Segment Register (TSR)
67
Special Function Register (SFR)
68
Addressing Mode
82
RAM Addressing
82
Register Addressing
82
Page Addressing
85
Direct Data Addressing
88
Pointing Register Indirect Addressing
89
Special Bit Area Addressing
95
ROM Addressing
96
Immediate Addressing
96
Program Code Addressing
98
ROM Window Addressing
100
Chapter 4 CPU Control Functions
102
Standby Function
104
Standby Control Register (SBYCON)
106
Operation in each Standby Mode
107
HALT Mode
107
STOP Mode
108
Reset Function
109
Chapter 5 Memory Control Functions
112
ROM Window Function
114
READY Function
116
Chapter 6 Port Functions
118
Hardware Configuration of each Port
120
Configuration of Type a (P0_0-P0_7, P1_0-P1_7, P12_0)
123
Configuration of Type B
124
Configuration of Type C
125
P9_0-P9_7, P10_5-P10_7, P11_0-P11_3)
125
Configuration of Type D (P7_0, P7_1, P11_4-P11_7)
126
Configuration of Type E (P12_1)
126
Port Control Registers
127
Port Data Register (Pn: N = 0-12)
127
Port Mode Register (Pnio: N = 0-12)
127
Port Secondary Function Control Register (Pnsf: N = 2-10)
127
Port 0 (P0)
130
Port 1 (P1)
131
Port 2 (P2)
132
Port 3 (P3)
134
Port 4 (P4)
136
Port 5 (P5)
138
Port 6 (P6)
140
Port 7 (P7)
142
Port 8 (P8)
144
Port 9 (P9)
146
Port 10 (P10)
148
Port 11 (P11)
150
Port 12 (P12)
151
Chapter 7 Output Pin Control Pin (OE)
152
Chapter 8 Clock Generation Circuit
156
Chapter 9 Time Base Counter (TBC)
160
1/N Counter
163
Chapter 10 Watchdog Timer (WDT)
164
WDT Control Register (WDTCON)
166
Operation of WDT
166
Time until Overflow of WDT
167
Program Runaway Detection Timing Diagram
167
Chapter 11 Flexible Timer (FTM)
170
Configuration of Counter Part
177
Counter Selection Part
179
Type A1 Register Modules (TMR0-TMR3)
181
Configuration of Type A1 Register Modules (TMR0-TMR3)
181
Timer Registers (TMR0, TMR0L-TMR3, TMR3L)
181
Capture Control Register (CAPCON)
182
Event Control Registers (EVNTCONL, EVNTCONH)
183
Event Dividing Counters 0-3 (EVDV0-EVDV3)
185
EVDV0-EVDV3 Buffer Registers (EVDV0BF-EVDV3BF)
185
Operation of Type A1 Register Modules (TMR0-TMR3)
186
Capture Pin Dividing Circuit
187
Configuration of Dividing Circuit
187
Operation of Dividing Circuit
187
Operation to Switch Dividing Ratio
187
Type A2 Register Modules (TMR14, TMR15)
188
Configuration of Type A2 Register Modules (TMR14, TMR15)
188
Timer Registers (TMR14, TMR15)
188
Capture Control Register (CAPCON)
189
Event Control Register 2 (EVNTCON2)
190
Event Dividing Counters 14, 15 (EVDV14, EVDV15)
191
EVDV14, EVDV15 Buffer Registers (EVDV14BF, EVDV15BF)
191
Operation of Type A2 Register Modules (TMR14, TMR15)
192
Capture Pin Dividing Circuit
193
Configuration of Dividing Circuit
193
Operation of Dividing Circuit
193
Operation to Switch Dividing Ratio
193
Type B Register Modules (TMR4-TMR13)
194
Configuration of Type B Register Modules (TMR4-TMR13)
194
Timer Registers (TMR4-TMR13)
195
Timer Register Buffer Registers (TMR4BF-TMR13BF)
195
Real-Time Output Control Registers (RTOCON4-RTOCON13)
195
Operation of Type B Register Modules (TMR4-TMR13)
197
Type D Register Module (TMR17)
198
Configuration of Type D Register Module (TMR17)
198
Timer Register (TMR17)
200
Real-Time Output Control Registers (RTOCON17, RTO4CON)
200
TMR Mode Register (TMRMODE)
202
Capture Control Register (CAPCON)
203
Operation of Type D Register Module (TMR17)
204
Operation in Real-Time Output Mode (RTO)
204
Operation in 4-Port Output Real-Time Output Mode (4-Port RTO)
205
Operation in CAP Mode
206
Type E Register Module (TMR16)
207
Configuration of Type E Register Module (TMR16)
207
Timer Register (TMR16)
208
Real-Time Output Control Register (RTOCON16)
208
TMR Mode Register (TMRMODE)
209
Capture Control Register (CAPCON)
210
Operation of Type E Register Module (TMR16)
211
Operation in Real-Time Output Mode (RTO)
211
Operation in CAP Mode
211
RTO Mode Output Timing Changes
212
Chapter 12 General-Purpose 8-Bit Timer Function
214
General-Purpose 8-Bit Timer (GTM)
217
General-Purpose 8-Bit Timer Counter (GTMC)
218
General-Purpose 8-Bit Timer Register (GTMR)
218
General-Purpose 8-Bit Timer Control Register (GTMCON)
218
General-Purpose 8-Bit Timer Interrupt Control Register (GTINTCON)
220
General-Purpose 8-Bit Event Counter (GEVC)
221
General-Purpose 8-Bit Timer Control Register (GTMCON)
221
General-Purpose 8-Bit Timer Interrupt Control Register (GTINTCON)
222
Chapter 13 PWM Functions
224
Configuration of PWM
229
PWM Counters (PWC0-PWC11)
229
PWM Counter Buffer Registers (PWC0BF-PWC11BF)
229
PWM Registers (PWR0-PWR11)
230
PWM Buffer Registers (PW0BF-PW11BF)
230
Comparison Circuit
230
Output F/F
230
PWM Control Registers (PWCON0-PWCON5)
230
PWMRUN Register (PWRUN)
234
PWM Interrupt Registers (PWINTQ0, PWINTQ1)
235
PWM Interrupt Enable Registers (PWINTE0, PWINTE1)
238
Operation of PWM
241
Chapter 14 Baud Rate Generator Functions
244
Configuration of SCI0 Timer (S0TM)
248
SCI0 Timer Counter
248
SCI0 Timer Register
248
SCI0 Timer Control Register (S0CON)
248
Operation of SCI0 Timer
250
Configuration of SCI1 Timer (S1TM)
251
SCI1 Timer Counter
251
SCI1 Timer Register
251
SCI1 Timer Control Register (S1CON)
251
Operation of SCI1 Timer
253
Configuration of SCI2 Timer (S2TM)
254
SCI2 Timer Counter
254
SCI2 Timer Register
254
SCI2 Timer Control Register (S2CON)
254
Operation of SCI2 Timer
256
Configuration of SCI3 Timer (S3TM)
257
SCI3 Timer Counter
257
SCI3 Timer Register
257
SCI3 Timer Control Register (S3CON)
257
Operation of SCI3 Timer
259
Configuration of SCI4 Timer (S4TM)
260
SCI4 Timer Counter
260
SCI4 Timer Register
260
SCI4 Timer Control Register (S4CON)
260
Operation of SCI4 Timer
262
Chapter 15 Serial Port Functions
264
Configuration of Serial Ports
267
Serial Port Control Registers
270
Control Registers for SCI0
270
SCI0 Transmit Control Register (ST0CON)
270
SCI0 Receive Control Register (SR0CON)
272
SCI0 Transmit/Receive Buffer Register (S0BUF0)
274
SCI0 Receive Buffer Registers (S0BUF1, S0BUF2, S0BUF3)
274
SCI0 Transmit and Receive Registers
274
SCI0 Status Register 0 (S0STAT0)
275
SCI0 Status Register 1 (S0STAT1)
278
SCI0 Status Register 2 (S0STAT2)
280
SCI0 Interrupt Control Register (SR0INT)
282
Control Registers for SCI1
284
SCI1 Transmit Control Register (ST1CON)
284
SCI1 Receive Control Register (SR1CON)
286
SCI1 Transmit/Receive Buffer Register (S1BUF)
288
SCI1 Transmit and Receive Registers
288
SCI1 Status Register (S1STAT)
288
Control Registers for SCI2
291
SCI2 Transmit Control Register (ST2CON)
291
SCI2 Receive Control Register (SR2CON)
293
SCI2 Transmit/Receive Buffer Register (S2BUF0)
295
SCI2 Receive Buffer Registers (S2BUF1, S2BUF2, S2BUF3)
295
SCI2 Transmit and Receive Registers
295
SCI2 Status Register 0 (S2STAT0)
296
SCI2 Status Register 1 (S2STAT1)
299
SCI2 Status Register 2 (S2STAT2)
301
SCI2 Interrupt Control Register (SR2INT)
303
Control Registers for SCI3
305
SCI3 Transmit Control Register (ST3CON)
305
SCI3 Receive Control Register (SR3CON)
307
SCI3 Transmit/Receive Buffer Register (S3BUF0)
309
SCI3 Receive Buffer Registers (S3BUF1, S3BUF2, S3BUF3)
309
SCI3 Transmit and Receive Registers
309
SCI3 Status Register 0 (S3STAT0)
310
SCI3 Status Register 1 (S3STAT1)
313
SCI3 Status Register 2 (S3STAT2)
315
SCI3 Interrupt Control Register (SR3INT)
317
Control Registers for SCI4
319
SCI4 Transmit Control Register (ST4CON)
319
SCI4 Receive Control Register (SR4CON)
321
SCI4 Transmit/Receive Buffer Register (S4BUF0)
323
SCI4 Receive Buffer Registers (S4BUF1, S4BUF2, S4BUF3)
323
SCI4 Transmit and Receive Registers
323
SCI4 Status Register 0 (S4STAT0)
324
SCI4 Status Register 1 (S4STAT1)
327
SCI4 Status Register 2 (S4STAT2)
329
SCI4 Interrupt Control Register (SR4INT)
331
Operation of Serial Ports
333
Transmit Operation
333
Receive Operation
339
Single Buffer Mode
339
4-Stage Buffer Mode
346
Chapter 16 A/D Converter Functions
348
Configuration of A/D Converter
353
Scan Mode
353
Select Mode
353
Hard Select Mode
353
Control Register of A/D Converter
356
A/D Control Register 0L (ADCON0L)
356
A/D Control Register 1L (ADCON1L)
358
A/D Control Register 0H (ADCON0H)
360
A/D Control Register 1H (ADCON1H)
362
A/D Interrupt Control Register 0 (ADINTCON0)
364
A/D Interrupt Control Register 1 (ADINTCON1)
366
A/D Hard Select Register 0 (ADHSEL0)
368
A/D Hard Select Register 1 (ADHSEL1)
371
A/D Hard Select Software-Control Register (ADHSCON)
374
A/D Hard Select Enable Register (ADHENCON)
375
A/D Result Registers (ADCR0-ADCR23)
377
Generated Timing of the A/D Hard Select Mode
378
Chapter 17 Transition Detector Functions
382
Transition Detector Control Register (TRNSCON)
384
Transition Detector Register (TRNSIT)
386
Chapter 18 Peripheral Functions
388
Clockout Function
390
RES Pin Valid Level Detection Function
390
OE Pin Monitor Function
390
Chapter 19 External Interrupt Request Function
392
Chapter 20 Interrupt Request Processing Function
396
Non-Maskable Interrupt (NMI)
399
Maskable Interrupt
401
Interrupt Request Flag Disable Register IRQD
403
Interrupt Request Register IRQ (IRQ0L, IRQ0H, IRQ1L, IRQ1H, IRQ2L)
403
Interrupt Enable Register IE (IE0L, IE0H, IE1L, IE1H, IE2L)
403
Master Interrupt Enable Flag (MIE)
403
Master Interrupt Priority Flag (MIPF)
403
Interrupt Priority Control Register
404
Ipx0 (Ip00L, Ip00H, Ip10L, Ip10H, Ip20L), Ipx1 (Ip01L, Ip01H, Ip11L, Ip11H, Ip21L)
404
Operation of Maskable Interrupt
405
Chapter 21 Bus Port Functions
408
Access
410
Bus Port (P0, P1, P12_0, P12_1) Functions
410
External Memory Access
411
External Program Memory Access
411
External Program Memory Access Timing
411
Chapter 22 Expansion Port
414
Expansion Port Configuration
416
Expansion Port Control Register (EXTPCON)
417
Expansion Port Register (EXTPD)
418
Expansion Port Operation
418
Output Mode
419
Chapter 23 Serial Port with FIFO (SCI5)
420
SCI5 Configuration
422
SCI5 Control Register 0 (SCI5CON0)
423
SCI5 Control Register 1 (SCI5CON1)
425
SCI5 Interrupt Register (SCI5INT)
426
Serial Address Output Register (SFADR)
427
Serial Data Input Register (SFDIN)
428
Serial Data Output Register (SFDOUT)
428
SCI5 Operation
429
Chapter 24 RAM Monitor Function
432
Configuration of RAM Monitor Function
434
Configuration of Serial Transfer Data
436
RAM Monitor Function Operation
438
Setting the Addresses
438
Detection of Address Matching
438
Reading Data
438
Chapter 25 Electrical Characteristics
442
[MSM66591 Electrical Characteristics]
444
Operating Range
445
DC Characteristics
446
AC Characteristics
448
External Program Memory Control
448
A/D Converter Characteristics
449
[ML66592 Electrical Characteristics]
451
Operating Range
452
DC Characteristics
453
AC Characteristics (Preliminary)
455
A/D Converter Characteristics
456
Chapter 26 Package Dimensions
458
Chapter 27 Revision History
462
Feul66591
464
Advertisement
Advertisement
Related Products
Oki ML66592
Oki ML63611
Oki ML63326
Oki MSM66201
Oki MSM66P201
Oki MSM66P207
Oki MSM66207
Oki MSM85C154HVS
Oki MSM8C154S
Oki MSM7731-02
Oki Categories
Printer
All in One Printer
Printer Accessories
Fax Machine
Label Maker
More Oki Manuals
Login
Sign In
OR
Sign in with Facebook
Sign in with Google
Upload manual
Upload from disk
Upload from URL