Sign In
Upload
Manuals
Brands
Rohm Manuals
Microcontrollers
LAPIS SEMICONDUCTOR ML620Q504
Rohm LAPIS SEMICONDUCTOR ML620Q504 Manuals
Manuals and User Guides for Rohm LAPIS SEMICONDUCTOR ML620Q504. We have
1
Rohm LAPIS SEMICONDUCTOR ML620Q504 manual available for free PDF download: User Manual
Rohm LAPIS SEMICONDUCTOR ML620Q504 User Manual (553 pages)
Brand:
Rohm
| Category:
Microcontrollers
| Size: 5 MB
Table of Contents
Table of Contents
6
Chapter 1 Overview
18
Features
19
Configuration of Functional Blocks
23
Pins
24
Pin Layout
24
Pin Layout of ML620Q503/Q504 TQFP Package
24
List of Pins
25
List of Pins of ML620Q503/Q504 TQFP Package
25
Description of Pins
28
Termination of Unused Pins
31
Chapter 2 CPU and Memory Space
32
General Description
33
Features
33
Notes When Executing SB/RB Instruction
33
Program Memory Space
34
Data Memory Space
35
Instruction Length
37
Data Type
37
Description of Registers
37
List of Registers
37
Data Segment Register (DSR)
37
Multiplication/Division Coprocessor
38
Registers A, B, C, and D (CR0 to CR7)
39
Operation Mode Register (CR8)
40
Operation Status Register (CR9)
41
Coprocessor ID Register (CR15)
42
Description of Operation
43
Chapter 3 Reset Function
44
Overview
45
Features
45
Configuration
45
List of Pin
45
Description of Registers
46
List of Registers
46
Reset Status Register (RSTAT)
47
Description of Operation
48
Cause of Reset
48
Operation of System Reset Mode
48
Chapter 4 Power Management
50
General Description
51
Features
51
Configuration
51
Description of Registers
52
Register Configuration List
52
Stop Code Acceptor (STPACP)
53
Standby Control Register (SBYCON)
54
Block Control Register 01 (BLKCON01)
55
Block Control Register 23 (BLKCON23)
57
Block Control Register 45 (BLKCON45)
59
Description of Operation
61
HALT Mode
61
DEEP-HALT Mode
62
STOP Mode
64
Oscillation Stop and Restart Timing of Low-Speed Clock
64
Oscillation Stop and Restart Timing of High-Speed Clock
65
Note on Return Operation from STOP/HALT/DEEP-HALT/HALT-H Mode
67
Operation of Functions in STOP/HALT/DEEP-HALT/HALT-H Mode
68
Block Control Function
69
Chapter 5 Interrupts
70
General Description
71
Features
71
Configuration
72
Description of Registers
73
List of Registers
73
Interrupt Enable Register 01 (IE01)
75
Interrupt Enable Register 23 (IE23)
77
Interrupt Enable Register 45 (IE45)
79
Interrupt Enable Register 67 (IE67)
81
Interrupt Request Register 01 (IRQ01)
83
Interrupt Request Register 23 (IRQ23)
86
Interrupt Request Register 45 (IRQ45)
89
Interrupt Request Register 67 (IRQ67)
92
Interrupt Level Control Enable Register (ILEN)
94
Current Interrupt Request Level Register (CIL)
95
Interrupt Level Control Register 1 (ILC1)
97
Interrupt Level Control Register 2 (ILC2)
99
Interrupt Level Control Register 3 (ILC3)
101
Interrupt Level Control Register 4 (ILC4)
103
Interrupt Level Control Register 5 (ILC5)
105
Interrupt Level Control Register 6 (ILC6)
107
Interrupt Level Control Register 7 (ILC7)
109
External Interrupt Control Registers 01 (EXICON01)
111
External Interrupt Control Registers 23 (EXICON23)
112
External Interrupt 01 Selection Register (EXI01SEL)
113
External Interrupt 23 Selection Register (EXI23SEL)
115
External Interrupt 45 Selection Register (EXI45SEL)
117
External Interrupt 67 Selection Register (EXI67SEL)
119
Description of Operation
121
Interrupt Source
121
Maskable Interrupt Processing
123
Non-Maskable Interrupt Processing
123
Software Interrupt Processing
123
Notes on Interrupt Routine
124
Interrupt Processing When Interrupt Level Control Enabled
128
Flow Chart (When Interrupt Level Control Enabled)
129
Interrupt Disable State
131
External Interrupt
132
Clock Generation Circuit
134
Chapter 6 General Description
135
Features
135
Configuration
135
List of Pins
137
Clock Configuration Diagram
138
Description of Registers
139
List of Registers
139
Frequency Control Register 01 (FCON01)
140
Frequency Control Register 23(FCON23)
143
Frequency Status Register (FSTAT)
145
Description of Operation
146
Low-Speed Clock
146
Low-Speed Built-In RC Oscillation Mode
146
Low-Speed Crystal Oscillation Mode
146
Low-Speed External Clock Input Mode
147
Low-Speed Built-In RC Oscillation Mode Operation
148
Low-Speed Crystal Oscillation Mode Operation
149
Low-Speed External Clock Mode Operation
150
High-Speed Clock
151
High-Speed Built-In RC Oscillation Mode
151
High-Speed Crystal/Ceramic Oscillation Mode
151
High-Speed External Clock Input Mode
152
High-Speed Built-In RC Oscillation Mode Operation
153
High-Speed Crystal/Ceramic Oscillation Mode Operation
155
High-Speed External Clock Mode Operation
157
Switching of System Clock
159
Low-Speed Oscillation Clock Switch Interrupt
160
Time Base Counter
161
Chapter 7 Overview
162
Features
162
Configuration
162
Description of Registers
163
List of Registers
163
Low-Speed Time Base Counter (LTBR)
164
Low-Speed Time Base Counter Frequency Adjustment Registers (LTBADJ)
165
Low-Speed Time Base Counter Interrupt Select Registers (LTBINT)
167
Description of Operation
168
Low-Speed Time Base Counter
168
Chapter 8 Timers
170
Overview
171
Features
171
Configuration
171
Description of Registers
173
List of Registers
173
Timer N Data Register (Tmnmd : {N,M}={0,1}, {2,3}, {4,5}, {6,7})
174
Timer N Counter Register (Tmnmc : {N,M}={0,1}, {2,3}, {4,5}, {6,7})
175
Timer N Control Register (Tmnmcon : {N,M}={0,1}, {2,3}, {4,5}, {6,7})
176
Timer Start Register 0 (TMSTR0)
178
Timer Stop Register 0 (TMSTP0)
179
Timer Status Register 0 (TMSTAT0)
180
Description of Operation
181
Normal Timer Mode Operation
181
One Shot Timer Mode Operation
182
16Bit Timer Mode
182
Chapter 9 Function Timer(FTM)
183
General Description
184
Features
184
Configuration
185
List of Pins
186
Description of Registers
187
List of Registers
187
Ftmn Period Register (Ftnp : N=0,1,2,3)
190
Ftmn Event Register a (Ftnea : N=0,1,2,3)
191
Ftmn Event Register B (Ftneb : N=0,1,2,3)
192
Ftmn Deadtime Register (Ftndt : N=0,1,2,3)
193
Ftmn Counter Register (Ftnc : N=0,1,2,3)
194
Ftmn Control Register 0 (Ftncon0 : N=0,1,2,3)
195
Ftmn Control Register 1 (Ftncon1 : N=0,1,2,3)
196
Ftmn Mode Register (Ftnmod : N=0,1,2,3)
198
Ftmn Clock Register (Ftnclk : N=0,1,2,3)
200
Ftmn Trigger Register 0 (Ftntrg0 : N=0,1,2,3)
202
Ftmn Trigger Register 1 (Ftntrg1 : N=0,1,2,3)
204
Ftmn Interrupt Enable Register (Ftninte: N = 0,1,2,3)
205
Ftmn Interrupt Status Register (Ftnints : N=0,1,2,3)
207
Ftmn Interrupt Clear Register (Ftnintc : N=0,1,2,3)
209
FTM Output Nm Select Register (Ftonmsl : N = 0,2,4,6,8,A,C,E, M=N+1)
210
Description of Operation
212
Common Sequence
212
Counter Operation
214
Starting/Stopping Counting by Software
214
Starting/Stopping Counting by Triggerevent
214
TIMER Mode Operation
215
Output Waveform in TIMER Mode
215
PWM1 Mode Operation
218
Output Waveform in PWM1 Mode
218
PWM2 Mode Operation
220
Outputwaveform in PWM2 Mode
220
CAPTURE Mode Operation
223
Measurement Example in the Capturemode
223
Event/Emergency Stop Trigger Control
225
Trigger Signal
225
Start/Stop Operations by Eventtrigger
226
Emergency Stopoperation
227
Output at Counter Stop
228
Changing Period, Event A/B, and Dead Time During Operation
229
Interrupt Source
230
Chapter 10 Watchdog Timer
231
Overview
232
Features
232
Configuration
232
Description of Registers
233
List of Registers
233
Watchdog Timer Control Register (WDTCON)
234
Watchdog Timer Mode Register (WDTMOD)
235
Description of Operation
236
The Process Example When Not Using Watchdog Timer
238
Chapter 11 Synchronous Serial Port
239
Overview
240
Features
240
Configuration
240
List of Pins
240
Description of Registers
241
List of Registers
241
Serial Port Control Register (SIO0CON)
241
Serial Port Mode Register (SIO0MOD)
244
Description of Operation
246
Transmit Operation
246
Receive Operation
248
Transmit/Receive Operation
250
Chapter 12 Synchronous Serial Port with FIFO (SSIOF)
251
General Description
252
Features
252
Configuration
253
Description of Registers
254
List of Registers
254
SIOF0 Control Register (SF0CTRL)
255
SIOF0 Interrupt Control Register (SF0INTC)
257
SIOF0 Transfer Interval Control Register (SF0TRAC)
259
SIOF0 Baud Rate Register (SF0BRR)
260
SIOF0 Status Register (SF0SRR)
262
SIOF0 Status Clear Register (SF0SRC)
265
SIOF0 FIFO Status Register (SF0FSR)
267
SIOF0 Write Data Register (SF0DWR)
268
SIOF0 Read Data Register (SF0DRR)
269
Description of Operation
270
Master Mode and Slave Mode
270
Control of Polarity and Phase of Serial Clock
270
Data Transfer Timing When SF0CPHA Is "0
270
Serial Clock Baud Rate
271
Transfer Size
272
Transfer Interval Setting
273
Transmit Operation (Master Mode)
275
Receive Operation (Master Mode)
276
FIFO Operation
277
Write Overflow
277
Overrun Error
277
FIFO Clearance
277
Mode Fault (MDF)
279
Interrupt Source
280
SSIOF Interrupt Source
280
Clear SSIOF Interrupt
280
SSIOF Interrupt Timing
280
Interrupt Processing Flow
281
Hi-Z Operation
282
Interval from SF0MST Setting to Transfer Start
282
Pin Settings
282
Chapter 13 UART
283
General Description
284
Features
284
Configuration
284
Description of Registers
285
UART0 Receive Buffer (UA0BUF)
286
UART0 Transmit Buffer (UA1BUF)
286
UART0 Control Register (UA0CON)
287
UART0 Transmit Monitor Register (UA1CON)
288
UART0 Mode Register (UA0MOD)
289
UART0 Baud Rate Registers (UA0BRT)
291
UART0 Receive Status Register (UA0STAT)
292
UART0 Transmit Status Register (UA1STAT)
293
Description of Operation
294
Transfer Data Format
294
Baud Rate
295
Transmitted Data Direction
296
Transmit Operation
297
Receive Operation
299
Detection of Start Bit
301
Sampling Timing
301
Receive Margin
302
Chapter 14 UART with FIFO (UARTF)
303
General Description
304
Features
304
Configuration
305
List of Pins
306
Description of Registers
306
List of Registers
306
UARTF0 Transmit/Receive Buffer (UAF0BUF)
307
UARTF0 Interrupt Enable Register (UAF0IER)
308
UARTF0 Interrupt Status Register (UAF0IIR)
309
UARTF0 Mode Register (UAF0MOD)
311
UARTF0 Line Status Register (UAF0LSR)
314
UARTF0 Clock Adjustment Register (UAF0CAJ)
317
UARTF0 Interrupt Request Register (UAF0IRQ)
318
Description of Operation
319
Data Transmission
319
Data Reception
320
Baud Rate Clock Generation
322
FIFO Mode
323
FIFO Polled Mode
324
Error Status
325
Reset by Block Control Register
326
Chapter 15 I 2 C Bus Interface
327
General Description
328
Features
328
Configuration
328
List of Pins
328
Description of Registers
329
C Bus N Receive Data Register (I2Cnrd : N=0,1)
330
C Bus N Slave Address Register (I2Cnsa : N=0,1)
331
C Bus N Transmit Data Register (I2Cntd : N=0,1)
332
C Bus N Control Register (I2Cncon : N=0,1)
333
C Bus N Mode Register (I2Cnmod : N=0,1)
335
C Bus N Status Register (I2Cnstat : N=0,1)
337
Description of Operation
338
Communication Operation Mode
338
Start Condition
338
Restart Condition
338
Slave Address Transmit Mode
338
Data Transmit Mode
338
Data Receive Mode
338
Control Register Setting Wait State
339
Stop Condition
339
Operation Waveforms
342
Pin Settings
343
Chapter 16 Port XT
344
General Description
345
Features
345
Configuration
345
List of Pins
345
Description of Registers
346
List of Registers
346
Port XT Data Register (PXTD)
347
Port XT Direction Register (PXTDIR)
348
Description of Operation
349
Input Port Function
349
Primary Function Other than Input Port
349
Chapter 17 17. Port0 ............................................................................................................................................. 17-1
351
Overview
351
Features
351
Configuration
351
List of Pins
352
Description of Registers
353
List of Registers
353
Port 0 Data Register (P0D)
354
Port 0 Direction Register (P0DIR)
355
Description of Operation
360
Input/Output Port Functions
360
Primary Function Except for Input/Output Port
360
Secondary ,Tertiary and Fourthly Functions
360
Chapter 18 Port1
362
Overview
362
Features
362
Configuration
362
List of Pins
363
Description of Registers
363
List of Registers
363
Port 1 Data Register (P1D)
364
Port 1 Direction Register (P1DIR)
365
Description of Operation
367
Input/Output Port Function
367
Other Function
367
Chapter 19 Port2
368
Overview
369
Features
369
Configuration
369
Description of Registers
371
List of Registers
371
Port 2 Data Register (P2D)
372
Port 2 Direction Register (P2DIR)
373
Description of Operation
378
Input/Output Port Functions
378
Primary Function Except for Input/Output Port
378
Secondary, Tertiary and Fourthly Functions
378
Chapter 20 Port 3
379
General Description
380
Features
380
Configuration
381
List of Pins
382
Description of Registers
383
List of Registers
383
Port 3 Data Register (P3D)
384
Port 3 Direction Register (P3DIR)
386
Port 3 Control Register (P3CON)
388
Port 3 Mode Register (P3MOD)
391
Description of Operation
394
Input/Output Port Functions
394
Primary Function Other than Input/Output Port
394
Secondary to Quartic Functions
394
Chapter 21 Port 4
395
General Description
396
Features
396
Configuration
397
List of Pins
398
Description of Registers
399
List of Registers
399
Port 4 Data Register (P4D)
400
Port 4 Direction Register (P4DIR)
402
Port 4 Control Register (P4CON)
403
Port 4 Mode Register (P4MOD)
406
Description of Operation
409
Input/Output Port Functions
409
Primary Function Other than Input/Output Port
409
Secondary to Quartic Functions
409
Chapter 22 Port5
412
Configuration
412
List of Pins
413
Description of Registers
414
List of Registers
414
Port 5 Data Register (P5D)
415
Port 5 Direction Register (P5DIR)
417
Port 5 Control Register (P5CON)
419
Port 5 Mode Register (P5MOD)
422
Description of Operation
425
Primary Function Other than Input/Output Port
425
Secondary to Quartic Functions
425
Chapter 23 Melody Driver
426
Overview
427
Features
427
Configuration
427
List of Pins
427
Description of Registers
428
List of Registers
428
Melody 0 Control Register (MD0CON)
429
Melody 0 Tempo Code Register (MD0TMP)
430
Melody 0 Scale/Tone Length Code Register (MD0TL)
431
Description of Operation
433
Operation of Melody Output
433
Example of Using Melody Circuit
434
Tempo Codes
435
Scale Codes
437
Operations of Buzzer Output
438
Chapter 24 RC Oscillation Type A/Dconverter (RC-ADC)
439
General Description
440
Features
440
Configuration
440
List of Pins
441
Description of Registers
442
List of Registers
442
RC-ADC Mode Register (RADMOD)
445
RC-ADC Control Register (RADCON)
447
Description of Operation
448
RC Oscillator Circuits
449
Counter A/B Reference Modes
453
Example of Use of RC Oscillation Type A/D Converter
456
Monitoring RC Oscillation
461
Chapter 25 Successive Approximation Type A/Dconverter (SA-ADC)
463
General Description
463
Features
463
Configuration
463
Description of Registers
465
SA-ADC Result Register N (Sadrn) N=0 to 9, A, B
466
SA-ADC Control Register 0(SADCON0)
467
SA-ADC Control Register1 (SADCON1)
469
SA-ADC Enable Register (SADEN)
470
SA-ADC Touch Sensor Register (SADTCH)
471
SA-ADC Trigger Register (SADTRG)
472
Description of Operation
475
Setting of A/D Conversion Channels
475
Operation of the Successive Approximation Type A/D Converter
476
Capacitive Touch Sensor Mode Operation
477
Notes on Use of SA-ADC
478
Chapter 26 26. Analog Comparator....................................................................................................................... 26-1
480
Overview
480
Features
480
Configuration
480
List of Pins
480
Description of Registers
481
List of Registers
481
Comparator N Control Register (Cmpncon : N=0,1)
482
Comparator N Mode Registers (Cmpnmod : N=0,1)
483
Function Description
485
Comparator Function
485
Supervisor Mode
485
Single Mode
486
Singlemonitor Mode
488
Chapter 27 Flash Memory Control
489
General Description
490
Features
490
Description of Registers
491
Flash Data Register (FLASHD)
493
Flash Control Register (FLASHCON)
494
Flash Acceptor (FLASHACP)
495
Flash Segment Register (FLASHSEG)
495
Flash Self Register (FLASHSLF)
496
Remap Address Register (REMAPADD)
497
Description of Operation
498
Address Setting for Erase
499
Data Flash Rewriting
500
Program Memory Rewrite (ISP Function)
500
Boot Area Remap Function by Software
501
Boot Area Remap Function by Hardware
502
Notes of the Program after Remapping
503
Sample Program
504
Chapter 28 Voltage Level Supervisor
505
General Description
506
Features
506
Configuration
506
Description of Registers
507
List of Registers
507
Voltage Level Supervisor Control Register (VLSCON)
508
Voltage Level Supervisor Mode Register (VLSMOD)
510
Supervisor Mode
511
Chapter 29 29. LLD Circuit ..................................................................................................................................... 29-1
518
General Description
518
Features
518
Description of Resister
518
Description of Operation
518
Chapter 30 On-Chip Debug Function
519
Overview
520
Method of Connecting to On-Chip Debug Emulator
520
Flash Memory Rewrite Function
521
Appendixes
522
Appendix A Registers
523
Appendix B Package Dimensions
532
Appendix C Electrical Characteristics
551
Appendix D Application Circuit Example
551
Revision History
552
Advertisement
Advertisement
Related Products
Rohm LAPIS SEMICONDUCTOR ML620Q503
Rohm LAPIS Semiconductor ML620Q152B
Rohm LAPIS Semiconductor ML620Q153B
Rohm LAPIS Semiconductor ML620Q155B
Rohm LAPIS Semiconductor ML620Q156B
Rohm LAPIS Semiconductor ML620Q157B
Rohm LAPIS Semiconductor ML620Q158B
Rohm LAPIS Semiconductor ML620Q159B
Rohm LAPIS ML620Q151A
Rohm LAPIS ML620Q154A
Rohm Categories
Motherboard
Computer Hardware
Media Converter
Industrial Equipment
Measuring Instruments
More Rohm Manuals
Login
Sign In
OR
Sign in with Facebook
Sign in with Google
Upload manual
Upload from disk
Upload from URL