MCU. MG64F225 Datasheet

MG64F225 MCU. Datasheet pdf. Equivalent


Megawin MG64F225
笙泉科技股份有限公司
Megawin Technology Co., Ltd.
MG64F225
Data Sheet
65C02 MCU with an
USB 2.0 low-speed interface
This document information is the intellectual property of Megawin Technology.
Megawin Technology Co., Ltd. 2011 All right reserved.
QP-7300-03D
1/68
Version 1.00


MG64F225 Datasheet
Recommendation MG64F225 Datasheet
Part MG64F225
Description MCU
Feature MG64F225; Megawin Technology Co., Ltd. MG64F225 Data Sheet 65C02 MCU with an USB 2.0 low-speed interface Th.
Manufacture Megawin
Datasheet
Download MG64F225 Datasheet




Megawin MG64F225
MG64F225 Datasheet
V1.00
List of Contents
1 Description ..................................................................................................... 4
2 Features......................................................................................................... 5
3 Block Diagram................................................................................................ 6
4 Pin Description............................................................................................... 7
4.1 Pin Definition .................................................................................................................. 7
4.2 Pin Configuration............................................................................................................ 9
4.2.1
Package LQFP48 ................................................................................................... 9
4.2.2
Package SSOP16................................................................................................. 10
4.2.3
Dice ...................................................................................................................... 10
5 6502 Function Description ........................................................................... 11
5.1 Registers ...................................................................................................................... 11
5.1.1
Accumulator.......................................................................................................... 11
5.1.2
Index Register(X,Y) .............................................................................................. 11
5.1.3
Processor Status Register.................................................................................... 11
5.1.4
Program Counter(PC)........................................................................................... 11
5.1.5
Stack Point(S)....................................................................................................... 11
6 Memory Mapping ......................................................................................... 12
6.1 SFR Mapping ............................................................................................................... 13
6.1.1
SFR Table ............................................................................................................ 13
7 Configurable I/O Ports ................................................................................. 15
7.1 IO Structure Diagram ................................................................................................... 15
7.2 IO Port Register........................................................................................................... 15
8 Interrupt ....................................................................................................... 19
8.1 Interrupt Register.......................................................................................................... 19
8.2 Interrupt System ........................................................................................................... 20
9 Timers / PWM .............................................................................................. 21
9.1 8-bit Timer0 / PWM0 .................................................................................................... 21
9.1.1
Timer0 / PWM0 register........................................................................................ 22
9.2 8-bit Timer1 / PWM1 .................................................................................................... 23
9.2.1
Timer1 / PWM1 register........................................................................................ 24
10 SPI Serial Interface................................................................................. 25
10.1 SFR Control Register ................................................................................................... 25
11 Reset ...................................................................................................... 26
11.1 Reset Register.............................................................................................................. 26
11.2 Watchdog Timer Reset................................................................................................. 28
12 Power...................................................................................................... 29
12.1 Regulator...................................................................................................................... 29
12.2 HALT Mode(Idle Mode) ................................................................................................ 29
12.3 STOP Mode(Power-Down Mode)................................................................................. 29
12.4 Power Control Register ................................................................................................ 30
13 System Clock.......................................................................................... 32
14 DPM Control (PS/2 Control) ................................................................... 33
14.1 DPM Register ............................................................................................................... 33
15 USB (Universal Serial Bus)..................................................................... 34
15.1 Features ....................................................................................................................... 34
15.2 Block Diagram .............................................................................................................. 34
15.3 Special Function Registers........................................................................................... 34
15.3.1 USB SFR R/W Procedure .................................................................................... 35
This document information is the intellectual property of Megawin Technology.
Megawin Technology Co., Ltd. 2013 All right reserved.
QP-7300-03D
2/68



Megawin MG64F225
MG64F225 Datasheet
V1.00
15.3.2 USB Interrupt........................................................................................................ 36
15.3.3 SFR Memory Mapping.......................................................................................... 36
15.3.4 USB Reset event .................................................................................................. 37
15.3.5 SFR Description ................................................................................................... 37
16 In Application Programming (IAP) .......................................................... 49
16.1 IAP Register ................................................................................................................. 49
17 Hardware Option..................................................................................... 50
18 Application Circuit ................................................................................... 51
18.1 USB Keyboard circuit ................................................................................................... 51
18.2 USB Multi Media Dongle .............................................................................................. 52
19 DFU Function Description....................................................................... 53
19.1 DFU AP Description ..................................................................................................... 53
19.2 DFU Firmware Library .................................................................................................. 53
19.3 Manual force device into DFU mode ............................................................................ 55
20 Instruction Set......................................................................................... 56
20.1 Instruction Set Table .................................................................................................... 57
20.2 Instruction Set Summary .............................................................................................. 58
20.3 Symbol Description ...................................................................................................... 59
20.4 Arithmetic Operations ................................................................................................... 60
20.5 Logic Operations .......................................................................................................... 61
20.6 Data Transfer ............................................................................................................... 63
20.7 Boolean Variable Manipulation..................................................................................... 64
20.8 Program and Machine Control ..................................................................................... 65
21 Electrical Characteristics ........................................................................ 66
21.1 DC Characteristics ....................................................................................................... 66
21.2 USB Transceiver Electrical Characteristics .................................................................. 67
22 Revision History...................................................................................... 68
This document information is the intellectual property of Megawin Technology.
Megawin Technology Co., Ltd. 2013 All right reserved.
QP-7300-03D
3/68







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