Type MCU. MG20L021A Datasheet

MG20L021A MCU. Datasheet pdf. Equivalent


Megawin MG20L021A
笙泉科技股份有限公司
Megawin Technology Co., Ltd.
Version: 0.15
MG20L021A
Data Sheet
8-bit I/O type MCU with LED driver
Version 0.15
This document information is the intellectual property of Megawin Technology.
Megawin Technology Co., Ltd. 2011 All right reserved.
QP-7300-03D
1/36


MG20L021A Datasheet
Recommendation MG20L021A Datasheet
Part MG20L021A
Description 8-Bit I/O Type MCU
Feature MG20L021A; Megawin Technology Co., Ltd. Version: 0.15 MG20L021A Data Sheet 8-bit I/O type MCU with LED drive.
Manufacture Megawin
Datasheet
Download MG20L021A Datasheet




Megawin MG20L021A
MG20L021A Datasheet
Version 0.15
Table of Contents
1 Features........................................................................................................... 4
1.1 Application Field ................................................................................................................4
2 General Description ......................................................................................... 5
3 Pin Configurations............................................................................................ 6
3.1 Pad Assignment ................................................................................................................6
3.2 Pin Description ..................................................................................................................6
3.3 Package SOP28................................................................................................................7
4 Block Diagram.................................................................................................. 8
5 Function Description ........................................................................................ 9
5.1 Registers...........................................................................................................................9
5.2 Accumulator ......................................................................................................................9
5.3 Index Register(X,Y) ...........................................................................................................9
5.4 Processor Status Register.................................................................................................9
5.5 Program Counter(PC) .......................................................................................................9
5.6 Stack Point(S) ...................................................................................................................9
6 Memory Organization ..................................................................................... 10
6.1 SFR Mapping ..................................................................................................................11
6.2 Write Protect Function Register.......................................................................................12
6.3 Bank select......................................................................................................................12
7 Interrupt.......................................................................................................... 13
7.1 Interrupt Register.............................................................................................................13
7.2 Interrupt System ..............................................................................................................14
8 Reset ............................................................................................................. 15
8.1 Low Voltage Reset (LVR) ................................................................................................15
8.2 Watchdog Timer (WDT)...................................................................................................16
9 Power Control ................................................................................................ 17
9.1 Main Clock Manager Control Register .............................................................................17
9.2 Release halt mode enable flag ........................................................................................18
10 Divider....................................................................................................... 19
11 RTC (Real Time Clock) register ................................................................ 20
12 Timer......................................................................................................... 21
12.1
Timer0 .............................................................................................................................21
12.2
Timer1 .............................................................................................................................22
12.3
Timer2 .............................................................................................................................23
13 Configurable I/O Ports............................................................................... 24
13.1
Port 0 ..............................................................................................................................24
13.2
Port 1 ..............................................................................................................................25
13.3
Port 2 ..............................................................................................................................26
14 I/O multi-function selector.......................................................................... 27
15 PWM Register........................................................................................... 28
16 CH1, CH2 Buffer ....................................................................................... 29
17 AUD buffer transfer control........................................................................ 30
18 Option Register ......................................................................................... 31
19 Programming Notice ................................................................................. 32
20 Application Circuit ..................................................................................... 33
21 Electrical Characteristics ........................................................................... 34
21.1
Absolute Maximum Rating...............................................................................................34
This document information is the intellectual property of Megawin Technology.
Megawin Technology Co., Ltd. 2011 All right reserved.
QP-7300-03D
2/36



Megawin MG20L021A
MG20L021A Datasheet
Version 0.15
21.2
DC Characteristics ..........................................................................................................34
21.3
AC Characteristics...........................................................................................................35
22 Revision History ........................................................................................ 36
This document information is the intellectual property of Megawin Technology.
Megawin Technology Co., Ltd. 2011 All right reserved.
QP-7300-03D
3/36







@ 2014 :: Datasheetspdf.com :: Semiconductors datasheet search & download site (Privacy Policy & Contact)