+ All Categories
Home > Documents > Combined Serial and Parallel Programming Systems for … · Combined Serial and Parallel...

Combined Serial and Parallel Programming Systems for … · Combined Serial and Parallel...

Date post: 03-Apr-2018
Category:
Upload: phamkhuong
View: 253 times
Download: 5 times
Share this document with a friend
19
Combined Serial and Parallel Programming Systems for Atmel 8051 Microcontrollers EQ-8051-ST1 GETTING STARTED (Preliminary Manual)
Transcript
Page 1: Combined Serial and Parallel Programming Systems for … · Combined Serial and Parallel Programming Systems for Atmel 8051 Microcontrollers EQ-8051-ST1 GETTING STARTED (Preliminary

Combined Serial and ParallelProgramming Systems for

Atmel 8051 MicrocontrollersEQ-8051-ST1

GETTINGSTARTED

(Preliminary Manual)

Page 2: Combined Serial and Parallel Programming Systems for … · Combined Serial and Parallel Programming Systems for Atmel 8051 Microcontrollers EQ-8051-ST1 GETTING STARTED (Preliminary

8051 FLASH Professional Starter System Starter Manual V1.00

i

Copyright Information

© 1998 Copyright Equinox Technologies UK Limited. All rights reserved.

AtmelTM and AVRTM are trademarks of the Atmel CorporationMicrosoft, MS-DOS, WindowsTM and Windows 95TM Windows NT™ are registeredtrademarks of the Microsoft Corporation

All other trademarks are acknowledged.

or copied only in accordance with the terms ofthe agreement.

It is against the law to copy the software on anymedium except as specifically allowed in thelicense or non-disclosure agreement.

The purchaser may make one copy of thesoftware for backup purposes. No part of thismanual may be reproduced or transmitted in anyform or by any means, electronic, mechanical,including photocopying, recording, orinformation retrieval systems, for any purposeother than for the purchaser’s personal use,without written permission.

Equinox guarantees that its products will befree from defects of material andworkmanship under normal use and service,and these products will perform to currentspecifications in accordance with, and subjectto, the Company’s standard warranty which isdetailed in Equinox’s Purchase OrderAcknowledgment.

Equinox reserves the right to changespecifications detailed in this documentwithout notice and does not represent acommitment on the part of the manufacturer.The software described in this document isfurnished under license agreement ornon-disclosure agreement and may be used

Page 3: Combined Serial and Parallel Programming Systems for … · Combined Serial and Parallel Programming Systems for Atmel 8051 Microcontrollers EQ-8051-ST1 GETTING STARTED (Preliminary

In line with our policy of continuous improvement, the software contained within thispackage is updated on a regular basis. If you would like to receive an automatic e-mail everytime a new version is released, please make sure you have registered your system withEquinox and you have quoted your e-mail address. You may cancel this service at any time.

Software updates can currently be downloaded from the following places:

Internet : www.equinox-tech.com

ftp site : ftp.equinox-tech.com

Atmel BBS : +1 408 436-4309

Contacts

Equinox Technologies UK Limited3 Atlas House, St Georges Square, Bolton, England BL1 2HB

Telephone Sales ....................... : +44 (0) 1204 529000

Fax .............................................. : +44 (0) 1204 535555

E-mail ......................................... : [email protected]

Web site .................................... : www.equinox-tech.com

For technical support on this product please e-mail us at:[email protected]

ii

8051 FLASH Professional Starter System Starter Manual V1.00

Software Updates

Page 4: Combined Serial and Parallel Programming Systems for … · Combined Serial and Parallel Programming Systems for Atmel 8051 Microcontrollers EQ-8051-ST1 GETTING STARTED (Preliminary

8051 FLASH Professional Starter System Starter Manual V1.00

iii

About Atmel Microcontrollers

Data sheets for these devices can be viewed and printed using the Actobat pdf readersoftware supplied on the Atmel CD-ROM. As data sheets are often updated on a regularbasis, it is recommended that you consult the Atmel web site for the latest information.

A few sources of further information about Atmel AVR microcontrollers are listed below:

Atmel web site : www.atmel.com

Equinox web site : www.equinox-tech.com

If you have any silicon related technical support question about AVR microcontrollers whichcan not be answered by looking at the Atmel/Equinox web sites, please e-mail:[email protected] with a detailed description of the problem.

Important - Please noteEquinox Technologies are unable to answer direct technical support questions concerningAVR microcontrollers. Please contact your local Atmel distributor or sales office if you requireany further information.

Page 5: Combined Serial and Parallel Programming Systems for … · Combined Serial and Parallel Programming Systems for Atmel 8051 Microcontrollers EQ-8051-ST1 GETTING STARTED (Preliminary

iv

8051 FLASH Professional Starter System Starter Manual V1.00

Contents

INTRODUCTION.....1

SYSTEM SPECIFICATIONS.....2

SYSTEM INSTALLATION OVERVIEW.....3

DEVICE SUPPORT.....5

ACTIV8R HARDWARE OVERVIEW.....6

EVALU8R HARDWARE OVERVIEW.....7

PK51 OVERVIEW.....8

IDE OVERVIEW.....9

PK51 SYSTEM COMPONENTS...13

Page 6: Combined Serial and Parallel Programming Systems for … · Combined Serial and Parallel Programming Systems for Atmel 8051 Microcontrollers EQ-8051-ST1 GETTING STARTED (Preliminary

8051 FLASH Professional Starter System Starter Manual V1.00

1

Introduction

• Supports programming of the Atmel 8051 microcontroller 20-pin devices inthe ZIF socket.

• Supports in-system programming ofAtmel 89S microcontrollers in theevaluation module.

• Evaluation Module suppplied providesLED’s, switches, serial communicationsetc.

• Integrated Development Environmentincluding Editor, C compiler, linker,Macro Assembler, software simulatorand HEX creator.

• Compatible with Windows 3.11,Windows 95 and Windows NT.

SYSTEM HIGHLIGHTS

The “AtmelFlash 8051ProfessionalStarter System”has beendesigned as alow-cost yetcomprehensivesuite of

development tools for the Atmel 8051microcontroller family. The systemincludes a device programmer,evaluation module, compiler, assemblerand debugger plus a sample AT89S8252microcontroller.

The ‘Activ8r’ programmer supplied with thesystem is capable of ‘fast parallel’programming of the Atmel 20-pin 8051microcontroller devices from Atmel in theZIF socket. The programmer is also capableof in-system programming Atmel 89Sdevices (in the user’s target board) bymeans of 10-way ribbon cable supplied.

The evaluation module supplied with thesystem, Evalu8r, supports 20 and 40 pin8051 microcontrollers plus serial EEPROM’s.On board features include: LED’s, Switches,Sounder, RS-232 communications and anin-system programming port.

The Keil C compiler allows you to writeprograms in C and still get the efficiencyand speed of assembly language. Thepackage includes a powerful IntegratedDevelopment Environment (IDE) whichencompasses a full 8051 ProjectManagement System. The Project Managerintegrates an editor, C compiler, assembler,software simulator and target debuggerinto one easy-to-use Windowsenvironment. It is possible to generate upto 2K bytes of program code with thiscompiler version. An upgrade to the 8Kversion is also available from Equinox.

Page 7: Combined Serial and Parallel Programming Systems for … · Combined Serial and Parallel Programming Systems for Atmel 8051 Microcontrollers EQ-8051-ST1 GETTING STARTED (Preliminary

2

8051 FLASH Professional Starter System Starter Manual V1.00

System Specifications

Minimum System Contents

• Combined Serial & Parallel Device

Programmer

• Microcontroller Evaluation Module

• Keil PK51-2K Software

• One AT89S8252 DIL microcontroller

• Atmel Databook on CD ROM

• Power Supply Unit (PSU)

• ISP Ribbon Cable (to target)

• 9-way Serial Cable (to host PC)

Minimum PC Requirements

The minimum hardware and software requirements toensure that the programmer operates correctly are asfollows:

100% IBM compatible 386+

Windows 3.1 or higher *Minimum 4MB RAM

Minimum 1MB free hard disk space

Spare PC serial port

Activ8r ProgrammerSpecifications

Programmer Size ...........: 10.5 x 8 x 2 cm

Shipped Weight .............: approx 1.5kg

PSU .................................: 15V DC @250mA

Port connection .............: Serial 9-way D-socket

ZIF socket .......................: Quality 40way socket

Accepts both 0.3/0.6” pitch

devices

ISP Target Voltage .........: +5V DC

ISP Header ......................: 10-way IDC

Evalu8r SpecificationPower Input ...........: a.+9 volts DC nominal (+25 volts Max)................................. b.+9v DC unregulated, or +5v DC................................. regulated.

Power Connectors .: a.Standard 2.5mm ROKA type-centre................................. positive. Accepts Equinox Power................................. Supply................................. b. Screw Terminals to accept external................................. bench PSU.................................. Pin 1 +5v................................. Pin 2 +9v................................. Pin 3 0v.

Serial Port ..............: 3-wire asynchronous Communications................................. interface, TxD, RxD, GND (RS-232................................. compatible).

Serial Connector ....: 9 way female D-type connector, PC................................. compatible via. 1:1 cable................................. Pin 2 - TxD Output from Evalu8r................................. Pin 3 - RxD Input to Evalu8r................................. Pin 5 - GND Signal Ground connection

A/D Converter .......: Simple current source and comparator................................. technique................................. GND Signal Ground................................. REF Voltage ramp from 65uA into................................. 100nF approx.................................. AIN Input to Evalu8r. Max range 0v to................................. +5v (clamped)................................. Noise filter built-in 10K/100nF................................. approx.

Status Indication ...: Power-ON & PROG LED’s.

Sounder..................: PIEZO type

Device profiles.......: 8, 20 and 40-pin devices are supported.................................. There is room to fit a 40-pin ZIF socket................................. if required.

ISP Compatibility ...: Equinox standard 10 -way Header

Other I/O................: 5 switches and 8 LED’s on 20/40 pin................................. microcontroller port pins.

Page 8: Combined Serial and Parallel Programming Systems for … · Combined Serial and Parallel Programming Systems for Atmel 8051 Microcontrollers EQ-8051-ST1 GETTING STARTED (Preliminary

8051 FLASH Professional Starter System Starter Manual V1.00

3

System Installation Overview

Hardware Components• Activ8r Device Programmer

• Evalu8r Evaluation Module

• One AT89S8252 DIL microcontroller

• Power Supply Unit (PSU)

• ISP Ribbon Cable (to target)

• 9-way Serial Cable (to host PC)

Hardware Installation1 Place the Activ8r programmer and Evalu8r

evaluation module side by side on a flatsurface, refer to figure 1.

2 Connect the 9-way serial cable between theActiv8r 9-way D connector and a spare PCCOM port (9-way). If you only have 25-wayon your connector then you will need a 25 to9-way adaptor with all 9 connections made.

3 Connect 10-way ISP cable between the Activ8r and Evalu8r.

4 Check external power jumper settings. Theseshould be set to 1-2 and 3-4 as per Activ8rHardware Overview diagram on page 6.

5 Plug power supply jack into power input ofActiv8r and switch on the mains supply.The ‘Power’ LED’s on both the Activ8r andEvalu8r should illuminate.

Software ComponentsThis system is supplied with four 3.5”floppy discscontaining various software utilities:

Disk 1:• Meridian for Windows - Programmer

Interface Software

Disks 2 & 3:• Keil PK51-2K

Disk 4:• C51 examples disk

Software InstallationMeridian software1 Insert Disk 12 Log onto the disk —> Meridian

setup icon should be displayed.3 Launch the Meridian.exe install program and

follow all on-screen instructions.‘Meridian for Windows’ has now beeninstalled.

Keil software

1 Insert “Keil PK51 Disk 1/2”

2 From the ‘Start’ menu, select ‘Run..’

3 Type ‘a:\setup.exe’ or browse to the requireddrive and select ‘setup.exe’

4 The Keil installation program should nowcommence.

5 Follow the on-screen intructions.

6 Insert “Keil PK51 Disk 1/2” when prompted.

7 At the end of the installation, the softwarewill ask you to close down Windows andrestart you PC. This stage must be carried outto guarantee that all system files are updatedcorrectly.

Software installation is now complete.Please see Keil PK51 Overview Manual forfurther information

The Atmel Flash 8051 Professional Starter System is made up of both hardware and softwarecomponents.

Page 9: Combined Serial and Parallel Programming Systems for … · Combined Serial and Parallel Programming Systems for Atmel 8051 Microcontrollers EQ-8051-ST1 GETTING STARTED (Preliminary

4

8051 FLASH Professional Starter System Starter Manual V1.00

OFF

ON

PC

Activ8r

Evalu8r

PowerSupplyUnit (PSU)

ISP Cable

AT89S8252 fitted

PC COM Port (2)

PC COMPort (1)

Check JumperConfiguration

POWERSUPPLY

UNIT

System Installation Overview Continued

2nd Serial CableNOT SUPPLIEDas standard

Figure 1

Page 10: Combined Serial and Parallel Programming Systems for … · Combined Serial and Parallel Programming Systems for Atmel 8051 Microcontrollers EQ-8051-ST1 GETTING STARTED (Preliminary

8051 FLASH Professional Starter System Starter Manual V1.00

5

Device Support

It is possible to program Atmel 8051 microcontroller devices using two different methods:

ZIF socket - Parallel Programming Mode

The following devices can be programmed in the Activ8r ZIF socket. These devices can onlybe programmed in parallel programming mode.

AT89C1051

AT89C1051U

AT89C2051

AT89C4051

In-system Programming (ISP) - Serial Programming Mode

The following devices can only be programmed within the user target system using the ISPcable. These devices can only be programmed in serial programming mode with the Activ8rprogrammer. The parallel programming mode of these devices is NOT supported.

AT89S8252

AT89S53

AT89LS8252

AT89LS53

Please note:In-system programming of the 89LS devices is only supported with a target voltage of +5V.

Page 11: Combined Serial and Parallel Programming Systems for … · Combined Serial and Parallel Programming Systems for Atmel 8051 Microcontrollers EQ-8051-ST1 GETTING STARTED (Preliminary

6

8051 FLASH Professional Starter System Starter Manual V1.00

Activ8r Hardware Overview

Key

1 PSU input2 Active LED (Yellow)3 Power LED (Red)4 ISP Connector (10-way IDC Header Socket)5 Serial Cable Connection to PC6 Controller Chip7 Power Configuration Jumpers8 ZIF (Zero Insertion Force) socket (40-way)

1

65 7 8

2 3 4

TGT

Fit jumper here topower Activ8rfrom target’s Vcc

EXT

Fit jumper here topower Activ8rfrom Equinox PSU

Page 12: Combined Serial and Parallel Programming Systems for … · Combined Serial and Parallel Programming Systems for Atmel 8051 Microcontrollers EQ-8051-ST1 GETTING STARTED (Preliminary

8051 FLASH Professional Starter System Starter Manual V1.00

7

1 2 3 4 6 3 7 8

10

9

23

22

21

20 19 18 13 12 1116 1517

5

14

13 Port 214 40-pin Microcontroller Socket15 ISP Programming Socket16 LED’s x 817 U2 Configuration (CON10)18 Port 019 Jumpers No: 1 & 220 Serial Communications (RS-232)

Connector21 Piezo Sounder22 A/D Inputs23 Jumpers 3 & 4

KEY:

1 Push Button Switches2 Crystal3 Configuration Jumpers for U44 Reset Switch5 20-pin Microcontroller Socket6 8-pin Microcontroller Socket7 Configuration Jumper for Piezo

Sounder8 Power LED9 Program LED10 Power Supply Screw Terminals11 Power Supply Input +9/+26v DC Unreg12 Jumpers No: 13 & 14

Evalu8r Hardware Overview

Page 13: Combined Serial and Parallel Programming Systems for … · Combined Serial and Parallel Programming Systems for Atmel 8051 Microcontrollers EQ-8051-ST1 GETTING STARTED (Preliminary

8

8051 FLASH Professional Starter System Starter Manual V1.00

PK51 Overview Continued

µVision/51

C51Compiler

RTX51Real-Time

Operating System

A51 MacroAssembler

LB51Library

Manager

CLibrary

BL51 Linker for Code-Banking

dScope-51Source Level - Debugger

CPU &Peripheral Simulator

Monitor-51Target Debugging

Emulator &Prom Programmer

PK51 Tool KitOverview

Please Note:Some packages may not contain all of the abovecomponents see fig. 3 on page 9.

Page 14: Combined Serial and Parallel Programming Systems for … · Combined Serial and Parallel Programming Systems for Atmel 8051 Microcontrollers EQ-8051-ST1 GETTING STARTED (Preliminary

8051 FLASH Professional Starter System Starter Manual V1.00

9

IDE Overview

µVision - Integrated C51 Project Management Environment

• Powerful integrated editor environment• Support for multiple source files within a project• Powerful MAKE utility - compiles only changed source files• Supports external tools including Micro-Pro 51 device programmer• Colour-coded syntax highlighting• Interactive source code error correction• Project-wide setup menus for tool options

dScope-51 - Software Simulator & Debugger

“ The unparalleled 8051 Debugger”

• Ideal tool to verify correct operation of user code• Supports PC simulation of the complete 8051 CPU core• Provides source level debugging of user C51 programs• User program symbolic information is available during simulation• Supports 'watching' of user variables• Allows single-stepping of C-source code in high-level and/or assembly language• Provides extensive break-point facilities• Full support for I/O ports, timers & interrupts• Support for serial UART simulation via 'serial window'• Performance analyser allows user code to be optimised• Supports external 'signal' functions to test user program execution

Page 15: Combined Serial and Parallel Programming Systems for … · Combined Serial and Parallel Programming Systems for Atmel 8051 Microcontrollers EQ-8051-ST1 GETTING STARTED (Preliminary

10

8051 FLASH Professional Starter System Starter Manual V1.00

IDE Overview Continued

C51 - Optimising Ansi-C compiler for the 8051 family

“The unsurpassed Industry Standard C Compiler”

• Generates optimised 8051 - specific code• Flexible variable allocation with bit, data, bdata, idata, xdata and pdata• Supports data types including bit, (signed/unsigned) char, int & long• Comprehensive mathematical libraries• Supports both memory specific and generic pointers• Supports parameter passing including BIT variables• Supports re-entrant functions (same function can be called from both the main and

interrupt service routine)• Interrupt and re-entrant functions can be directly coded in C51• Direct support for SFR's and single BIT variables by name• Comprehensive symbol and debug information available for use by dScope, EPROM

Emulators etc.

A51 Macro Assembler

The A51 assembler is a macro assembler for the 8051 microcontroller family. It translatessymbolic assembly language mnemonics into relocatable object code where the utmostspeed, small code size, and hardware control are critical. The macro facility speedsdevelopment and conserves maintenance time since common sequences need only bedeveloped once. The A51 assembler supports symbolic access to all features of the 8051architecture and is configurable for the numerous 8051 derivatives.

BL51 Linker/Locator

• Combines one or more modules into one executable 8051 program• Overlaying of local data variables greatly reduces the overall RAM requirements of many

user programs• Supports up to 64k of XDATA for storing external variables in RAM• Code limit depends on package purchased

Page 16: Combined Serial and Parallel Programming Systems for … · Combined Serial and Parallel Programming Systems for Atmel 8051 Microcontrollers EQ-8051-ST1 GETTING STARTED (Preliminary

8051 FLASH Professional Starter System Starter Manual V1.00

11

IDE Overview Continued

Project Based Development

Back in the old days of DOS development tools, it was necessary to run separate command line drivenprograms to compile, link and then produce a hex file. This was not only time consuming, but couldalso lead to a lot of compilation and linking errors due to typing errors.

The Keil µVision Integrated Development Environment (IDE) takes care of all file management for you,so all you have to worry about is actually writing code that works! The table below show the differentfile contained within a typical Keil C51 project.

Files contained within a typical µVision project

Extension Example Description

.prj example.prj Project File: Contains names of all source files associated with the project and includesinformation for compiling, assembling & linking to generate an executable target program.

.c cfile1.c C Source File: This file is an ASCII text file containg a program written in C51. It is possible to cfilen.c have as many source files as are required. Eg. 1 to n

.a51 a51file1.a51 Assembler Source File: This file is an ASCII text file containg a program wriiten in A51. It isa51filen.a51 possible to have as many source files as are required. Eg. 1 to n

.h Reg51.h Include (header) File: This type of file can be used to declare microcontroller-specific register Evalu8r.h information or as a convenient way of including variable declarations.

.obj cfile1.obj Object File: When a C or assembler source file is ‘compiled’, the compiler translates the source intocfilen.obj an object file.a51file1.obja51filen.obj

.lst example.prj List File: A LIST file is created by the compiler when the project or a module within the project iscompiled. The file is an ASCII log file of the compilation process and details any errors found.

- example OMF51 - Absolute Object File: This file has no file extension. This file conains the actual executablecode after a project build. It also contains any symbolic information if the ‘debug’ options are enable withinµVision.

.m51 example.m51 Map File: A MAP file is created by the compiler when the project or a module within the project iscompiled.

.hex example.hex Intel Hex File: This is a standard output format which can be downloaded to many emulators or deviceprogrammers. The actual executable 8051 code is contained in an encoded format within this file.

.ini example.ini D-Scope Initialisation File: This file contains a script which dScope executes when launching a project.

Figure 1

Page 17: Combined Serial and Parallel Programming Systems for … · Combined Serial and Parallel Programming Systems for Atmel 8051 Microcontrollers EQ-8051-ST1 GETTING STARTED (Preliminary

12

8051 FLASH Professional Starter System Starter Manual V1.00

IDE Overview Continued

cfile1.cregister.h cfilen.c

cfile1.objcfile1.obj

cfilen.obj cfilen.lst

a51filen.lsta51filen.obj

a51file1.obj a51file1.lst

a51file1.a51register.inc a51filen.a51

example.m51

example

example.hex

Page 18: Combined Serial and Parallel Programming Systems for … · Combined Serial and Parallel Programming Systems for Atmel 8051 Microcontrollers EQ-8051-ST1 GETTING STARTED (Preliminary

8051 FLASH Professional Starter System Starter Manual V1.00

13

PK51 System Components

EK51 PK51-2K PK51-8K PK51-FULL

SOFTWARE UTILITIESCode size (C51+A51) 2K 2K 8K Unrestricted

External Only Internal/External Internal/External Internal/ExternalC-compiler (C51) Y Y Y YAssembler (A51) Y Y Y YµVision Integrated Development Environment Y Y Y YLinker (BL51) Y Y Y YIntel Hex output Y Y Y YSimulator & debugger (dScope) Y Y Y YRTX-TINY (Real Time Operating System) N N N Y

LIBRARIES INCLUDEDSmall - Y Y YCompact - Y Y YLarge Y Y Y YFloating point N N Y Y

DEVICE SUPPORTGeneric 8051, 8052 Y Y Y YAtmel 89S N Y Y YDallas 80C320, 520 and 530 Y Y Y YPhilips 8xC750, 751 and 752 N Y Y YSiemens 80C517 Y Y Y Y

DEVICE SPECIFIC SUPPORTDual Data Pointer Support N NIn-line assembler Support N N N YMax. Source Files 5 Unrestricted Unrestricted UnrestrictedAJMP/ACALL N Y Y Y

DOCUMENTATION8051/251 Evaluation Manual N Y Y YC51 Reference Manual N N Y YA51 Reference Manual N N Y YdScope Reference Manual N N N Y8051 Utilities Manual N N Y Y

MISCELLANEOUSWindows 3.1 or above Y Y Y YDOS (command line) N N N YSecurity Dongle required N N N Y

Dallas320

Atmel89S

Dallas320

Atmel89S

Figure 3

Page 19: Combined Serial and Parallel Programming Systems for … · Combined Serial and Parallel Programming Systems for Atmel 8051 Microcontrollers EQ-8051-ST1 GETTING STARTED (Preliminary

Equinox Technologies UK Limited reserves the right to change any information contained withinthis manual without prior notice. E&OE

Terms and product names contained in this document may be trademarks of others.


Recommended