Keil MCB251 Manual de usuario

MCS®251 Microcontroller Target Board
for Intel 251SB, Temic 251G1/A1,
and Intel 151 and 8051 Derivatives
User’s Guide 07.97

ii Keil Software
Information in this document is subject to change without notice and does not
represent a commitment on the part of the manufacturer. The software described
in this document is furnished under license agreement or nondisclosure
agreement and may be used or copied only in accordance with the terms of the
agreement. It is against the law to copy the software on any medium except as
specifically allowed in the license or nondisclosure agreement. The purchaser
may make one copy of the software for backup purposes. No part of this manual
may be reproduced or transmitted in any form or by any means, electronic or
mechanical, including photocopying, recording, or information storage and
retrieval systems, for any purpose other than for the purchaser’s personal use,
without written permission.
Copyright © 1995-1997 Keil Elektronik GmbH and Keil Software, Inc.
All rights reserved.
Keil C51™ and dScope™ are trademarks of Keil Elektronik GmbH.
Microsoft®, MS-DOS®, and Windows™ are trademarks or registered trademarks
of Microsoft Corporation.
IBM®, PC®, and PS/2®are registered trademarks of International Business
Machines Corporation.
Intel®, MCS®51, MCS®251, ASM-51®, and PL/M-51®are registered
trademarks of Intel Corporation.
Every effort was made to ensure accuracy in this manual and to give appropriate
credit to persons, companies, and trademarks referenced herein.

MCB251 Evaluation Board User’s Guide iii
Preface
This manual describes the Keil Software MCB251 Evaluation Board and the
MCS® 251 microcontroller software development tools. The following chapters
are included:
“Chapter 1. Introduction” gives an overview of this user’s guide and provides a
quick start table.
“Chapter 2. Setup” describes how to connect and configure the board and
provides detailed information about the DIP switches and configuration jumpers.
“Chapter 3. Hardware” provides detailed information about hardware including
the schematic drawings for the MCB251 board, the logic equations for the PLD
and the memory locations of the different Monitor versions contained in the
EPROM.
“Chapter 4. Programming” gives details about how to use our tools to generate
programs for the MCB251 evaluation board.
“Chapter 5. Using the 251 Monitor” gives a quick overview about the MON251
terminal program.
NOTE
This manual assumes that you are familiar with Microsoft Windows and the
hardware and instruction set of the 8051 and 251 microcontrollers.

iv Preface
Document Conventions
This document uses the following conventions:
Examples Description
README.TXT Bold capital text is used for the names of executable programs, data files,
source files, environment variables, and commands you enter at the
MS-DOS command prompt. This text usually represents commands that
you must type in literally. For example:
CLS DIR L251.EXE
Note that you are not required to enter these commands using all capital
letters.
Courier Text in this typeface is used to represent information that displays on
screen or prints at the printer.
This typeface is also used within the text when discussing or describing
command line items.
Variables
Text in italics represents information that you must provide. For example,
projectfile
in a syntax string means that you must supply the actual project
file name.
Occasionally, italics are also used to emphasize words in the text.
Elements that
repeat… Ellipses (…) are used to indicate an item that may be repeated.
Omitted code
.
.
.
Vertical ellipses are used in source code listings to indicate that a fragment
of the program is omitted. For example:
void main (void) {
.
.
.
while (1);
Optional Items
Optional arguments in command-line and option fields are indicated by
double brackets. For example:
C251 TEST.C PRINT (
filename
)
{
opt1
|
opt2
} Text contained within braces, separated by a vertical bar represents a
group of items from which one must be chosen. The braces enclose all of
the choices and the vertical bars separate the choices. One item in the list
must be selected.
Keys Text in this sans serif typeface represents actual keys on the keyboard.
For example, “Press Enter to continue.”

MCB251 Evaluation Board User’s Guide v
Contents
Chapter 1. Introduction..................................................................................... 1
Quick Start.....................................................................................................................2
Chapter 2. Setup................................................................................................. 3
Using the MCB251........................................................................................................4
Configuring the MCB251..............................................................................................5
DIP Switches.................................................................................................................6
Configuration Jumpers..................................................................................................9
CPU Selection.............................................................................................................10
Monitor Modes............................................................................................................11
Monitor Status Display................................................................................................11
Chapter 3. Hardware....................................................................................... 13
Schematics...................................................................................................................18
Printed Board Assembly..............................................................................................22
Technical Data.............................................................................................................23
PAL Equations ............................................................................................................23
Monitor EPROM Addresses........................................................................................26
Chapter 4. Programming................................................................................. 27
Monitor Memory Map.................................................................................................27
Monitor Data & Interrupt Vectors...............................................................................28
Writing Programs for the 251 Monitor........................................................................30
BLINKY Example Program........................................................................................31
External UART Example ............................................................................................46
Chapter 5. Using the 251 Monitor .................................................................. 49
MON251 Terminal Program.......................................................................................49
Index................................................................................................................... 53

vi Contents

MCB251 Evaluation Board User’s Guide 1
Chapter 1. Introduction
Thank you for letting Keil Software provide you with the MCB251 evaluation
board and software for the MCS®251 microcontroller family. With this kit you
can generate code and then operate it on the MCB251 evaluation board. This
hands-on process helps you determine hardware and software needs for current
and future product development.
The MCB251 evaluation board supports all operating modes of the 8051, 151,
and 251 microcontrollers and lets you become familiar with the different modes
of these devices. You may use a standard 8051 or the Dallas Semiconductor
80C320 or 8xC520 with this board. By generating and testing code for the
various operating modes of the 8051, 151, and 251, you can evaluate code and
processor performance. These factors can be weighed against other production
parameters to help you choose the optimum code and processor combination.
Alternatively, you may choose just to play with the board, make it flash the
LEDs, and write “Hello World” out the serial port.
This user’s guide describes the hardware of the MCB251 evaluation board and
contains the operating instructions for the monitor programs (MON251,
MON51) and the terminal programs (MON251.EXE, MON51.EXE). Several
different configurations of Monitor 251 and Monitor 51 are installed in the
EPROM on the MCB251 board. The monitor programs let you communicate
between your PC and the MCB251 evaluation board and let you download and
run your 251 or 8051 programs.
The MCB251 kit includes the following items:
n MCB251 Evaluation Board User’s Guide (this manual),
n MCB251 Evaluation Board,
n MCB251 Evaluation Board Software,
n 9-pin Serial Cable,
n 9 VDC, 500mA wall adapter power supply,
n and a 251 Evaluation Kit which includes a 2K compiler.

2 Chapter 1. Introduction
Quick Start
Use the following list to quickly locate important information about the MCB251
evaluation board.
To… See…
Connect power to the MCB251 board. “Using the MCB251” on page 4.
Connect the MCB251 to your PC. “Using the MCB251” on page 4.
Read about the default configuration settings. “Configuring the MCB251” on page 5.
Create a simple program to blink the LEDs. “BLINKY Example Program” on page 31.
Write code to use the external UART. “External UART Example” on page 46.
Learn more about the µVision IDE. “Using µVision to Create the BLINKY Program”
on page 32.
Learn more about the dScope debugger. “Using dScope to Debug the BLINKY Program”
on page 42.
Learn about the MON251 terminal program. “Chapter 5. Using the 251 Monitor” on page 49.
Read about the DIP switch settings. “DIP Switches” on page 6.
Read about the configuration jumpers. “Configuration Jumpers” on page 9.
Configure the RAM/ROM memory. “Monitor Memory Map” on page 27.
See the MCB251 schematics. “Schematics” on page 18.
See the MCB251 PAL equations. “PAL Equations” on page 23.

MCB251 Evaluation Board User’s Guide 3
Chapter 2. Setup
The MCB251 evaluation board requires power and a serial connection to a PC
running the MON251 terminal program. Before you start, make sure you have
satisfied the following hardware and software requirements.
Hardware Requirements
n The MCB251 Evaluation Board.
n A serial cable, 9-pin male to 9-pin female, 1-2 meters long, wired one-to-one.
n A PC with an available RS-232 port. If the port has a 25-pin connector, a
9-pin male to 25-pin female adapter may be required.
n A device programmer is required to program any EPROMs or other
programmable devices.
Software Requirements
n The Keil MON251 terminal program (MON251.EXE) or the Keil dScope for
Windows with the MON251.DLL driver. The Keil MON251
software/firmware is already programmed into the EPROM provided on the
MCB251 board.
n Microsoft Windows version 3.1, 3.11, Windows 95, or Windows NT.

4 Chapter 2. Setup
Using the MCB251
To use the MCB251 evaluation board, you must:
n Connect the external serial port jack (EXT RS232) to a serial port on your PC
using the supplied serial cable.
n Connect power using a power supply provided.
The serial cable lets your PC download program code and debug your target
applications. The power cable provides power to the MCB251 evaluation board.
The MCB251 does not get power from the PC via the serial cable.
The following illustration shows MCB251 board and the important interface and
hardware components.
Power
Supply
External
Serial Jack
DIP
Switches
251 on-chip
Serial Jack
Interrupt
Button
Reset Button
Monitor
EPROM
Socket for
Temic 251A1
Intel 251SB / Temic 251G1
Dallas 320 or Standard 8051 Port 1 Status
LED’s
Prototyping
Area Bus
Signals
Port
Signals
Configuration
Jumpers
Tabla de contenidos
Otros manuales de Placa madre de Keil
Manuales populares de Placa madre de otras marcas

Telit Wireless Solutions
Telit Wireless Solutions SL869-3DR Manual de usuario

Gigabyte
Gigabyte GA-9IVDT Manual de usuario

Texas Instruments
Texas Instruments ADS8372EVM Manual de usuario

Commell
Commell MS-C73 Manual de usuario

IBT Technologies
IBT Technologies MB860 Manual de usuario

Nvidia
Nvidia TEGRA DG-04927-001_V01 Manual de usuario















