8-Bit Micro-Controller. MG65P701A Datasheet

MG65P701A Micro-Controller. Datasheet pdf. Equivalent


Megawin MG65P701A
笙泉科技股份有限公司
Megawin Technology Co., Ltd.
Version: 2.00
MG65P701A
Datasheet
8-Bit Micro-Controller with
Lithium battery charge function
Version 2.00
This document information is the intellectual property of Megawin Technology.
Megawin Technology Co., Ltd. 2011 All right reserved.
QP-7300-03D
1/42


MG65P701A Datasheet
Recommendation MG65P701A Datasheet
Part MG65P701A
Description 8-Bit Micro-Controller
Feature MG65P701A; Megawin Technology Co., Ltd. Version: 2.00 MG65P701A Datasheet 8-Bit Micro-Controller with Lithiu.
Manufacture Megawin
Datasheet
Download MG65P701A Datasheet




Megawin MG65P701A
MG65P701A Datasheet
Version 2.00
Table of Contents
1 Features .............................................................................................................. 4
1.1 Application Field ................................................................................................................4
2 General Description ............................................................................................ 5
3 Pin Configurations .............................................................................................. 6
3.1 SOP16 ..............................................................................................................................6
4 Block Diagram..................................................................................................... 7
5 Function Description ........................................................................................... 8
5.1 Registers ...........................................................................................................................8
5.2 Accumulator ......................................................................................................................8
5.3 Index Register(X,Y) ...........................................................................................................8
5.4 Processor Status Register.................................................................................................8
5.5 Program Counter(PC)........................................................................................................8
5.6 Stack Point(S) ...................................................................................................................8
6 Memory Organization ......................................................................................... 9
6.1 SFR Mapping ..................................................................................................................10
6.2 Condition Write Protect Register .....................................................................................11
7 Interrupt............................................................................................................. 12
7.1 Interrupt Register.............................................................................................................12
7.1.1
IRQ enable register 0 & IRQ enable register 1.........................................................12
7.1.2
IRQ status flag 0 & IRQ status flag 1 .......................................................................13
7.1.3
IRQ clear flag 0 & IRQ clear flag 1...........................................................................13
7.1.4
System status flag ...................................................................................................13
7.2 Interrupt System ..............................................................................................................13
8 Reset................................................................................................................. 14
8.1 Low Voltage Reset(LVR) .................................................................................................14
8.2 Watchdog Timer(WDT)....................................................................................................15
8.3 Reset OK.........................................................................................................................16
8.4 Programming Notice........................................................................................................16
9 Power Control Register..................................................................................... 17
9.1 Power Saving Control......................................................................................................17
10 System Clock Register ................................................................................ 18
10.1 Clock Register.................................................................................................................18
11 RTC Divider ................................................................................................. 19
11.1 RTC Divider Register.......................................................................................................19
12 Real Time Clock .......................................................................................... 20
12.1 RTC Register ..................................................................................................................20
13 Timer............................................................................................................ 21
13.1 Timer0.............................................................................................................................21
13.2 Timer1.............................................................................................................................22
13.3 Timer2.............................................................................................................................23
14 PWM ............................................................................................................ 24
14.1 PWM Control Register.....................................................................................................24
14.2 PWM Buffer Register.......................................................................................................25
14.3 PWM Dead Time Select Register ....................................................................................25
15 Configurable I/O Ports ................................................................................. 27
15.1 Port 0 ..............................................................................................................................27
15.1.1 Port 0 Port ...............................................................................................................27
15.1.2 Port 0 Output Buffer.................................................................................................27
This document information is the intellectual property of Megawin Technology.
Megawin Technology Co., Ltd. 2011 All right reserved.
QP-7300-03D
2/42



Megawin MG65P701A
MG65P701A Datasheet
Version 2.00
15.1.3 Port 0 Direction Register..........................................................................................27
15.1.4 Port 0 Pull-high Control Register..............................................................................27
15.1.5 Port 0 Analog Function Control Register..................................................................27
15.1.6 Port 0 Interrupt Edge Select Register.......................................................................27
15.2 Port 1 ..............................................................................................................................28
15.2.1 Port 1 Port ...............................................................................................................28
15.2.2 Port 1 Output Buffer.................................................................................................28
15.2.3 Port 1 Direction Register..........................................................................................28
15.2.4 Port 1 Pull-high Control Register..............................................................................29
15.3 Port 0 & Port 1 Function Control Register........................................................................29
15.3.1 Port 0 & Port 1 Output Control Register ...................................................................29
16 ADC ............................................................................................................. 30
16.1 ADC Control Register ......................................................................................................30
16.2 ADC Data Bus.................................................................................................................31
17 Over Current/Voltage Protection ................................................................. 32
17.1 Charge Protection Control Register 0 ..............................................................................32
17.2 Charge Protection Control Register 1 ..............................................................................33
17.3 OCP & OVP De-bounce Selection Register.....................................................................33
17.4 OVP Level Selection Register .........................................................................................34
17.5 OCP Level Selection Register .........................................................................................34
18 In Application Programming(IAP) ................................................................ 35
19 Option Register............................................................................................ 36
20 Application Circuit ........................................................................................ 37
20.1 Reference Schematics ....................................................................................................37
21 Application Note .......................................................................................... 38
21.1 Setup Over Current Protection Circuit .............................................................................38
21.2 Setup Over Voltage Protection Circuit .............................................................................40
22 Electrical Characteristics ............................................................................. 41
22.1 Absolute Maximum Rating...............................................................................................41
22.2 DC Characteristics ..........................................................................................................41
22.3 AC Characteristics...........................................................................................................41
23 Revision History........................................................................................... 42
This document information is the intellectual property of Megawin Technology.
Megawin Technology Co., Ltd. 2011 All right reserved.
QP-7300-03D
3/42





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