English
Language : 

M38203M4 Datasheet, PDF (8/344 Pages) Mitsubishi Electric Semiconductor – 8-BIT SINGLE-CHIP MICROCOMPUTER
Table of contents
CHAPTER 2. APPLICATION
2.1 I/O pins .................................................................................................................................... 2-2
2.1.1 I/O ports ........................................................................................................................... 2-2
2.1.2 Function pins ...................................................................................................................2-7
2.1.3 Application examples....................................................................................................... 2-8
2.1.4 Notes on use .................................................................................................................2-12
2.2 Interrupts ...............................................................................................................................2-15
2.2.1 Explanation of operations .............................................................................................. 2-15
2.2.2 Control ........................................................................................................................... 2-19
2.2.3 Related registers ...........................................................................................................2-22
2.2.4 INT interrupts .................................................................................................................2-28
2.2.5 Key input interrupt .........................................................................................................2-29
2.2.6 Notes on use .................................................................................................................2-31
2.3 Timer X and timer Y ..........................................................................................................2-32
2.3.1 Explanation of timer X operations.................................................................................. 2-32
2.3.2 Explanation of timer Y operations.................................................................................. 2-42
2.3.3 Related registers ...........................................................................................................2-50
2.3.4 Register setting example ...............................................................................................2-66
2.3.5 Application examples..................................................................................................... 2-75
2.3.6 Notes on use .................................................................................................................2-82
2.4 Timer 1, timer 2, and timer 3 .......................................................................................... 2-85
2.4.1 Explanation of operations .............................................................................................. 2-85
2.4.2 Related registers ...........................................................................................................2-90
2.4.3 Register setting example ...............................................................................................2-99
2.4.4 Application example .................................................................................................... 2-100
2.4.5 Notes on use ...............................................................................................................2-102
2.5 Serial I/O1 ........................................................................................................................... 2-103
2.5.1 Explanation of operations ............................................................................................ 2-103
2.5.2 Pins .............................................................................................................................. 2-120
2.5.3 Related registers .........................................................................................................2-121
2.5.4 Register setting example .............................................................................................2-129
2.5.5 Notes on use ...............................................................................................................2-139
2.6 Serial I/O2 ........................................................................................................................... 2-141
2.6.1 Explanation of operations ............................................................................................ 2-141
2.6.2 Pins .............................................................................................................................. 2-148
2.6.3 Related registers .........................................................................................................2-149
2.6.4 Register setting example .............................................................................................2-152
2.6.5 Notes on use ...............................................................................................................2-154
2.7 LCD drive control circuit .................................................................................................2-155
2.7.1 Explanation of operations ............................................................................................ 2-155
2.7.2 Pins .............................................................................................................................. 2-156
2.7.3 Related registers .........................................................................................................2-159
2.7.4 Register setting example .............................................................................................2-166
2.7.5 Application examples................................................................................................... 2-168
2.7.6 Notes on use ...............................................................................................................2-172
2.8 Watchdog timer ..................................................................................................................2-173
2.8.1 Explanation of operations ............................................................................................ 2-173
2.8.2 Related register......................................................................................................... 2-175
2.9 Standby function ...............................................................................................................2-176
2.9.1 Stop mode ...................................................................................................................2-176
2.9.2 Wait mode ...................................................................................................................2-181
2.9.3 State transitions of internal clock φ ...................................................................................... 2-184
iii
3820 GROUP USER’S MANUAL