MagnaChip MC80F0104 User manual

MAGNACHIP SEMICONDUCTOR LTD.
8-BIT SINGLE-CHIP MICROCONTROLLERS
MC80F0104/0204
MC80C0104/0204
Preliminary User’s Manual (Ver. 0.2)

Version 0.2
Published by
MCU Application Team
2005 MagnaChip semiconductor Ltd. All right reserved.
Additional information of this manual may be served by MagnaChip semiconductor offices in Korea or Distributors and Representatives.
MagnaChip semiconductor reserves the right to make changes to any information here in at any time without notice.
The information, diagrams and other data in this manual are correct and reliable; however, MagnaChip semiconductor is in no way re-
sponsible for any violations of patents or other rights of the third party generated by the use of this manual.
REVISION HISTORY
VERSION 0.2 (MAR. 2005) This book
Fix some errata.
VERSION 0.1 (MAR. 2005) This book
First Edition

Preliminary MC80F0104/0204
Mar. 2005 Ver 0.2
1. OVERVIEW ...................................................................................................................................................... 1
Description ...................................................................................................................................................... 1
Features .......................................................................................................................................................... 1
Development Tools ......................................................................................................................................... 2
Ordering Information ................................................................................................................................. 3
2. BLOCK DIAGRAM .......................................................................................................................................... 4
3. PIN ASSIGNMENT .......................................................................................................................................... 5
4. PACKAGE DRAWING ..................................................................................................................................... 6
5. PIN FUNCTION ................................................................................................................................................ 8
6. PORT STRUCTURES .................................................................................................................................... 10
7. ELECTRICAL CHARACTERISTICS ............................................................................................................. 14
Absolute Maximum Ratings .......................................................................................................................... 14
Recommended Operating Conditions ........................................................................................................... 14
A/D Converter Characteristics ...................................................................................................................... 14
DC Electrical Characteristics ........................................................................................................................ 15
AC Characteristics ........................................................................................................................................ 16
Typical Characteristics .................................................................................................................................. 17
8. MEMORY ORGANIZATION .......................................................................................................................... 18
Registers ....................................................................................................................................................... 18
Program Memory .......................................................................................................................................... 21
Data Memory ................................................................................................................................................ 24
Addressing Mode .......................................................................................................................................... 29
9. I/O PORTS ..................................................................................................................................................... 33
R0 and R0IO register .................................................................................................................................... 33
R1 and R1IO register .................................................................................................................................... 34
R3 and R3IO register .................................................................................................................................... 36
10. CLOCK GENERATOR ................................................................................................................................ 37
Oscillation Circuit ......................................................................................................................................... 37
11. BASIC INTERVAL TIMER ........................................................................................................................... 39
12. WATCHDOG TIMER ................................................................................................................................... 41
13. TIMER/EVENT COUNTER .......................................................................................................................... 44
8-bit Timer / Counter Mode ........................................................................................................................... 47
16-bit Timer / Counter Mode ......................................................................................................................... 52
8-bit Compare Output (16-bit) ....................................................................................................................... 53
8-bit Capture Mode ....................................................................................................................................... 53
16-bit Capture Mode ..................................................................................................................................... 58
....................................................................................................................................................PWM Mode 60
14. ANALOG TO DIGITAL CONVERTER ......................................................................................................... 64
15. SERIAL INPUT/OUTPUT (SIO) ................................................................................................................... 67
Transmission/Receiving Timing .................................................................................................................... 68
The usage of Serial I/O ................................................................................................................................. 70
The Method to Test Correct Transmission .................................................................................................... 70
16. UNIVERSAL ASYNCHRONOUS RECEIVER/TRANSMITTER (UART) ..................................................... 71

MC80F0104/0204 Preliminary
Mar. 2005 Ver 0.2
UART Serial Interface Functions .................................................................................................................. 71
Serial Interface Configuration ....................................................................................................................... 72
Communication operation ............................................................................................................................. 76
Relationship between main clock and baud rate .......................................................................................... 77
17. BUZZER FUNCTION ................................................................................................................................... 78
18. INTERRUPTS .............................................................................................................................................. 80
Interrupt Sequence ....................................................................................................................................... 82
BRK Interrupt ................................................................................................................................................ 84
Multi Interrupt ................................................................................................................................................ 84
External Interrupt .......................................................................................................................................... 86
19. POWER SAVING OPERATION .................................................................................................................. 88
Sleep Mode ................................................................................................................................................... 88
Stop Mode ..................................................................................................................................................... 89
Stop Mode at Internal RC-Oscillated Watchdog Timer Mode ....................................................................... 92
Minimizing Current Consumption .................................................................................................................. 94
20. RESET ......................................................................................................................................................... 96
21. POWER FAIL PROCESSOR ....................................................................................................................... 98
22. COUNTERMEASURE OF NOISE ............................................................................................................. 100
Oscillation Noise Protector .......................................................................................................................... 100
Oscillation Fail Processor ........................................................................................................................... 101
23. Device Configuration Area ...................................................................................................................... 102
24. MASK Option (MC80C0104/0204) ........................................................................................................... 103
25. Emulator EVA. Board Setting ................................................................................................................ 104
26. IN-SYSTEM PROGRAMMING (ISP) ......................................................................................................... 107
Getting Started / Installation ........................................................................................................................ 107
Basic ISP S/W Information .......................................................................................................................... 107
Hardware Conditions to Enter the ISP Mode .............................................................................................. 109
Reference ISP Circuit Diagram and MagnaChip Supplied ISP Board ........................................................ 110
27. A. INSTRUCTION MAP .................................................................................................................................. i
28. B. INSTRUCTION SET .................................................................................................................................. ii
1. arithmetic/ logic operation ............................................................................................................................ii
2. REGISTER / MEMORY OPERATION ........................................................................................................iv
3. 16-BIT operation ..........................................................................................................................................v
4. BIT MANIPULATION ...................................................................................................................................v
5. BRANCH / JUMP OPERATION ..................................................................................................................vi
6. CONTROL OPERATION & etc. ................................................................................................................. vii
29. MASK ORDER SHEET .................................................................................................................................. 1
30. MASK ORDER SHEET .................................................................................................................................. 2

Preliminary MC80F0104/0204
Mar. 2005 Ver 0.2 1
MC80F0104/0204
MC80C0104/0204
CMOS SINGLE-CHIP 8-BIT MICROCONTROLLER
WITH 10-BIT A/D CONVERTER AND UART
1. OVERVIEW
1.1 Description
The MC80F0104/0204 is advanced CMOS 8-bit microcontroller with 4K bytes of FLASH. This is a powerful microcontrol-
ler which provides a highly flexible and cost effective solution to many embedded control applications. This provides the
following features : 4K bytes of FLASH, 256 bytes of RAM, 8/16-bit timer/counter, watchdog timer, 10-bit A/D converter,
8-bit Serial Input/Output, UART, buzzer driving port, 10-bit PWM output and on-chip oscillator and clock circuitry. It also
has ONP, noise filter, PFD for improving noise immunity. In addition, the MC80F0104/0204 supports power saving modes
to reduce power consumption.
The MC80C0104/0204 is the MASK ROM version of the MC80F0104/0204. It is fully compatible to the MC80F0104/0204
in function.
This document explains the base MC80F0204, the other’s eliminated functions are same as below table.
1.2 Features
• 4K Bytes On-chip FLASH
- Endurance : 100 times
- Retention time : 10 years
• 256 Bytes On-chip Data RAM
(Included stack memory)
• Minimum Instruction Execution Time:
- 333ns at 12MHz (NOP instruction)
• Programmable I/O pins
(LED direct driving can be a source and sink)
- MC80F0204 : 18(17)
- MC80F0104 : 14(13)
• One 8-bit Basic Interval Timer
• Four 8-bit Timer/counters
(or two 16-bit Timer/counter)
• One Watchdog timer
• Two 10-bit High Speed PWM Outputs
• 10-bit A/D converter
- MC80F0204 : 10 channels
- MC80F0104 : 8 channels
• Two 8-bit Serial Communication Interface
- One Serial I/O and one UART
• One Buzzer Driving port
- 488Hz ~ 250kHz@4MHz
• Four External Interrupt input ports
• On-chip POR (Power on Reset)
• Fourteen Interrupt sources
- External input : 4
- Timer : 6
- A/D Conversion : 1
- Serial Interface : 1
- UART : 2
• Built in Noise Immunity Circuit
- Noise Canceller
- PFD (Power fail detector)
- ONP (Oscillation Noise Protector)
• Operating Voltage & Frequency (MC80F0104/
0204)
- 2.7V ~ 5.5V (at 0.4 ~ 8MHz)
- 4.5V ~ 5.5V (at 0.4 ~ 12MHz)
Device Name FLASH (ROM)
Size RAM ADC I/O PORT Package
FLASH MASK ROM
MC80F0204 MC80C0204 4KB 256B 10 channel 18 port 20 PDIP, 20SOP
MC80F0104 MC80C0104 8 channel 14 port 16 PDIP, 16 SOP

MC80F0104/0204 Preliminary
2Mar. 2005 Ver 0.2
• Operating Voltage & Frequency(MC80C0104/
0204)
- 2.0V ~ 5.5V (at 0.4 ~ 4.2MHz)
- 2.7V ~ 5.5V (at 0.4 ~ 8MHz)
- 4.5V ~ 5.5V (at 0.4 ~ 12MHz)
• Operating Temperature : -40°C ~ 85°C
• Power Saving Modes
- STOP mode
- SLEEP mode
- RC-WDT mode
• Oscillator Type
- Crystal
- Ceramic resonator
- External RC Oscillator (C can be omitted)
- Internal Oscillator (4MHz/2MHz)
1.3 Development Tools
The MC80F0104/0204 is supported by a full-featured macro as-
sembler, an in-circuit emulator CHOICE-Dr.TM and OTP pro-
grammers. There are two different type of programmers such as
single type and gang type. For mode detail, Macro assembler op-
erates under the MS-Windows 95 and upversioned Windows OS.
Please contact sales part of MagnaChip semiconductor.
Software
- MS-Windows based assembler
- MS-Windows based Debugger
- HMS800 C compiler
Hardware
(Emulator)
- CHOICE-Dr.
- CHOICE-Dr. EVA80C0x B/D
FLASH Writer
- CHOICE - SIGMA I/II(Single writer)
- PGM Plus I/II/III(Single writer)
- Standalone GANG4 I/II(Gang writer)
Choice-Dr. (Emulator)
PGMplus III ( Single Writer )
Standalone Gang4 II ( Gang Writer )

Preliminary MC80F0104/0204
Mar. 2005 Ver 0.2 3
1.4 Ordering Information
Device name ROM Size RAM size Package
Mask version
MC80C0204B
MC80C0204D
MC80C0104B
MC80C0104D
4K bytes
4K bytes
4K bytes
4K bytes
256 bytes
20PDIP
20SOP
16PDIP
16SOP
FLASH version
MC80F0204B
MC80F0204D
MC80F0104B
MC80F0104D
4K bytes FLASH
4K bytes FLASH
4K bytes FLASH
4K bytes FLASH
256 bytes
20PDIP
20SOP
16PDIP
16SOP

MC80F0104/0204 Preliminary
4Mar. 2005 Ver 0.2
2. BLOCK DIAGRAM
ALU Accumulator Stack Pointer
Interrupt Controller
Data
Memory
10-bit
Converter
A/D
8-bit
Counter
Timer/
Program
Memory
Data Table
PC
8-bit Basic
Timer
Interval
Watch-dog
Timer
Instruction
R0 R1
Buzzer
Driver
PSW
System controller
Timing generator
System
Clock Controller
Clock Generator
RESET
R00 / INT3 / SCK
R01 / AN1 / SI
R02 / AN2 / SOUT
R03 / AN3 / INT2
R04 / AN4 / EC0 / RXD
R05 / AN5 / T0O / TXD
R06 / AN6 / T2O / ACLK
R07 / AN7 / EC1
R10 / AN0 / AVREF / PWM1O
R11 / INT0 / PWM3O
R12 / INT1 / BUZO
R13
R14
VDD
VSS
Power
Supply
Decoder
High
PWM
Speed
R3
XOUT / R34
SIO/UART
R31 / AN14
R32 / AN15
XIN / R33

Preliminary MC80F0104/0204
Mar. 2005 Ver 0.2 5
3. PIN ASSIGNMENT
R02 / AN2 / SOUT
R01 / AN1 / SI
R00 / INT3 / SCK
VSS
RESET / R35
XOUT / R34
XIN / R33
R32 / AN15
R31 / AN14
R05 / AN5 / T0O / TXD
R06 / AN6 / T2O / ACLK
R07 / AN7 / EC1
VDD
R10 / AN0 / AVREF / PWM1O
R11 / INT0 / PWM3O
20 PDIP
19
18
17
16
15
14
13
12
11
16 PDIP
R12 / INT1 / BUZO
R13
R14
MC80F0204B/0204D
MC80F0104B/0104D
R03 / AN3 / INT2
R04 / AN4 / EC0 / RXD 20
16 SOP
2
3
4
5
6
7
8
9
10
1
MC80F0204B/0204D
R02 / AN2 / SOUT
R01 / AN1 / SI
R00 / INT3 / SCK
VSS
RESET / R35
XOUT / R34
XIN / R33
R05 / AN5 / T0O / TXD
R06 / AN6 / T2O / ACLK
R07 / AN7 / EC1
VDD
R10 / AN0 / AVREF / PWM1O
R11 / INT0 / PWM3O
19
18
17
16
15
14
13
R12 / INT1 / BUZO
R03 / AN3 / INT2
R04 / AN4 / EC0 / RXD 20
2
3
4
5
6
7
8
1
MC80F0104B/0104D
20 SOP

MC80F0104/0204 Preliminary
6Mar. 2005 Ver 0.2
4. PACKAGE DRAWING
1.043
0.050
TYP 0.100
TYP 0.300
0.270
0.014
0 ~ 15°
MAX 0.180
MIN 0.015
0.120
20 PDIP unit: inch
MAX
MIN
1.010
0.021
0.140
0.065
0.008
0.245
0.015
0.291
0.398
0.5118
0.104
0.013 TYP 0.050
0.004
0.0091
0 ~ 8°
0.016
20 SOP
0.419
0.299
0.4961
0.093
0.020
0.042
0.0125
0.0118

Preliminary MC80F0104/0204
Mar. 2005 Ver 0.2 7
0.765
0.050
TYP 0.100
TYP 0.300
0.260
0.014
0 ~ 15°
MAX 0.180
MIN 0.015
0.120
0.292
0.398
0.412
0.104
0.014 TYP 0.050
0.004
0.0091
0 ~ 8°
0.016
16 PDIP
16 SOP
unit: inch
MAX
MIN
0.745
0.022
0.140
0.065
0.008
0.240
0.416
0.299
0.402
0.094
0.019
0.040
0.0125
0.0118
0.015

MC80F0104/0204 Preliminary
8Mar. 2005 Ver 0.2
5. PIN FUNCTION
VDD: Supply voltage.
VSS: Circuit ground.
RESET: Reset the MCU.
XIN: Input to the inverting oscillator amplifier and input to
the internal main clock operating circuit.
XOUT: Output from the inverting oscillator amplifier.
R00~R07: R0 is an 8-bit, CMOS, bidirectional I/O port.
RA pins can be used as outputs or inputs according to “1”
or “0” written the their Port Direction Register(R0IO).
In addition, R0 serves the functions of the various special
features in Table 5-1 .
R10~R14: R1 is a 5-bit, CMOS, bidirectional I/O port. R1
pins can be used as outputs or inputs according to “1” or
“0” written the their Port Direction Register (R1IO).
R1 serves the functions of the various following special
features in Table 5-2
R31~R34: R3 is an 4-bit, CMOS, bidirectional I/O port.
R3 pins can be used as outputs or inputs according to “1”
or “0” written the their Port Direction Register (R3IO).
R3 serves the functions of the serial interface following
special features in Table 5-3 .
Port pin Alternate function
R00
R01
R02
R03
R04
R05
R06
R07
INT3 ( External Interrupt Input Port3 )
SCK ( SPI CLK )
AN1 ( Analog Input Port 1 )
SI ( SPI Serial Data Input )
AN2 ( Analog Input Port 2 )
SOUT ( SPI Serial Data Output )
AN3 ( Analog Input Port 3 )
INT2 ( External Interrupt Input Port2 )
AN4 ( Analog Input Port 4 )
EC0 ( Event Counter Input Source 0 )
RXD ( UART Data Input )
AN5 ( Analog Input Port 5 )
T0O (Timer0 Clock Output )
TXD ( UART Data Output )
AN6 ( Analog Input Port 6 )
T2O (Timer2 Clock Output )
ACLK ( UART Clock Input )
AN7 ( Analog Input Port 7 )
EC1 ( Event Counter Input Source 1 )
Table 5-1 R0 Port
Port pin Alternate function
R10
R11
R12
R13
R14
AN0 ( Analog Input Port 0 )
AVref ( External Analog Reference Pin )
PWM1O ( PWM1 Output )
INT0 ( External Interrupt Input Port 0 )
PWM3O ( PWM3 Output )
INT1 ( External Interrupt Input Port 1 )
BUZ ( Buzzer Driving Output Port )
Table 5-2 R1 Port
Port pin Alternate function
R31
R32
R33
R34
R35
AN14 ( Analog Input Port 14 )
AN15 ( Analog Input Port 15 )
XIN ( Oscillation Input )
XOUT ( Oscillation Output )
RESET ( Reset input port )
Table 5-3 R3 Port

Preliminary MC80F0104/0204
Mar. 2005 Ver 0.2 9
PIN NAME Pin No.
(20PDIP) In/Out Function
VDD 5-Supply voltage
VSS 16 -Circuit ground
RESET (R35) 15 I ( I ) Reset signal input Input only port
XIN (R33) 13 I (I/O) Oscillation Input Normal I/O Port
XOUT (R34) 14 O (I/O) Oscillation Output Normal I/O Port
R00 (INT3 / SCK) 17 I/O (Input / I/O)
Normal I/O Ports
External Interrupt Input3 / SPI clock Input/Output
R01 (AN1 / SI) 18 I/O (Input/Input) Analog Input Port 1 / SPI Data Input
R02 (AN2 / SOUT) 19 I/O (Input/Output) Analog Input Port 2 / SPI Data Output
R03 (AN3 / INT2) 20 I/O (Input/Input) Analog Input Port 3 / External Interrupt Input2
R04 (AN4 / EC0 / RXD) 1 I/O (Input/Input/Input) Analog Input Port 4 / Event Counter Input 0 /
UART Data Input
R05 (AN5 / T0O / TXD) 2 I/O (Input/Output/Output) Analog Input Port 5 / Timer0 Output / UART
Data Output
R06 (AN6 / T2O / ACLK) 3 I/O (Input/Output/Input) Analog Input Port 6 / Timer2 Output / UART
Clock Input
R07 (AN7 / EC1) 4 I/O (Input/Input) Analog Input Port 7 / Event Counter Input 1
R10 (AN0 / AVREF /
PWM1O) 6I/O (Input/Input/Output) Analog Input Port 0 / Analog Reference / PWM 1
output
R11 (INT0 / PWM3O) 7 I/O (Input/Output) External Interrupt Input 0
R12 (INT1 / BUZO) 8 I/O (Input/Output) External Interrupt Input 1 / Buzzer Driving Output
R13 9 I/O -
R14 10 I/O -
R31 (AN14) 11 I/O (Input) Analog Input Port 14
R32 (AN15) 12 I/O (Input) Analog Input Port 15
Table 5-4 Pin Description

MC80F0104/0204 Preliminary
10 Mar. 2005 Ver 0.2
6. PORT STRUCTURES
R13~R14
R31 (AN14), R32 (AN15)
R01 (AN1 / SI)
R03 (AN3 / INT2), R07 (AN7 / EC1)
VDD
VSS
Pin
Data Reg.
Direction
Reg.
Pull-up
Tr.
Pull-up
Reg.
MUX
VDD
Data Bus
VDD
VSS
Open Drain
Reg.
RD
RD
AN[15:14]
ADEN & ADS[3:0] (ADCM)
VDD
VSS
Pin
Data Reg.
Direction
Reg.
Pull-up
Tr.
Pull-up
Reg.
MUX
VDD
Data Bus
VDD
VSS
Open Drain
Reg.
SI
SI_EN (SIOM)
Noise
Filter
RD
AN[1]
ADEN & ADS[3:0]
VDD
VSS
Pin
Data Reg.
Direction
Reg.
Pull-up
Tr.
Pull-up
Reg.
MUX
VDD
Data Bus
VDD
VSS
Open Drain
Reg.
(ADCM)
INT2, EC1
INT2E (PSR0.2), EC1E (PSR0.5)
Noise
Filter
RD
AN[3, 7]
ADEN & ADS[3:0]
VDD
VSS
Pin
Data Reg.
Direction
Reg.
Pull-up
Tr.
Pull-up
Reg.
MUX
VDD
Data Bus
VDD
VSS
Open Drain
Reg.
(ADCM)

Preliminary MC80F0104/0204
Mar. 2005 Ver 0.2 11
R04 (AN4 / EC0 / RXD)
R11 (INT0 / PWM3O), R12 (INT1 / BUZO)
R02 (AN2 / SOUT)
R00 (INT3 / SCK)
EC0
EC0E (PSR0)
Noise
Filter
RD
AN[1]
ADEN & ADS[3:0]
VDD
VSS
Pin
Data Reg.
Direction
Reg.
Pull-up
Tr.
Pull-up
Reg.
MUX
VDD
Data Bus
VDD
VSS
Open Drain
Reg.
(ADCM)
RXD
RXE (ASIMR)
Noise
Filter
INT0,INT1
INT0E(PSR0.0)
Noise
Filter
RD
VDD
VSS
Pin
Data Reg.
Direction
Reg.
Pull-up
Tr.
Pull-up
Reg.
MUX
VDD
Data Bus
VDD
VSS
Open Drain
Reg.
INT1E(PSR0.1)
MUX
PWM3OE(PSR0.7)
BUZOE(PSR1.2)
PWM3O, BUZO
SOUT(SI)
SO_OUT_EN (SIOM)
Noise
Filter
RD
VDD
VSS
Pin
Data Reg.
Direction
Reg.
Pull-up
Tr.
Pull-up
Reg.
MUX
VDD
Data Bus
VDD
VSS
Open Drain
Reg.
MUX
SO_EN(SIOM)
SOUT
AN[2]
ADEN & ADS[3:0]
(ADCM)
SCK
SCK_EN(SIOM)
Noise
Filter
RD
VDD
VSS
Pin
Data Reg.
Direction
Reg.
Pull-up
Tr.
Pull-up
Reg.
MUX
VDD
Data Bus
VDD
VSS
Open Drain
Reg.
MUX
SCKO_EN(SIOM)
SCK
INT3
INT3E(PSR0.3)
Noise
Filter

MC80F0104/0204 Preliminary
12 Mar. 2005 Ver 0.2
R06 (AN6 / T2O / ACLK)
R10 (AN0 / AVREF / PWM1O)
R05 (AN5 / T0O / TXD)
RESET
AN[6]
ADEN & ADS[3:0]
RD
VDD
VSS
Pin
Data Reg.
Direction
Reg.
Pull-up
Tr.
Pull-up
Reg.
MUX
VDD
Data Bus
VDD
VSS
Open Drain
Reg.
MUX
T2OE(PSR1.1)
T2O
ACLK
TPS[2:0](BRGCR[6:4])
Noise
Filter
(ADCM)
AN[0]
ADEN & ADS[3:0]
RD
VDD
VSS
Pin
Data Reg.
Direction
Reg.
Pull-up
Tr.
Pull-up
Reg.
MUX
VDD
Data Bus
VDD
VSS
Open Drain
Reg.
MUX
PWM1OE(PSR0.6)
PWM1O
ADC Reference
AVREFS(PSR1.3)
(ADCM)
MUX
VDD
Voltage Input
AN[5]
ADEN & ADS[3:0]
RD
VDD
VSS
Pin
Data Reg.
Direction
Reg.
Pull-up
Tr.
Pull-up
Reg.
MUX
VDD
Data Bus
VDD
VSS
Open Drain
Reg.
MUX
T0OE(PSR1.0)
TXD
(ADCM)
MUX
T0O
TXE(ASIMR.7)
Pin
VDD
VSS
Data Bus
Mask only
Pull-up
Tr.
Pull-up
Reg.
VDD
RD
Internal Reset
Reset Disable
(Configuration option bit)

Preliminary MC80F0104/0204
Mar. 2005 Ver 0.2 13
XIN, XOUT (Crystal or Ceramic Resonator)
XIN, XOUT (External RC or R oscillation)
R33 (XIN), R34 (XOUT)
VDD
VSS
VDD
VSS
VDD
VDD
STOP
MAIN
CLOCK
XIN
XOUT
XIN
VDD
VSS
XOUT
VDD
VSS
VDD
STOP
MAIN
CLOCK
fXIN ÷4
RD
VDD
VSS
Data Reg.
Direction
Reg.
Pull-up
Tr.
Pull-up
Reg.
MUX
VDD
Data Bus
VDD
VSS
Open Drain
Reg.
RD
VDD
VSS
XOUT
Data Reg.
Direction
Reg.
Pull-up
Tr.
Pull-up
Reg.
MUX
VDD
Data Bus
VDD
VSS
Open Drain
Reg.
System Clock ÷4
IN4MCLKXO
IN2MCLKCO
EXRCXO
CLOCK option
(Configuration option bit)
IN4MCLKXO
IN2MCLKXO
CLOCK option
(Configuration
option bit)
/ R34
XIN
/ R33
Main Clock
(to ONP Block)
IN4MCLK
IN2MCLK
IN4MCLK
IN2MCLK
EXRC

MC80F0104/0204 Preliminary
14 Mar. 2005 Ver 0.2
7. ELECTRICAL CHARACTERISTICS
7.1 Absolute Maximum Ratings
Supply voltage ............................................. -0.3 to +6.5 V
Storage Temperature ..................................-65 to +150 °C
Voltage on any pin with respect to Ground (VSS)
...............................................................-0.3 to VDD+0.3V
Maximum current out of VSS pin .......................... 200 mA
Maximum current into VDD pin ............................ 100 mA
Maximum current sunk by (IOL per I/O Pin) ..........20 mA
Maximum output current sourced by (IOH per I/O Pin)
................................................................................. 10 mA
Maximum current (ΣIOL) ...................................... 160 mA
Maximum current (ΣIOH)........................................ 80 mA
Note: Stresses above those listed under “Absolute Maximum
Ratings” may cause permanent damage to the device. This is a
stress rating only and functional operation of the device at any oth-
er conditions above those indicated in the operational sections of
this specification is not implied. Exposure to absolute maximum
rating conditions for extended periods may affect device reliability.
7.2 Recommended Operating Conditions
7.3 A/D Converter Characteristics
(Ta=-40~85°C, VSS=0V, VDD=2.7~5.5V @fXIN=8MHz)
Parameter Symbol Condition Min. Max. Unit
Supply Voltage VDD
fXIN=0.4~12MHz
fXIN=0.4~8MHz
4.5
2.5
5.5
5.5 V
Operating Frequency fXIN
VDD=4.5~5.5V
VDD=2.7~5.5V(MC80F0X04)
VDD=2.0~5.5V(MC80C0X04)
0.4
0.4
0.4
12
8
4.2
MHz
Operating Temperature TOPR
VDD=2.7~5.5V(MC80F0X04)
VDD=2.0~5.5V(MC80C0X04) -40 85 °C
Parameter Symbol Conditions Min. Typ. Max. Unit
Resolution - - 10 - BIT
Overall Accuracy ----±3LSB
Integral Linearity Error ILE
VDD = AVREF = 5V
CPU Clock = 10MHz
VSS = 0V
-−±3LSB
Differential Linearity Error DLE -−±3LSB
Offset Error of Top EOT -±1±3LSB
Offset Error of Bottom EOB -±0.5 ±3LSB
Conversion Time TCONV -13--µS
Analog Input Voltage VAIN -VSS -VDD
(AVREF)V
Analog Reference Voltage AVREF -TBD-
VDD V
Analog Input Current IAIN VDD = AVREF = 5V --10µA
Analog Block Current IAVDD
VDD = AVREF = 5V
VDD = AVREF = 3V
-
-
1
0.5
3
1.5 mA
VDD = AVREF = 5V
power down mode - 100 500 nA

Preliminary MC80F0104/0204
Mar. 2005 Ver 0.2 15
7.4 DC Electrical Characteristics
(TA=-40~85°C, VDD=5.0V, VSS=0V),
Parameter Symbol Pin Condition
Specifications
Unit
Min. Typ. Max.
Input High Voltage
VIH1 XIN, RESET 0.8 VDD -VDD
V
VIH2 Hysteresis Input10.8 VDD -VDD
VIH3 Normal Input 0.7 VDD -VDD
Input Low Voltage
VIL1 XIN, RESET 0-
0.2 VDD
V
VIL2 Hysteresis Input10-
0.2 VDD
VIL3 Normal Input 0 - 0.3 VDD
Output High Voltage VOH All Output Port VDD=5V, IOH=-5mA VDD -1 --V
Output Low Voltage VOL All Output Port VDD=5V, IOL=10mA --1V
Input Pull-up Current IPNormal Input VDD=5V -70 - -130 µA
Input High
Leakage Current
IIH1 All Pins (except XIN)V
DD=5V --5µA
IIH2 XIN VDD=5V --15µA
Input Low
Leakage Current
IIL1 All Pins (except XIN)V
DD=5V -5 - - µA
IIL2 XIN VDD=5V -15 - - µA
Hysteresis | VT| Hysteresis Input1VDD=5V 0.5 - - V
PFD Voltage VPFD VDD 2.0 - 3.0 V
POR Voltage VPOR VDD 2.4 V
POR Start Voltage2VSTART VDD 0TBDV
POR Rising Time2TRISE VDD TBD V/ms
Internal RC WDT
Period TRCWDT XOUT VDD=5.5V 36 - 90 µS
Operating Current IDD VDD VDD=5.5V, fXIN=12MHz -69mA
Wake-up Timer
Mode Current IWKUP VDD VDD=5.5V, fXIN=12MHz -12mA
RCWDT Mode
Current at STOP
Mode
IRCWDT VDD VDD=5.5V -2050µA
Stop Mode Current ISTOP VDD VDD=5.5V, fXIN=12MHz -0.71.6µA
Internal Oscillation
Frequency fIN_CLK XOUT VDD=5V 345MHz
RESET Input Noise
Cancel Time TRST_NC RESET VDD=5V 1.5 1.8 µs
External RC
Oscillator Frequency
fRC-OSC fXOUT = fRC-OSC ÷4 VDD=5.5V
R=30kΩ, C=10pF TBD MHz
fR-OSC fXOUT = fR-OSC ÷4V
DD=5.5V, R=30kΩTBD MHz
1. Hysteresis Input: INT0 ~INT3(R11,R12,R03,R00),SIO(R00,R01,R02),UART(R04,R06),EC0,EC1
2. VSTART and TRiSE parameter is presented for design guidance only and not tested or guaranteed.

MC80F0104/0204 Preliminary
16 Mar. 2005 Ver 0.2
7.5 AC Characteristics
(TA=-40~+85°C, VDD=5V±10%, VSS=0V)
Figure 7-1 Timing Chart
Parameter Symbol Pins
Specifications
Unit
Min. Typ. Max.
Operating Frequency fCP XIN 1-8MHz
External Clock Pulse Width tCPW XIN 50 - - nS
External Clock Transition Time tRCP,tFCP XIN --20nS
Oscillation Stabilizing Time tST XIN, XOUT --20mS
External Input Pulse Width tEPW INT0, INT1, INT2, INT3
EC0, EC1 2--
tSYS
RESET Input Width tRST RESET 8--
tSYS
tRCP tFCP
XIN
INT0, INT1
INT2,
0.5V
VDD-0.5V
0.2VDD
RESET
0.2VDD
0.8VDD
EC0,
tRST
tEPW
tEPW
1/fCP
tCPW tCPW
tSYS
INT3
EC1
This manual suits for next models
3
Table of contents
Other MagnaChip Microcontroller manuals
Popular Microcontroller manuals by other brands

NEC
NEC V850/SC1 user manual

Nordic Semiconductor
Nordic Semiconductor nRF52 Preview Development Kit user guide

Cypress
Cypress CY3664-EXT quick start guide

GigaDevice Semiconductor
GigaDevice Semiconductor GD32H7 Series Application notes

mikroElektronika
mikroElektronika CLICKER2 FOR PIC32MX manual

Circuitmess
Circuitmess MAKERbuino Build guide