EN
Atmel logo
Official user manual

Atmel C51

27 pages·1.3 MB·Computer Hardware·PDF·ENDEFRITNLJA
Atmel C51
Table of Contents 25 sections Introduction · 1.1 Package Content · 1.2 On-line Utilities · 1.3 Support · … ShowHide
Page 1 of the Atmel C51 user manual — C51 Microcontrollers Demo Board
Page 1 · click to enlarge
Page 1

C51 Microcontrollers Demo Board

.............................................................................................. User Guide

Page 2 of the Atmel C51 user manual
Page 2 · click to enlarge
Page 2
Page 2 of the Atmel C51 user manual
Page 4 of the Atmel C51 user manual
Page 4 · click to enlarge
Page 4
Page 4 of the Atmel C51 user manual
Page 5 of the Atmel C51 user manual — 1.1 Package Contents
Page 5 · click to enlarge
Page 5

Section 1

Introduction

The C51/C251 Demo Board allows easy evaluation of most of Atmel C51/C251 devices. The C51/C251 Demo Board can be powered using a simple 9V battery or using a 9V rechargeable battery. The C51/C251 Demo Board can also be used as programming tool for Flash products.

1.1 Package Contents

One PCB C51/C251 Demo Board (with battery connector)

One Serial cable (1.8m length)

Figure 1-1. C51/C251 Demo Board

Atmel C51 — 1.1 Package Contents diagram (page 5)
Fig. 1 · 1.1 Package Contents

1.2 On-line Utilities The following utilies involved in using the C51/C251 Demo Board are available on the Atmel Web site http://www.atmel.com. Search for DEMOBOARD1.

FLIPIn-System Programming (ISP) software for Flash microcontrollers

ISP Demo Board Source and Code to program external Flash memory

Source and Code of demo software

Introduction

Page 6 of the Atmel C51 user manual — 1.3 Support Questions can be sent to: mcu@atmel.com
Page 6 · click to enlarge
Page 6

1.3 Support Questions can be sent to: [email protected]

1.4 Demo Board Features

An LCD Display (2 lines of 16 characters)

An Eight LED Bar Graph

128 KB Flash Memory

Three Different SocketsPLCC44, PLCC68 & DIL24

In-System Programming (ISP) Software to Download HEX Files in Flash Memory

Hardware Capability to Program the Microcontrollers On-Chip Flash Memory

Extension Connectors for Special Features, Applications, New Products, or Demos

Introduction

Page 7 of the Atmel C51 user manual — 2.3 Supported Microcontrollers
Page 7 · click to enlarge
Page 7

Section 2

Hardware Description

2.1 Block Diagram

Figure 2-1. Block Diagram

Atmel C51 — 2.1 Block Diagram diagram (page 7)
Fig. 2 · 2.1 Block Diagram

2.2 Specifications

Atmel C51 — 2.2 Specifications diagram (page 7)
Fig. 3 · 2.2 Specifications
ParameterTypMaxUnit Supply DC voltage912V Supply DC current200mA Consumption at 12 MHz60100mA Consumption at 60 MHz in X2 mode110150mA non-rechargeable battery capacity550mAh Rechargeable battery capacity150mAh

2.3 Supported Microcontrollers

Most Atmel C51 and C251 microcontrollers are supported.

The Demo Board does not support low voltage parts, only 5V parts are supported.

Hardware Description

Page 8 of the Atmel C51 user manual — 2.4 Board Supply Considerations
Page 8 · click to enlarge
Page 8

2.4 Board Supply Considerations

Power connector J1 or battery connector J2 may be used to power the board.

On J2 connector a rechargeable battery or a non-rechargeable battery may be used.

In case of rechargeable battery usage on J2, if J18 is ON the battery is charged when

the board is powered by J1.

Board may be powered by J2 for about 10 hours with one new non-rechargeable

battery. Note: J18 must be Off, when the board is powered by J1 with a non-rechargeable battery connected on J2 (see figure 3).

Figure 2-2. C51/C251 Demo Board powered by J1 with a non-rechargeable battery on J2

Atmel C51 — 2.4 Board Supply Considerations diagram (page 8)
Fig. 4 · 2.4 Board Supply Considerations

J1 Power Supply Connector

9V to 12V DC IN

Figure 2-3. C51/C251 Demo Board powered by J1 with a rechargeable battery on J2

J1 Power Supply Connector

Atmel C51 — 2.4 Board Supply Considerations diagram (page 8)
Fig. 5 · 2.4 Board Supply Considerations

9V to 12V DC IN

battery is being charged In this configuration

Hardware Description · rechargeable · battery

Page 9 of the Atmel C51 user manual —  RS232
Page 9 · click to enlarge
Page 9

Figure 2-4. C51/C251 Demo Board Powered by J2.

J1 Power Supply Connector

NOT USED

ON

9V PP3

2.5 Board Layout On-Off

– Switches ON the power supply.

– Resets the microcontrollers.

INT1#

– Issues an interruption on microcontollers on INT1# pin.

– Configure hardware in Page Mode or Non Page Mode.

– for C251 microcontrollers. For C51 products, the configuration must be set to Non Page Mode.

– Used to connect several C51/C251 Demo Boards together, provides global reset / interrupt for all connected C51/C251 Demo Boards.

– Only one power supply is needed but it may be able to deliver enough current to supply all the C51/C251 Demo Boards.

– There are no rules to connect two boards together anyone of the two DB9 may be used.

RS232

– Used to connect a terminal or through an RS232 serial communication port.

– This serial port can be used for displaying messages or for programming external Flash memory.

Show 8 more labels / short text on this page
Hardware Description · LCD display · battery · (rechargeable or not) · Reset · J8 Connector · Synchro IN · Synchro OUT
Page 10 of the Atmel C51 user manual — 2.6 J11 Switches Table 1. J11 Switches
Page 10 · click to enlarge
Page 10

Figure 2-5. C51/C251 Demo Board

RS232 Cable to Terminal

Atmel C51 — 2.6 J11 Switches diagram (page 10)
Fig. 6 · 2.6 J11 Switches

2.6 J11 Switches Table 1. J11 Switches

7 6 5 4 3 2 1 0

Atmel C51 — 2.6 J11 Switches Table 1. J11 Switches diagram (page 10)
Fig. 7 · 2.6 J11 Switches Table 1. J11 Switches
Bit NumberBit MnemonicDescription 7ISP1In-System Programming (external Flash memory) Set to enable external Flash memory programming Clear to protect external Flash memory from erasure and programming 6ALEAddress Latch Enable Set to see ALE activity Clear to ground ALE 5PSENProgram Store Enable Set to run demos Clear to program T89C51RD2 on-chip Flash memory 4-0UC4:0User Code Free of use as data input for demos.

Hardware Description · (Set=1, Clear=0)

Page 11 of the Atmel C51 user manual — Table 3. J16 Switches
Page 11 · click to enlarge
Page 11

Table 2. J9 Switches

Atmel C51 — Table 2. J9 Switches diagram (page 11)
Fig. 8 · Table 2. J9 Switches
Bit NumberBit MnemonicDescription 1MAP SELECTMap Select Set to select external Flash memory zone from $10000 to $1FFFF Clear to select external Flash memory zone from $00000 to $0FFFF 0EAExternal Address Set to fetch internal code (on chip code). Clear to fetch code from external Flash memory

Table 3. J16 Switches

Atmel C51 — Table 3. J16 Switches diagram (page 11)
Fig. 9 · Table 3. J16 Switches
Bit NumberBit MnemonicDescription 0ISP2In System Programming 2 (external Flash memory) RESERVED MUST BE OFF (set to 1)

Figure 2-6. Switch Configuration

RS232 Cable to PC

Atmel C51 — Table 3. J16 Switches diagram (page 11)
Fig. 10 · Table 3. J16 Switches

Set = 1 Clear = 0

Socket and Quartz Crystal The C51/C251 Demo Board provides three different sockets for microcontrollers, a PLCC44, a PLCC68 and a DIL24.

Each socket has it own quartz crystal X1, X2 and X3.

Only one Atmel microcontroller must be plugged-in at one time, in one of the three sockets.

Crystal may be easily changed on each socket.

Hardware Description

Page 12 of the Atmel C51 user manual — 2.6 J11 Switches
Page 12 · click to enlarge
Page 12
Page 12 of the Atmel C51 user manual — 2.6 J11 Switches
Page 13 of the Atmel C51 user manual — 3.1.1 Switch Configuration
Page 13 · click to enlarge
Page 13

Section 3

Operation Mode

3.1 Flash Products

3.1.1 Switch Configuration

To program the on-chip Flash memory, hardware configuration of the chip should be the following: PSEN = 0, EA = 1 and ALE = 1 or not connected.

On C51/C251 Demo Board, switches must be as shown on Figure 3-2.

Figure 3-1. C51/C251 Demo Board Switches Configuration to use ISP

RS232 Cable to PC

Atmel C51 — 3.1.1 Switch Configuration diagram (page 13)
Fig. 11 · 3.1.1 Switch Configuration

3.1.2 Running ISP The C51/C251 Demo Board must be connected to a PC com port via the RS232 cable connected to the RS232 connector of C51/C251 Demo Board.

After downloading, you can run code by switching PSEN on J11 to 1 and pressing the RESET push button.

Operation Mode · Position don’t care · Position needed

Page 14 of the Atmel C51 user manual — 3.2.2 Terminal Configuration
Page 14 · click to enlarge
Page 14

3.2 ISP External Flash Memory Mode

External Flash memory might be programmed using Windows hyper terminal or any ter- minal able to send HEX files in text mode.

3.2.1 Hardware Configuration

The C51/C251 Demo Board must be connected to the PC com port with the cable con- nected to the RS232 connector J10.

The switch must be set as shown on Figure 3-2.

PLCC44 socket and X1 Quartz crystal will be used to program external Flash memory. X1 must be 11.0592 Mhz and Atmel microcontroller must be plugged into PLCC44 socket.

Figure 3-2. C51/C251 Demo Board Switches Configuration to Program External Flash Memory.

RS232 Cable to PC

Atmel C51 — 3.2.1 Hardware Configuration diagram (page 14)
Fig. 12 · 3.2.1 Hardware Configuration

3.2.2 Terminal Configuration

Use the following configuration for the terminal.

Atmel C51 — 3.2.2 Terminal Configuration diagram (page 14)
Fig. 13 · 3.2.2 Terminal Configuration

3.2.3 ISP Operation 1. Connect C51/C251 Demo Board to the PC com port with the cable.

2. Run Windows hyper terminal and configure it with the parameter specified in Figure 3-3.

Operation Mode · Position don’t care · Position needed

Page 15 of the Atmel C51 user manual — 3.2 ISP External Flash Memory Mode
Page 15 · click to enlarge
Page 15

Figure 3-3. Com Port Configuration

Atmel C51 — 3.2 ISP External Flash Memory Mode diagram (page 15)
Fig. 14 · 3.2 ISP External Flash Memory Mode

Figure 3-4. Terminal Window on Running ISP

Atmel C51 — 3.2 ISP External Flash Memory Mode diagram (page 15)
Fig. 15 · 3.2 ISP External Flash Memory Mode

Turn on the C51/C251 Demo Board and then follow the instructions on the terminal screen and LCD display. After erasing Flash, the program asks for the memory zone, and then asks to send the HEX file in text mode (see Figure 3-4, Figure 3-5 & Figure 3- 6).

Operation Mode

Page 16 of the Atmel C51 user manual — 3.2 ISP External Flash Memory Mode
Page 16 · click to enlarge
Page 16

Figure 3-5. Send HEX File in Text Mode

Atmel C51 — 3.2 ISP External Flash Memory Mode diagram (page 16)
Fig. 16 · 3.2 ISP External Flash Memory Mode

Figure 3-6. Use *.* in the Selection Zone to See HEX files in the Directory

Atmel C51 — 3.2 ISP External Flash Memory Mode diagram (page 16)
Fig. 17 · 3.2 ISP External Flash Memory Mode

Operation Mode

Page 17 of the Atmel C51 user manual — 3.3 Demo Mode
Page 17 · click to enlarge
Page 17

After the download of the HEX file, the program asks if you want to download another HEX file in the second zone of the external Flash memory.

In this case you’ll have to switch MAP SELECT (to access second zone) and send another HEX file in text mode.

All the external flash memory (128K bytes) is erased when ISP is used, even if you only want to download one zone.

If you have one external Flash memory zone programmed, and later you want to add another program to the second memory zone, you will have to download both programs at the same time. Note: The data transfer is seen on bar graph.

3.3 Demo Mode In demo mode, programs stored into external flash memory are executed to demon- strate capability of Atmel Microcontrollers. To run external code we must have EA=0.

In this mode the first four bits of J11 (UC3:0) are used to select demo program and UC4 is used to select display (LCD or RS232).

Figure 3-7. Switch Utilities in Demo Mode

Atmel C51 — 3.3 Demo Mode diagram (page 17)
Fig. 18 · 3.3 Demo Mode

Used to select demo program

Used to select display

Used to select memory zone

3.3.1 C51 Mode In C51 mode (Non Page Mode) switch J8 must be as shown in Figure 3-8.

Operation Mode

Page 18 of the Atmel C51 user manual — 3.3.2 C251 Mode
Page 18 · click to enlarge
Page 18

Figure 3-8. C51 Mode (Non Page Mode)

Atmel C51 — 3.3.2 C251 Mode diagram (page 18)
Fig. 19 · 3.3.2 C251 Mode

3.3.2 C251 Mode In C251 mode, the microcontroller can be used in Page Mode or Non Page Mode.

For Non Page Mode switch J8 must be in the same configuration as in C51 mode.

For Page Mode switch J8 must be as shown in Figure 3-9.

Figure 3-9. C251 Mode (Page Mode)

Atmel C51 — 3.3.2 C251 Mode diagram (page 18)
Fig. 20 · 3.3.2 C251 Mode

Operation Mode

Page 19 of the Atmel C51 user manual — Section 4
Page 19 · click to enlarge
Page 19

Section 4

Atmel C51 — Section 4 diagram (page 19)
Fig. 21 · Section 4

J18 jumper Battery Picot Pile 1 2 pins, step of 2,54mm

Bill of Material

Page 20 of the Atmel C51 user manual — Bill of Material
Page 20 · click to enlarge
Page 20
Page 20 of the Atmel C51 user manual — Bill of Material
Page 21 of the Atmel C51 user manual — Section 5
Page 21 · click to enlarge
Page 21

Section 5

Schematics

Atmel C51 — Section 5 diagram (page 21)
Fig. 22 · Section 5

C51 Demo Board User Guide 5-18

Rev. 4119C–8051–3/03

Page 22 of the Atmel C51 user manual — Schematics
Page 22 · click to enlarge
Page 22
Atmel C51 — Schematics diagram (page 22)
Fig. 23 · Schematics

5-19 C51 Demo Board User Guide

Schematics

Page 23 of the Atmel C51 user manual — Schematics
Page 23 · click to enlarge
Page 23
Atmel C51 — Schematics diagram (page 23)
Fig. 24 · Schematics

C51 Demo Board User Guide 5-20

Schematics

Page 24 of the Atmel C51 user manual — Schematics
Page 24 · click to enlarge
Page 24
Atmel C51 — Schematics diagram (page 24)
Fig. 25 · Schematics

5-21 C51 Demo Board User Guide

Schematics

Page 25 of the Atmel C51 user manual — Schematics
Page 25 · click to enlarge
Page 25
Atmel C51 — Schematics diagram (page 25)
Fig. 26 · Schematics

C51 Demo Board User Guide 5-22

Schematics

Page 26 of the Atmel C51 user manual — Schematics
Page 26 · click to enlarge
Page 26
Atmel C51 — Schematics diagram (page 26)
Fig. 27 · Schematics

5-23 C51 Demo Board User Guide

Schematics

Page 27 of the Atmel C51 user manual — Japan
Page 27 · click to enlarge
Page 27

Atmel Headquarters Atmel Operations

Corporate Headquarters

Memory

RF/Automotive

2325 Orchard Parkway San Jose, CA 95131 TEL 1(408) 441-0311 FAX 1(408) 487-2600

Atmel Corporate 2325 Orchard Parkway San Jose, CA 95131 TEL 1(408) 436-4270 FAX 1(408) 436-4314

Atmel Heilbronn Theresienstrasse 2 Postfach 3535 74025 Heilbronn, Germany TEL (49) 71-31-67-0 FAX (49) 71-31-67-2340

Europe

Atmel SarL Route des Arsenaux 41 Casa Postale 80 CH-1705 Fribourg Switzerland TEL (41) 26-426-5555 FAX (41) 26-426-5500

Microcontrollers

Atmel Corporate 2325 Orchard Parkway San Jose, CA 95131 TEL 1(408) 436-4270 FAX 1(408) 436-4314

Atmel Colorado Springs 1150 East Cheyenne Mtn. Blvd. Colorado Springs, CO 80906 TEL 1(719) 576-3300 FAX 1(719) 540-1759

Atmel Nantes La Chantrerie BP 70602 44306 Nantes Cedex 3, France TEL (33) 2-40-18-18-18 FAX (33) 2-40-18-19-60

Biometrics/Imaging/Hi-Rel MPU/ High Speed Converters/RF Datacom

Asia

Atmel Asia, Ltd. Room 1219 Chinachem Golden Plaza 77 Mody Road Tsimhatsui East Kowloon Hong Kong TEL (852) 2721-9778 FAX (852) 2722-1369

Atmel Grenoble Avenue de Rochepleine BP 123 38521 Saint-Egreve Cedex, France TEL (33) 4-76-58-30-00 FAX (33) 4-76-58-34-80

ASIC/ASSP/Smart Cards

Atmel Rousset Zone Industrielle 13106 Rousset Cedex, France TEL (33) 4-42-53-60-00 FAX (33) 4-42-53-60-01

Japan

Atmel Japan K.K. 9F, Tonetsu Shinkawa Bldg. 1-24-8 Shinkawa Chuo-ku, Tokyo 104-0033 Japan TEL (81) 3-3523-3551 FAX (81) 3-3523-7581

Atmel Colorado Springs 1150 East Cheyenne Mtn. Blvd. Colorado Springs, CO 80906 TEL 1(719) 576-3300 FAX 1(719) 540-1759

Atmel Smart Card ICs Scottish Enterprise Technology Park Maxwell Building East Kilbride G75 0QR, Scotland TEL (44) 1355-803-000 FAX (44) 1355-242-743

e-mail literature@atmel.com

Web Site http://www.atmel.com

© Atmel Corporation 2003. Atmel Corporation makes no warranty for the use of its products, other than those expressly contained in the Company’s standard warranty which is detailed in Atmel’s Terms and Conditions located on the Company’s web site. The Company assumes no responsibility for any errors which may appear in this document, reserves the right to change devices or specifications detailed herein at any time without notice, and does not make any commitment to update the information contained herein. No licenses to patents or other intellectual property of Atmel are granted by the Company in connection with the sale of Atmel products, expressly or by implication. Atmel’s products are not authorized for use as critical components in life support devices or systems.

Atmel® is a registered trademark of Atmel.

Other terms and product names may be the trademarks of others.

Printed on recycled paper.

4119C–8051–3/03 /xM

Ask about the Atmel C51

Owners and our team usually reply within a day — and your question helps the next person too.

Add your email to get notified when it’s answered — no spam, ever.

0 questions
No questions yet about the Atmel C51

Be the first to ask — other owners or our team will answer.

Original document

Atmel C51 manual PDF

27 pages·1.3 MB·Computer Hardware·PDF
Click any page above to open it here
Page 1 / …
100%
Loading pages…