PanaXSeries is a trademark of Matsushita Electric Industrial Co., Ltd.
The other corporation names, logotype and product names written in this book are trademarks or registered trademarks of their
corresponding corporations.
Request for your special attention and precautions in using the technical information
and semiconductors described in this book
(1) An export permit needs to be obtained from the competent authorities of the Japanese Government if any of
the products or technologies described in this book and controlled under the "Foreign Exchange and Foreign
Trade Law" is to be exported or taken out of Japan.
(2) The technical information described in this book is limited to showing representative characteristics and
applied circuits examples of the products. It neither warrants non-infringement of intellectual property right
or any other rights owned by our company or a third party, nor grants any license.
(3) W e are not liable for the infringement of rights owned by a third party arising out of the use of the product or
technologies as described in this book.
(4) The products described in this book are intended to be used for standard applications or general electronic
equipment (such as office equipment, communications equipment, measuring instrument s and household
appliances).
Consult our sales staff in advance for information on the following applications:
• Special applications (such as for airplanes, aerospace, automobiles, traffic control equipment, combustion
equipment, life support systems and safety devices) in which exceptional quality and reliability are required,
or if the failure or malfunction of the products may directly jeopardize life or harm the human body.
• Any applications other than the standard applications intended.
(5) The products and product specifications described in this book are subject to change without notice for
modification and/or improvement. At the final stage of your design, purchasing, or use of the prod ucts,
therefore, ask for the most up-to-date Product Standards in advance to make sure that the latest specifications
satisfy your requirements.
(6) When designing your equipment, comply with the guaranteed values, in particular those of maximum rating,
the range of operating power supply volta ge, and heat radiation characteristics. Otherwise, we will not be
liable for any defect which may arise later in your equipment.
Even when the products are used within the guaranteed values, take into the consideration of incidence of
break down and failure mode, possible to occur to semiconductor products. Measures on the systems such as
redundant design, arresting the spread of fire or preventing glitch are recommended in order to prevent
physical injury, fire, social damages, for example, by using the products.
(7) When using products for which damp-proof packing is required, observe the conditions (including shelf life
and amount of time let standing of unsealed items) agreed upon when specification sheets are individually
exchanged.
(8) This book may be not reprinted or reproduced whether wholly or partially, without the prior written
permission of Matsushita Electric Industrial Co., Ltd.
If you have any inquiries or questions about this book or our semiconductors, please contact one of our sales
offices listed at the back of this book.
About This Manual
Organization
In this LSI manual, this LSI functions are presented in the following order : overview, basic CPU functions, interrupt
functions, port functions, timer functions, serial functions, and other peripheral hardware functions.
Each section contains overview of function, block diagram, control register, operation, and setting example.
Manual Configuration
Each section of this manual consists of a title, summary, main text, key information, precautions and warnings, and
references.
The layout and definition of each section are shown below.
Subtitle
Sub-subtitle
The smallest block
in this manual.
Main text
Key information
Important information
from the text.
Chapter 2 Basic CPU
2-8Reset
2-8-1Reset operation
The CPU contents are reset and registers are initialized when the NRST pin (P.27) is pulled to low.
Initiating a Reset
There are two methods to initiate a reset.
(1) Drive the NRST pin low for at least four clock cycles.
NRST pin should be holded "low" for more than 4 clock cycles (200 nS at a 20 MHz).
NRST pin
4 clock cycles
(200 nS at a 20 MHz)
Figure 2-8-1 Minimum Reset Pulse Width
(2) Setting the P2OUT7 flag of the P2OUT register to "0" outputs low level at P27 (NRST) pin. And
transfering to reset by program (software reset) can be executed. If the internal LSI is reset and
register is initiated, the P2OUT7 flag becomes "1" and reset is released.
[ Chapter 4. 4-4-2 Registers ]
On this LSI, the starting mode is NORMAL mode that high oscillation is the base clock.
When the power voltage low circuit is connected to NRST pin, circuit that gives pulse for
enough low level time at sudeen unconnected. And reset can be generated even if its pulse
is low level as the oscillation clock is under 4 clocks, take notice of noise.
Summary
Introduction to the
section.
References
References for the
main text.
Precautions and
warnings
Precautions are listed
in case.
Be sure to read these
of lost functionality or
damage.
About This Manual 1
II - 44
Reset
Finding Desired Information
This manual provides three methods for finding desired information quickly and easily.
(1) Consult the index at the front of the manual to locate the beginning of each section.
(2) Consult the table of contents at the front of the manual to locate desired titles.
(3) Chapter names are located at the top outer corner of each page, and section titles are located
at the bottom outer corner of each page.
Related Manuals
Note that the following related documents are available.
"MN101C Series LSI user's Manual"
<Describes the device hardware>
"MN101C Series Instruction Manual"
<Describes the instruction set.>
"MN101C Series C Compiler User's Manual: Usage Guide"
<Describes the installation, the commands, and options of the C Compiler.>
"MN101C Series C Compiler User's Manual: Language Description"
<Describes the syntax of the C Compiler.>
"MN101C Series C Compiler User's Manual: Library Reference"
<Describes the standard library of the C Compiler.>
"MN101C Series Cross-assembler User's Manual"
<Describes the assembler syntax and notation.>
"MN101C Series C Source Code Debugger User's Manual"
<Describes the use of C source code debugger.>
"MN101C Series PanaX Series Installation Manual"
<Describes the installation of C compiler, cross-assembler and C source code debugger
and the procedure for bringing up the in-circuit emulator.>
About This Manual 2
Chapter 1Overview
1
Chapter 2 CPU Basics
Chapter 3Interrupts
2
3
3
Chapter 4I/O Ports
Chapter 5Prescaler5
Chapter 68-bit Timers
Chapter 716-bit Timer
Chapter 8Time Base Timer /
8-bit Free-running Timer
4
6
7
8
11
2
Chapter 9Watchdog Timer
Chapter 10Buzzer
Chapter 11Serial Interface 0,1
Chapter 12Serial Interface 3
Chapter 13Serial Interface 4
Chapter 14Automatic Transfer
Controller
Chapter 15A/D Converter
9
10
11
12
13
14
15
Chapter 16D/A Converter
Chapter 17Appendices
Chapter 18Flash EEPROM
16
17
18
Contents
Chapter 1Overview
1-1Overview ..................................................................................................................... I - 2
1-1-1Overview .................................................................................................... I - 2
1-1-2Product Summary ....................................................................................... I - 2
1-2Hardware Functions .................................................................................................... I - 3
1-3Pin Description............................................................................................................ I - 9
1-3-1Pin Configuration ....................................................................................... I - 9
1-3-2Pin Specification....................................................................................... I - 10
1-3-3Pin Functions ........................................................................................... I - 1 1
1- 4Block Diagram ........................................................................................................... I - 17
1-4-1Block Diagram .......................................................................................... I - 1 7
1- 5Electrical Characteristics ........................................................................................... I - 18
1-5-1Absolute Maximum Ratings ..................................................................... I - 18
1-5-2Operating Conditions ............................................................................... I - 19
1-5-3DC Characteristics .................................................................................... I - 22
1-5-4A/D Converter Characteristics ................................................................. I - 26
1-5-5D/A Converter Characteristics ................................................................. I - 27
1-6Precautions................................................................................................................ I - 28
1-6-1General Usage .......................................................................................... I - 28
1-6-2Unused Pins ............................................................................................. I - 2 9
1-6-3Power Supply ........................................................................................... I - 31
1-6-4Power Supply Circuit................................................................................ I - 32
1-7Package Dimension ................................................................................................... I - 33
Chapter 2 CPU Basics
2-1Overview.................................................................................................................. II - 2
2-1-1Block Diagram ....................................................................................... II - 3
2-1-2CPU Control Registers ........................................................................... II - 4
2-1-3Instruction Execution Controller ........................................................... II - 5
2-1-4Pipeline Process...................................................................................... II - 6
2-1-5Registers for Address.............................................................................. II - 6
2-1-6Registers for Data ................................................................................... II - 7
2-1-7Processor Status Word ............................................................................ II - 8
2-1-8Addressing Modes ............................................................................... II - 10
2-2Memory Space....................................................................................................... II - 12
2-2-1Memory Mode ...................................................................................... II - 12
2-2-2Single-chip Mode ................................................................................. II - 13
2-2-3Special Function Registers...................................................................... II - 14
2-3Bus Interface ............................................................................................................ II - 15
ii
contents
2-3-1Bus Controller ......................................................................................... II - 15
2-3-2Control Registers..................................................................................... II - 16
2-4Standby Function..................................................................................................... II - 19
2-4-1Overview ................................................................................................. II - 19
2-4-2CPU Mode Control Register.................................................................... II - 2 1
2-4-3Transition between SLOW and NORMAL.............................................. II - 22
2-4-4Transition to ST ANDBY Modes ............................................................. II - 23
2- 5Clock Switching........................................................................................................ II - 25
2-6Bank Function .......................................................................................................... II - 27
2-6-1Overview ................................................................................................. II - 27
2-6-2Bank Setting ............................................................................................ II - 27
2-6-3Bank Memory Space ............................................................................... II - 29
2- 7ROM Correction ....................................................................................................... II - 30
2-7-1Overview ................................................................................................. II - 30
2-7-2Correction Sequence ............................................................................... II - 30
2-7-3ROM Correction Control Register ........................................................... II - 32
2-7-4ROM Correction Setup Example .............................................................. II - 35
2-8Reset ........................................................................................................................ II - 38
2-8-1Reset Operation....................................................................................... II - 38
2-8-2Oscillation Stabilization W ait T ime.......................................................... II - 40
2-9Register Protection................................................................................................... II - 42
2-9-1Overview ................................................................................................. II - 42
2-9-2Setting of the Register Protection Function ............................................ II - 4 2
2-9-3Rewrite Procedure ................................................................................... II - 42
Chapter 3Interrupts
3-1Overview................................................................................................................. III - 2
3-1-1Functions ............................................................................................... III - 3
3-1-2Block Diagram ...................................................................................... III - 4
3-1-3Operation ............................................................................................... III - 5
3-1-4Interrupt Flag Setup............................................................................... III - 14
3-2Control Registers.................................................................................................. III - 15
3-2-1Registers List ....................................................................................... III - 15
3-2-2Interrupt Control Registers.................................................................. III - 16
3-3External Interrupts ................................................................................................... III - 38
3-3-1Overview ................................................................................................ III - 38
3-3-2Block Diagram ........................................................................................ III - 39
3-3-3Control Registers.................................................................................... III - 42
3-3-4Programmable Active Edge Interrupt ..................................................... III - 47
3-3-5Both Edges Interrupt.............................................................................. III - 48
3-3-6Key Input Interrupt ................................................................................ III - 19
3-3-7Noise Filter ............................................................................................. III - 51
iii
contents
3-3-8AC Zero-Cross Detector ........................................................................ III - 54
Chapter 4I/O Ports
4-1Overview .................................................................................................................. IV - 2
4-1-1I/O Port Diagram...................................................................................... IV - 2
4-1-2I/O Port Status at Reset ........................................................................... IV - 3
4-1-3Control Registers..................................................................................... IV - 4
4-2Port 0 ........................................................................................................................ IV - 6
4-2-1Description.............................................................................................. IV - 6
4-2-2Registers ................................................................................................. IV - 7
4-2-3Block Diagram ......................................................................................... IV - 8
4-3Port 1 ....................................................................................................................... IV - 12
4-3-1Description............................................................................................. IV - 12
4-3-2Registers ................................................................................................ IV - 13
4-3-3Block Diagram ........................................................................................ IV - 16
4-4Port 2 ....................................................................................................................... IV - 17
4-4-1Description............................................................................................. IV - 17
4-4-2Registers ................................................................................................ IV - 18
4-4-3Block Diagram ........................................................................................ IV - 19
4-5Port 5 ....................................................................................................................... IV - 21
4-5-1Description............................................................................................. IV - 21
4-5-2Registers ................................................................................................ IV - 22
4-5-3Block Diagram ........................................................................................ IV - 23
4-6Port 6 ....................................................................................................................... IV - 26
4-6-1Description............................................................................................. IV - 26
4-6-2Registers ................................................................................................ IV - 27
4-6-3Block Diagram ........................................................................................ IV - 29
4-7Port 7 ....................................................................................................................... IV - 30
4-7-1Description............................................................................................. IV - 30
4-7-2Registers ................................................................................................ IV - 31
4-7-3Block Diagram ........................................................................................ IV - 33
4-8Port 8 ....................................................................................................................... IV - 37
4-8-1Description............................................................................................. IV - 37
4-8-2Registers ................................................................................................ IV - 38
4-8-3Block Diagram ........................................................................................ IV - 40
4-9Port A ...................................................................................................................... IV - 41
4-9-1Description............................................................................................. IV - 41
4-9-2Registers ................................................................................................ IV - 42
4-9-3Block Diagram ........................................................................................ IV - 44
4-10Real Time Output Control (Port 1) ........................................................................... IV - 45
iv
contents
4-10-1Registers ................................................................................................ IV - 45
4-10-2Operation................................................................................................ IV - 46
4-11Synchronous Output (Port 7) .................................................................................. IV - 4 8
4-11-1Block Diagram ........................................................................................ IV - 48
4-11-2Registers ................................................................................................ IV - 49
4-11-3Operation................................................................................................ IV - 50
4-11-4Setup Example ........................................................................................ IV - 52
Chapter 5Prescaler
5-1Overview .................................................................................................................... V - 2
5-1-1Peripheral Functions ................................................................................. V - 3
5-1-2Block Diagram ........................................................................................... V - 4
5-2Control Registers........................................................................................................ V - 5
5-2-1Registers List............................................................................................. V - 5
5-2-2Control Registers....................................................................................... V - 6
5-3Operation.................................................................................................................. V - 11
5-3-1Operation................................................................................................. V - 11
5-3-2Setup Example ......................................................................................... V - 12
Chapter 68-bit T imers
6-1Overview................................................................................................................. VI - 2
6-2Control Registers...................................................................................................... VI - 6
6-2-1Registers ................................................................................................. VI - 6
6-2-2Programmable Timer Registers ................................................................ VI - 8
6-2-3Timer Mode Registers ............................................................................ VI - 10
6- 38-bit Timer Count..................................................................................................... VI - 15
6-3-1Operation................................................................................................ VI - 15
6-3-2Setup Example ........................................................................................ VI - 17
6-48-bit Event Count .................................................................................................... VI - 19
6-4-1Operation................................................................................................ VI - 19
6-4-2Setup Example ........................................................................................ VI - 21
6-58-bit Timer Pulse Output ......................................................................................... VI - 23
6-5-1Operation................................................................................................ VI - 23
6-5-2Setup Example ........................................................................................ VI - 24
6-68-bit PWM Output .................................................................................................. VI - 26
6-6-1Operation................................................................................................ VI - 26
6-6-2Setup Example ........................................................................................ VI - 28
6-78-bit Timer Synchronous Output............................................................................. VI - 3 0
v
contents
6-7-1Operation................................................................................................ VI - 30
6-7-2Setup Example ........................................................................................ VI - 31
6-8Serial Interface Transfer Clock Output .................................................................... VI - 33
6-8-1Operation................................................................................................ VI - 33
6-8-2Setup Example ........................................................................................ VI - 34
6-9Simple Pulse W idth Measurement........................................................................... VI - 36
6-9-1Operation................................................................................................ VI - 36
6-9-2Setup Example ........................................................................................ VI - 37
6-10Cascade Connection ............................................................................................... VI - 3 9
6-10-1Operation................................................................................................ VI - 39
6-10-2Setup Example ........................................................................................ VI - 41
6-11Remote Control Carrier Output ................................................................................ VI - 43
6-11-1Operation................................................................................................ VI - 43
6-11-2Setup Example ........................................................................................ VI - 44
Chapter 716-bit T imer
7-1Overview................................................................................................................ VII - 2
7-1-1Functions .............................................................................................. VII - 2
7-1-2Block Diagram ..................................................................................... VII - 3
7-2Control Registers................................................................................................... VII - 4
7-2-1Registers ............................................................................................... VII - 4
7-2-2Programmable Timer Registers............................................................ VII - 5
7-2-3Timer Mode Registers.......................................................................... VII - 8
7-316-bit Timer Count .............................................................................................. VII - 10
7-3-1Operation ............................................................................................ VII - 10
7-3-2Setup Example.................................................................................... VII - 13
7-416-bit Event Count .............................................................................................. VII - 15
7-4-1Operation ............................................................................................ VII - 15
7-4-2Setup Example.................................................................................... VII - 17
7-516-bit Timer Pulse Output................................................................................... VII - 19
7-5-1Operation ............................................................................................ VII - 19
7-5-2Setup Example.................................................................................... VII - 21
7-616-bit Standard PWM Output
(Only duty can be changed consecutively) .................................... VII - 23
7-6-1Operation ............................................................................................ VII - 23
7-6-2Setup Example.................................................................................... VII - 25
7-716-bit High Precision PWM Output
(Cycle/Duty can be changed consecutively)...................................... VII - 27
7-7-1Operation ............................................................................................ VII - 27
7-7-2Setup Example.................................................................................... VII - 29
7-816-bit Timer Synchronous Output ...................................................................... VII - 31
vi
contents
7-8-1Operation ............................................................................................ VII - 31
7-8-2Setup Example.................................................................................... VII - 32
7-916-bit Timer Capture ........................................................................................... VII - 34
7-9-1Operation ............................................................................................ VII - 34
7-9-2Setup Example.................................................................................... VII - 37
Chapter 8Time Base Timer / 8-bit Free-running Timer
8-1Overview ................................................................................................................ VIII - 2
8-1-1Functions .............................................................................................. VIII - 2
8-1-2Block Diagram ....................................................................................... VIII - 3
8-2Control Registers.................................................................................................... VIII - 4
8-2-1Control Registers................................................................................... VIII - 4
8-2-2Programmable Timer Registers .............................................................. VIII - 5
8-2-3Timer Mode Registers ........................................................................... VIII - 6
8- 38-bit Free-running Timer......................................................................................... VIII - 7
8-3-1Operation............................................................................................... VIII - 7
8-3-2Setup Example ..................................................................................... VIII - 10
8- 4Time Base Timer ................................................................................................... VIII - 12
8-4-1Operation............................................................................................. VIII - 12
8-4-2Setup Example ..................................................................................... VIII - 14
Chapter 9Watchdog Timer
9-1Overview................................................................................................................. IX - 2
9-1-1Block Diagram ...................................................................................... IX - 2
9-2Control Registers.................................................................................................... IX - 3
9-3Operation ................................................................................................................ IX - 4
9-3-1Operation ............................................................................................... IX - 4
9-3-2Setup Example....................................................................................... IX - 7
Chapter 10Buzzer
10-1Overview ................................................................................................................... X - 2
10-1-1Block Diagram .......................................................................................... X - 2
10-2Control Register ........................................................................................................ X - 3
10-3Operation................................................................................................................... X - 4
10-3-1Operation.................................................................................................. X - 4
10-3-2Setup Example .......................................................................................... X - 5
Chapter 11Serial Interface 0,1
vii
contents
11-1Overview .................................................................................................................. XI - 2
11-1-1Functions ................................................................................................ XI - 2
11-1-2Block Diagram ......................................................................................... XI - 4
11-2Control Registers...................................................................................................... XI - 6
11-2-1Registers ................................................................................................. XI - 6
11-2-2Serial Interface 0 Data Buffer Registers ................................................... XI - 7
11-2-3Serial Interface 0 Mode Registers............................................................ XI - 8
11-2-4Serial Interface 1 Data Buffer Registers ................................................. XI - 14
11-2-5Serial Interface 1 Mode Registers.......................................................... XI - 15
11-3Operation................................................................................................................ XI - 21
11-3-1Clock Synchronous Serial Interface ...................................................... XI - 21
11-3-2Serial interface 0 Synchronous Serial Interface Pin Setup ..................... XI - 33
11-3-3Serial interface 1 Synchronous Serial Interface Pin Setup ..................... XI - 36
11-3-4Setup Example ....................................................................................... XI - 39
11-3-5UART Serial Interface............................................................................ XI - 4 2
11-3-6Serial interface 0 UART Serial Interface Pin Setup ................................ XI - 5 4
11-3-7Serial interface 1 UART Serial Interface Pin Setup ................................ XI - 5 6
11-3-8Setup Example ....................................................................................... XI - 58
Chapter 12Serial Interface 3
12-1 Overview............................................................................................................... XII - 2
12-1-1Functions ............................................................................................. XII - 2
12-1-2Block Diagram .................................................................................... XII - 3
12-2 Control Registers .................................................................................................. XII - 4
12-2-1Registers .............................................................................................. XII - 4
12-2-2Data Buffer Registers .......................................................................... XII - 5
12-2-3Mode Registers ...................................................................................... XII - 6
12-3Operation............................................................................................................... XII - 10
12-3-1Clock Synchronous Serial Interface ..................................................... XII - 10
12-3-2Setup Example ...................................................................................... XII - 24
12-3-3Single Master IIC Interface................................................................... XII - 27
12-3-4Setup Example ...................................................................................... XII - 36
Chapter 13Serial Interface 4
13-1Overview ................................................................................................................ XIII - 2
13-1-1Functions .............................................................................................. XIII - 2
viii
contents
13-1-2Block Diagram ....................................................................................... XIII - 3
13-2Control Registers.................................................................................................... XIII - 4
13-2-1Registers List......................................................................................... XIII - 4
13-2-2Data Register......................................................................................... XIII - 5
13-2-3Mode Registers ..................................................................................... XIII - 6
13-3Operation................................................................................................................ XIII - 9
13-3-1Setup Example of the Slave IIC Serial Interface ................................... XIII - 11
Chapter 14Automatic Transfer Controller
14-1Overview ................................................................................................................ XIV - 2
14-1-1A TC1 ..................................................................................................... XIV - 2
14-1-2Functions .............................................................................................. XIV - 3
14-1-3Block Diagram ....................................................................................... XIV - 4
14-2Control Registers.................................................................................................... XIV - 5
14-2-1Registers ............................................................................................... XIV - 5
14-3Operation................................................................................................................ XIV - 9
14-3-1Basic Operations and Timing ................................................................ XIV - 9
14-3-2Setting the Memory Address .............................................................. XIV - 11
14-3-3Setting the Data Transfer Count ......................................................... XIV - 12
14-3-4Setting the Data Transfer Modes ........................................................ XIV - 13
14-3-5Transfer Mode 0.................................................................................. XIV - 14
14-3-6Transfer Mode 1.................................................................................. XIV - 15
14-3-7Transfer Mode 2.................................................................................. XIV - 16
14-3-8Transfer Mode 3.................................................................................. XIV - 17
14-3-9Transfer Mode 4.................................................................................. XIV - 18
14-3-10Transfer Mode 5.................................................................................. XIV - 19
14-3-11Transfer Mode 6.................................................................................. XIV - 20
14-3-12Transfer Mode 7.................................................................................. XIV - 22
14-3-13Transfer Mode 8.................................................................................. XIV - 24
14-3-14Transfer Mode 9.................................................................................. XIV - 26
14-3-15Transfer Mode A................................................................................. XIV - 28
14-3-16Transfer Mode B ................................................................................. XIV - 29
14-3-17Transfer Mode C ................................................................................. XIV - 30
14-3-18Transfer Mode D ................................................................................. XIV - 31
14-3-19Transfer Mode E ................................................................................. XIV - 32
14-3-20Transfer Mode F ................................................................................. XIV - 33
14-4Setup Example ...................................................................................................... XIV - 34
Chapter 15A/D Converter
15-1Overview ................................................................................................................. XV - 2
15-1-1Functions ............................................................................................... XV - 2
ix
contents
15-1-2Block Diagram ........................................................................................ XV - 3
15-2Control Registers..................................................................................................... XV - 4
15-2-1Registers ................................................................................................ XV - 4
15-2-2Control Registers.................................................................................... XV - 5
15-2-3Data Buffers ........................................................................................... XV - 7
15-3Operation................................................................................................................. XV - 8
15-3-1Setup .................................................................................................... XV - 1 0
15-3-2Setup Example ...................................................................................... XV - 12
15-3-3Cautions ............................................................................................... XV - 16
Chapter 16D/A Converter
16-1Overview ................................................................................................................ XVI - 2
16-1-1Functions .............................................................................................. XVI - 2
16-2Operation................................................................................................................ XVI - 3
16-3Control Registers.................................................................................................... XVI - 4
16-3-1Overview ............................................................................................... XVI - 4
16-3-2Control Registers................................................................................... XVI - 5
16-3-3Input Data Register ............................................................................... XVI - 6
16-4Setup Example ........................................................................................................ XVI - 7
Chapter 17Appendices
17-1Probe Switches ..................................................................................................... XVII - 2
17-1-1PRB-MBB101C77-M.............................................................................. XVII - 2
17-1-2PX-CN101-M ......................................................................................... XVII - 3
17-1-3PX-ADP101-64-M.................................................................................. XVII - 4
17-1-4PRB-DMY101C77-M ............................................................................. XVII - 5
17-2Special Function Registers List ............................................................................ XVII - 6
17-3
Instruction Set..................................................................................................... XVII - 15
17-4
Instruction Map .................................................................................................. XVII - 21
Chapter 18Flash EEPROM
18-1Overview ............................................................................................................. XVIII - 2
18-1-1Overview .............................................................................................. XVIII - 2
18-1-2Differences between Mask ROM version and EPROM version........... XVIII - 4
18-2Pin Descriptions .................................................................................................. XVIII - 5
18-3Electrical Characteristics ..................................................................................... XVIII - 6
18-3-1Absolute Maximum Ratings ................................................................. XVIII - 6
18-3-2Operating Conditions ........................................................................... XVIII - 7
18-3-3DC Characteristics ................................................................................ XVIII - 8
x
contents
18-4Reprogramming Flow........................................................................................... XVIII - 9
18-5PROM writer mode ............................................................................................ XV III - 10
18-6Onboard Serial Programming Mode .................................................................. XVII I - 1 2
18-6-1Overview ............................................................................................ XVIII - 12
18-6-2Circuit Requirements for the T arget Board (in Clock Synchronous
Communication using the YDC Serial Writer)..................................... XVIII - 13
18-6-3Circuit Requirements for the T arget Board (in Clock Synchronous
Communication using the PanaX Serial Writer).................................. XVIII - 16
xi
contents
Chapter 1Overview
1
Chapter 1 Overview
1-1Overview
1-1-1Overview
The MN101C series of 8-bit single-chip microcontroller incorporates multiple types of peripheral functions.
This chip series is well suited for camera, VCR, MD, TV, CD, LD, printer, telephone, home automation
products, pager, air conditioner, PPC remote control, fax machine, musical instrument, and other applications.
The MN101C77 series brings to embedded microcontroller applications flexible, optimized hardware
configurations and a simple efficient instruction set. The MN101C77C has an internal 48 KB of ROM and
3 KB of RAM. Peripheral functions include 5 external interrupts, 17 internal interrupts including NMI,
independent 6 timer counters, 4 sets of serial interfaces, A/D converter, D/A converter, watchdog timer,
automatic data transfer, synchronous output, buzzer output, and remote control output. The configuration of this microcontroller is well suited for application such as a system controller in a camera, VCR
selection timer, CD player, or MD.
With two oscillation systems (max.20 MHz/32 kHz) contained on the chip, the system clock can be
switched to high speed oscillation (NORMAL mode), or to low speed oscillation (SLOW mode). The
system clock is generated by dividing the oscillation clock. The best operation clock for the system can
be selected by switching its frequency by software. There are 2 choices for high speed oscillation : the
normal mode, which has a system clock based on the clock (fosc/2) divided by 2, and the 2x-speed
mode, which has a system clock based on the same cycle clock (fosc).
On the normal mode, when the oscillation source(fosc) is 8 MHz, minimum instructions executiontime is for 250 ns, and when fosc is 20 MHz, it is 100 ns. On the 2x-speed mode, CPU is operated with
the same cycle to the external clock, when fosc is 8 MHz, minimum instructions execution time is 125 ns.
The packages are 64-pin LQFP and 64-pin TQFP (under development).
1-1-2Product Summary
This manual describes the following models of the MN101C77 series. These products have same peripheral functions. (Refer to chapter 18 Flash EEPROM for Flash version.)
Table 1-1-1 Product Summary
Model ROM Size RAM SizeClassification
MN101C77C 48 KB 3 KB Mask ROM version
MN101CF77G 128 KB 6 KB Flash EEPROM version
I - 2
Overview
1-2Hardware Functions
CPU CoreMN101C Core
- LOAD-STORE architecture (3-stage pipeline)
- Half-byte instruction set / Handy addressing
- Memory addressing space is 256 KB
- Minimum instructions execution time (3.0 V to 3.6 V for Flash version)
High speed oscillation
[normal]0.10 µs/ 20 MHz (2.5 V to 3.6 V)
0.50 µs/ 4 MHz (1.8 V to 3.6 V)
[2x-speed] 0.119 µs/ 8.39 MHz (2.5 V to 3.6 V)
Low speed oscillation61.04 µs/ 32.768 kHz (1.8 V to 3.6 V)
- Operation modes
NORMAL mode ( High speed oscillation )
SLOW mode ( Low speed oscillation )
HALT mode
STOP mode
(The operation clock can be switched in each mode.)
Chapter 1 Overview
0.20 µs/ 10 MHz (2.1 V to 3.6 V)
Memory bankData memory space expansion by bank form (4 banks unit : 64 KB / 1 bank)
- Bank for source address / Bank for destination address
ROM correction Max.3 parts in program can be corrected
Internal memory ROM 48 KB (Flash version 128 KB)
RAM 3 KB (Flash version 6 KB)
Interrupts17 Internal interrupts
<Non-maskable interrupt (NMI)>
- Incorrect code execution interrupt and Watchdog timer interrupt
< Timer interrupts >
- Timer 0 interrupt (8-bit timer)
- Timer 1 interrupt (8-bit timer)
- Timer 4 interrupt (8-bit timer)
- Timer 5 interrupt (8-bit timer)
- Timer 6 interrupt (8-bit timer)
- Time base interrupt (8-bit timer)
- Timer 7 interrupt (16-bit timer)
- Match interrupt for Timer 7 compare register 2
Hardware Functions
I - 3
Chapter 1 Overview
< Serial interface interrupts >
- Serial interface 0 reception interrupt (Full-Duplex UART)
- Serial interface 0 transmission interrupt (synchronous + Full-Duplex UART)
- Serial interface 1 reception interrupt (Full-Duplex UART)
- Serial interface 1 transmission interrupt (synchronous + Full-Duplex UART)
- Serial interface 3 interrupt (synchronous + single master IIC)
- Clock source
fosc, fosc/2, fosc/4, fosc/16, fs, fs/2, fs/4, fs/16,
1/1, 1/2, 1/4, 1/16 of the external clock
- Hardware organization
Compare register with double buffer2 sets
Input capture register1 set
Timer interrupt2 vectors
- Timer functions
Square wave output ( Timer pulse output ), Event count,
High precision PWM output ( Cycle/Duty variable continuously ),
Timer synchronous output, Input capture function ( Both edges
can be operated )
- Real time output control
PWM output is controlled in real time by the external interrupt 0 (IRQ0).
At the interrupt enable edge of the external interrupt 0 (IRQ0), PWM output
( Timer output ) is controlled in 3 values ; "fixed high", "fixed low",
"Hi-z".
Hardware Functions
I - 5
Chapter 1 Overview
Watchdog timer
- Watchdog timer frequency can be selected from fs/216, fs/2
18
or fs/220.
Remote control output
Based on the timer 0, and timer 3 output, a remote control carrier with duty
cycle of 1/2 or 1/3 can be output.
- Transfer size 7 to 8 bits can be selected.
[Note : When Matsushita standard serial writer is used for flash memory
version, serial interface 0 is used for program transfer.]
I - 6
Hardware Functions
Chapter 1 Overview
Serial interface 1 ( Full-Duplex UART / Synchronous serial interface )
- MSB/LSB can be selected as the first bit to be transferred. Any
transfer size 1 to 8 bits can be selected.
- Sequence transmission, sequence reception or both are available.
Single master IIC
- IIC communication for single master ( 9-bit transfer )
Serial interface 4 ( Slave IIC )
IIC slave serial interface
- IIC high-speed transfer mode (400 kbps) is available.
- 7 bits or 10 bits slave address setting is available.
- Compatible with general call communication mode
LED driver8 pins
PortI/O ports 53 pins
- LED ( large current ) driver pin 8 pins
- Serves as external interrupt 5 pins
Special pins 10 pins
- Analog reference voltage input pin 2 pins
- Operation mode input pin 1 pin
- Reset input pin 1 pin
- Power pin 2 pins
- Oscillation pin 4 pins
Package64-pin LQFP ( 14 mm square / 0.8 mm pitch )
64-pin TQFP ( 10 mm square / 0.5 mm pitch )
Hardware Functions
I - 7
Chapter 1 Overview
On Flash version MN101CF77G, NC pin cannot be used as user pin as it is used as VPP pin.
Refer to chapter 18 Flash EEPROM when designing your board for compatibility with Flash
version.
Set VREF+ to VDD, VREF- to VSS even when A/D converter is not used.
Connect these oscillation pins to cer amic or
crystal oscillat ors for high-frequency c loc k
operation.
If the clock is an external input, connect it to OSC1
and leave OSC2 open. T he chip will not oper at e
with an external c lock when using either the
STOP or SLOW modes.
NRST14I/OReset pin P27This pin resets the chip when power is turned on,
P0015I/OI/O port 0SBO1A, TXD1A
P0116SBI1A, RXD1 A
SDA4B
P0217SBT1A , SCL4B
P0318SBO0A , T XD0A
P0419SBI0A, RXD0 A
P0520SBT0A
P0621 BUZZER
P1022I/OI/O port 1TCO0A, RMOUTA
P1123TCIO0B, RMOUTB
P1224TCO4A
P1325TCIO4B
P1426TCI07
Connect these oscillation pins to cer amic
oscillators or crystal oscillators for low-fr equency
clock operation.
If the clock is an external input, connect it to XI
and leave XO open. The c h ip will not operate with
an ex ternal clock when using the STOP mode. If
these pins are not used, connect XI to VSS and
leav e XO open.
is allocated as P27 and contains an internal pullup resistor. S etting this pin low initializes the
internal state of the device. Thereafter, setting the
input to high r eleases the reset. The hardware
waits for t he sy stem clock to stabilize, then
processes the reset int errupt. Also, if ""0" " is
written to P27 and the reset is initiated by
softwar e, a low level will be out put. The output
has an n-channel open-drain configur ation. I f a
capacitor is to be inserted between NRST and
VDD, it is recommended that a discharge diode
be placed between NRST and VDD.
7-Bit CMOS tri-state I/O port.
Eac h bi t can b e set in di vi dual l y as either an in put
or output by the P0DIR register. A pull-up resistor
for eac h bit c an be selected individually by the
P0PLU register.
At reset, the input mode is selected and pull-up
resistors are disabled (high impedance output) .
5-Bit CMOS tri-state I/O port.
Eac h bi t can b e set in di vi dual l y as either an in put
or output by the P1DIR register. A pull-up resistor
for eac h bit c an be selected individually by the
P1PLU register.
At reset, the input mode is selected and pull-up
resistors are disabled (high impedance output) .
Pin Description
I - 11
Chapter 1 Overview
Table 1-3-4 Pin Function Summary (2/6)
NameNo.I/OF unctio nOther FunctionDescription
P2027I/OI/O port 2 IRQ0
P2128IRQ1, ACZ
P2229IRQ2
P2330IRQ3
P2431IRQ4
P2714InputI /O port 2 NRSTP27 has an n-channel open-drain configurati on.
P5032I/OI/O port 5 SBI3
P5133SBO3,
P5234SBT3
P5335SDA4A
5-Bit CMOS tri-state I/O port.
A pull-up resistor for each bi t can be select e d
individually by the P2PLU register .
At reset, pull-up r esistor s are d isabled
(high impedance output ) .
When "0" is written and the reset is initiated by
softwar e, a low level will be out put.
5-Bit CMOS tri-state I/O port.
Each bit can be set individually as either an input
or output by the P5 DIR register . A pul l-up resistor
for eac h bit c an be selected individually by the
P5PLU register. At reset, the P50t o P54 input
mode is selected and pull- up resistors are
disabled. (high impedance output)
8-Bit CMOS tri-state I/O port.
Each bit can be set individually as either an input
or output by the P6 DIR register . A pul l-up resistor
for eac h bit c an be selected individually by the
P6PLU register.
At reset, the P60 to P67 input mode is selected
and pull- up resistors are disabled.
(high impedance output )
8-Bit CMOS tri-state I/O port.
Each bit can be set individually as either an input
or output by the P7 DIR register . A pul l-up/pulldown resistor for each bit can be selected
individually by the P7PLU r e gist e r . Howev er,
pull-up and pull-down resistors cannot be mixed.
At reset, the P70to P77 input mode is selected
and pull- up resistors are disabled. (high
impedance output )
8-Bit CMOS tri-state I/O port. Each bit can be set
individu al ly as either an input or output by the
P8DIR register. A pull-up resistor for each bit c an
be selected individually by the P8PLU register.
When c o nfigured as out puts, these pins can
drive LEDs directly. A t reset, the P80to P 87 input
mode is selected and pull- up resistors are
disabled. (high impedance output)
6-Bit I/O port. A pull-up or pull-down resistor for
each bi t can be selected individually by the
PAPLUD resister. However, pull-up and pulldown resistors cannot be mixed. At reset, the
PA0 to PA 6 input mode is selected and pull- up
resistor s are di sabled. (high impedance ou tput)
I - 12
Pin Description
Loading...
+ 514 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.