Vous êtes sur la page 1sur 21

Getting Started with GPM82 Family

V1.1 – July. 11, 2011

3F, No.8, Dusing Rd., Hsinchu Science Park, Hsinchu City 30078, Taiwan, R.O.C.
Tel: 886-3-666-2118 Fax: 886-3-666-2117  www.generalplus.com
Getting Started with GPM82 Family

Important Notice
Generalplus Technology reserves the right to change this documentation without prior notice. Information

provided by Generalplus Technology is believed to be accurate and reliable. However, Generalplus Technology
makes no warranty for any errors which may appear in this document. Contact Generalplus Technology to obtain
the latest version of device specifications before placing your order. No responsibility is assumed by Generalplus
Technology for any infringement of patent or other rights of third parties which may result from its use. In addition,

Generalplus products are not authorized for use as critical components in life support devices/systems or aviation
devices/systems, where a malfunction or failure of the product may reasonably be expected to result in significant
injury to the user, without the express written approval of Generalplus.

 Generalplus Technology Inc. PAGE 2 V1.1 – July 11, 2011


Getting Started with GPM82 Family

Table of Content
PAGE

1 INTRODUCTION................................................................................................................................................ 5

1.1 GENERAL DESCRIPTION ..........................................................................................................5


1.1.1 The Block Diagram of GPM82 Family ......................................................................................5
1.2 HOW TO CHOOSE THE IC BODY IN GPM82 FAMILY ...............................................................5
1.3 FAMILY OVERVIEW .................................................................................................................6

2 DEVELOPMENT ENVIRONMENT..................................................................................................................... 7

2.1 GENERAL DESCRIPTION ..........................................................................................................7


2.2 DOCUMENT .............................................................................................................................7
2.2.1 Datasheet .............................................................................................................................7
2.2.2 GPM82 Family Programming guide .........................................................................................7
2.3 SOFTWARE ..............................................................................................................................7
2.3.1 Keil C IDE .............................................................................................................................7
2.3.2 Keil C Driver .............................................................................................................................8
2.3.3 MCU Writer Lite ........................................................................................................................8
2.3.4 G+ All Writer .............................................................................................................................9
2.4 HARDWARE .............................................................................................................................9
2.4.1 8051 MCU Probe.......................................................................................................................9
2.4.2 GPM82 EVB and Writer Board................................................................................................11

3 HOW TO USE DEBUG TOOL ......................................................................................................................... 12

3.1 GENERAL DESCRIPTION ........................................................................................................12


3.2 HOW TO USE KEIL C DEBUGGING .........................................................................................12
3.2.1 How to Install Keil C Driver....................................................................................................12
3.2.2 Install Hardware connection....................................................................................................14
3.2.3 Create a New Project. ..............................................................................................................15

4 HOW TO USE DOWNLOAD TOOL ................................................................................................................. 18

4.1 GENERAL DESCRIPTION ........................................................................................................18


4.2 HOW TO MAKE BIN FILE ........................................................................................................18
4.3 HOW TO USE MCU WRITER LITE .........................................................................................20
4.4 HOW TO USE G+ ALL WRITER ..............................................................................................21

 Generalplus Technology Inc. PAGE 3 V1.1 – July 11, 2011


Getting Started with GPM82 Family

Revision History

Revision Date By Remark

1.0 2010/12/30 Joson Chuang First edition.

1.1 2011/7/11 Joson Chuang Add ICE Connection introduce.

 Generalplus Technology Inc. PAGE 4 V1.1 – July 11, 2011


Getting Started with GPM82 Family

1 INTRODUCTION

1.1 General Description


The GPM82 Family , a highly integrated microcontroller which integrates a pipelined 1T 8051 CPU, 82 Family
with 2K bytes EEPROM memory and 128bytes ram. It operates over a wide voltage range of 1.8V - 5.5V with
different clock sources. It has three modes in power management unit. There is also one on chip debug circuit with
two pins to facilitate full speed in-system debug.

1.1.1 The Block Diagram of GPM82 Family

XI/P01 Power
OSC 8-bit CPU
saving
XO/P02 circuit
controller

2K bytes
EEPROM
VDD POR & LVR
ADDRESS BUS

VSS

Watchdog Timer Timer01

RESET/P32 RESET Management


Timer2
DATA BUS

ADDR BUS

Comparator Circuit
Interrupt Management
ADC Circuit

P3[7:0] PORT 3[7:0] 128-byte IDM


P0[5:0] PORT 0[5:0]

GPM82 Family Block diagram

1.2 How to Choose the IC Body in GPM82 Family


The following essentials will help you to choose the proper GPCH1 Family for your products:

 Touch Function
Only GPM8F2702 supports touch library.

 Comparator Function
GPM8F2202 and GPM8F2702 have 2 sets of comparator. The comparator sets supports interrupt service.

 Generalplus Technology Inc. PAGE 5 V1.1 – July 11, 2011


Getting Started with GPM82 Family

 Number of IOs
GPM82 Family has different numbers of I/Os.

 AD Functions
GPM8F2002 only has 3 AD channels. GPM8F2702 and GPM8F2202 have 6 AD channels.

 UART Function
GPM8F2702 and GPM8F2202 have UART Function. GPM8F2002 has no UART Function.

1.3 Family Overview

Wor CCP CPU OSC.


king Spee RAM Co
ROM ADC TMR/
d itouc mpa IO
Part NO. (Byte (12bi CA CM PW X’TA rato LVR PKG
ROM Volta (Byte t) h Int No.
) P P M CNT L
ge (MHz) ) r
Type (V)
GPM8F2202 1.8~ 1.8/2.7/4. SOP1
EEPROM 4/8/16 2K 128 6 - 4 4 4 3 • • • 14
A 5.5 5 6
GPM8F2002 1.8~ 1.8/2.7/4.
EEPROM 4/8/16 2K 128 3 - 2 2 2 3 • • • 6 SOP8
A 5.5 5
GPM8F2702 1.8~ 1.8/2.7/4. SOP1
EEPROM 4/8/16 2K 128 6 • 4 4 4 3 • • • 14
A 5.5 5 6

 Generalplus Technology Inc. PAGE 6 V1.1 – July 11, 2011


Getting Started with GPM82 Family

2 DEVELOPMENT ENVIRONMENT

2.1 General Description


Generalplus offers lots of documents, software, and hardware for GPM82 development purpose. We will list all
of these useful tools and documents that can help users getting started with GPM82 development easily and
quickly.

Document / Software / Hardware Version Writing Code Debugging Verifying Code Releasing
Document
Data Sheet V - - -
GPM82 Programming Guide V1.0 V V - -

Software
Keil C IDE - V V V V
Keil C Driver V1.1.3 V V V V
MCU Writer Lite V1.0.3 V - - -
G+ All Writer V1.0.11.2 V - - -

Hardware
8051 MCU Probe - V V V -
GPM82 EVB and Writer Board V1.1 - V V -

2.2 Document
2.2.1 Datasheet
Each IC has its corresponding data sheet. Most of them need to be required from Generalplus. The data sheet
mainly introduces IC specification, pin count, DC characteristics, package-type and reference circuit.

2.2.2 GPM82 Family Programming guide


GPM82 Family have programming guide. This is suitable for GPM82 all Family. It can be required from
Generalplus.

2.3 Software
2.3.1 Keil C IDE
Keil C IDE is a popular IDE. It can compile C or ASM code. It can debug with simulator or using GP
MCU Probe Target Driver. The suitable version of G+ Keil C driver is Keil C 2.0 or 3.0. GeneralPlus not
supply Keil C software. Please buy it from Keil.

 Generalplus Technology Inc. PAGE 7 V1.1 – July 11, 2011


Getting Started with GPM82 Family

2.3.2 Keil C Driver


G+ supplies Keil C Driver, This is patch installer. You still need to buy Keil C software. This can be
required from Generalplus.

2.3.3 MCU Writer Lite


G+ supplies writer Lite. This software arranges G+ MCU Probe to do single writer.

 Generalplus Technology Inc. PAGE 8 V1.1 – July 11, 2011


Getting Started with GPM82 Family

2.3.4 G+ All Writer


G+ supplies multi-writer. It can write 8 ICs at the same time. This software arranges G+ All Writer to

download. This can be required from Generalplus.

2.4 Hardware
2.4.1 8051 MCU Probe
8051 MCU Probe is ICE Tool with USB support. It is used to debug and download. This can be
required from Generalplus. When User want to download, please make sure the connection is right.

 Generalplus Technology Inc. PAGE 9 V1.1 – July 11, 2011


Getting Started with GPM82 Family

VDD 1 16 VSS

VF0/P30 2 15 P00/AD0

CF0/P31 3 14 P01/AD1/XTI

RESET/INT0/VPP/VF1/P32 4 13 P02/AD2/XTO
GMP8F2202A
SOP16
INT1/CAPTURE0/P33 5 12 P03/AD3

CAPTURE1/P34 6 11 P04/AD4/CAPTURE2

CF1/P35 7 10 P05/AD5/CAPTURE3

SCK/CF2/VF3/P36 8 9 P37/VF2/SDA

VSS 1 8 VDD

SCK/CF/P31 2 7 P01/AD1/XTI
GMP8F2002A
SOP8 P02/AD2/XTO
RESET/INT0/VPP/VF/P32 3 6

SDA/INT1/CAPTURE0/P33 4 5 P04/AD4/CAPTURE2

VDD 1 16 VSS

VF0/P30 2 15 P00/AD0

CF0/P31 3 14 P01/AD1/XTI

RESET/INT0/VPP/VF1/P32 4 13 P02/AD2/XTO
GMP8F2702A
SOP16
INT1/CAPTURE0/P33 5 12 P03/AD3

CAPTURE1/P34 6 11 P04/AD4/CAPTURE2

CF1/P35 7 10 P05/AD5/CAPTURE3

SCK/CF2/VF3/P36 8 9 P37/VF2/SDA

 Generalplus Technology Inc. PAGE 10 V1.1 – July 11, 2011


Getting Started with GPM82 Family

EX. GPM8F2002A: Pin8 Connects to VDD, Pin3 connects to VPP, Pin4 connects to SDA, Pin1 connects to
GND. Please note, VPP may up to 8V. Please make the other device at VPP can accept 8V when downloading.

2.4.2 GPM82 EVB and Writer Board


Generalplus supply Evaluation and verification board. This board mainly is used to verify and debug.
But is can also be a writer also. Writer mode still needs G+ 8051 MCU Probe. This can be required from

Generalplus.

 Generalplus Technology Inc. PAGE 11 V1.1 – July 11, 2011


Getting Started with GPM82 Family

3 HOW TO USE DEBUG TOOL

3.1 General Description


This chapter describes how to use debug tool. It will include Keil C software and Hardware setting.

3.2 How to use Keil C debugging


Before this topic, Generalplus had supplied User’s Manual if you installed G+ 8051 MCU Driver. Please refer to
[Start] [All programs] [Generalplus] [G+ 8051 ICE Driver] [User’s Manual].

This document has more completely description for ICE Manual.

3.2.1 How to Install Keil C Driver


1. Before install, please remove G+MCU Probe First.

 Generalplus Technology Inc. PAGE 12 V1.1 – July 11, 2011


Getting Started with GPM82 Family

2. If G+ 8051 ICE driver had been installed, please remove it.

3. Double click [G+ 8051 ICE Driver.exe] to install.

 Generalplus Technology Inc. PAGE 13 V1.1 – July 11, 2011


Getting Started with GPM82 Family

4. Click [Next]  [Next] [Next] and select keil C installed path.

5. Click [Next] and wait install [Finish].

3.2.2 Install Hardware connection


1. Connecting EVB and G+ MCU Probe like below. This is GPM82 Family. If user want to download on
board, please refer to 2.4.1. There is the hardware connection introduction.

 Generalplus Technology Inc. PAGE 14 V1.1 – July 11, 2011


Getting Started with GPM82 Family

3.2.3 Create a New Project.


1. Click [Project] and [New Project].

2. Input project name and select [Generalplus INC.].

 Generalplus Technology Inc. PAGE 15 V1.1 – July 11, 2011


Getting Started with GPM82 Family

3. Select a chip no. and keil C will ask you to add Start code to project. Please select[ 是(Y)].

4. Click to complier the code. And click to save this project. And click to enter project
setting.

5. Select [ debug ] tab and select Use [ GP MCU Probe Target Driver]

 Generalplus Technology Inc. PAGE 16 V1.1 – July 11, 2011


Getting Started with GPM82 Family

6. Click [OK] to finish debug setting. And Select [Debug] tab and [Start Debug Session].

7. Use to debug

 Generalplus Technology Inc. PAGE 17 V1.1 – July 11, 2011


Getting Started with GPM82 Family

4 HOW TO USE DOWNLOAD TOOL

4.1 General Description


This Chapter introduces the process about download. Generalplus support 2 kind of software tool to download
for GPM82 Family. MCU Writer Lite and G+ All Writer.

4.2 How to make bin file


Before using download tool, user need to make binary file. Generalplus patch the hex to bin execute file to Keil C.
Please follow below to make it.
1. After your project finish, Click [Settings]

2. You can assign configure byte and get bin file here. After you click [get bin], you can file the bin file
at the output bin path.

 Generalplus Technology Inc. PAGE 18 V1.1 – July 11, 2011


Getting Started with GPM82 Family

3. If you get this error message, please follow the message setting. Create Hex file and Click to
save project.

 Generalplus Technology Inc. PAGE 19 V1.1 – July 11, 2011


Getting Started with GPM82 Family

4.3 How to use MCU Writer Lite


MCU Writer Lite arranges with G+ 8051 MCU Probe for single writer. It can auto finish the process of [Chip

Erase]  [Blank Check]  [Download]  [Verify]. Please follow below process.


1. Before start, please check the hardware connection.

2. Select IC, download file and Upload buffer file path.

3. Click [Download] and check download success or not.

 Generalplus Technology Inc. PAGE 20 V1.1 – July 11, 2011


Getting Started with GPM82 Family

4.4 How to use G+ All Writer


Please refer the G+ All Writer’s User manual.

 Generalplus Technology Inc. PAGE 21 V1.1 – July 11, 2011