Working with Dallas 390 CPU in Contigious Addressing Mode
*********************************************************
-----------------------------------------------------------------------------
NOTE:
For supporting of the Dallas 390 or Dallas 5240 CPU in Contigious Mode,
the Keil PK51 V6.11 offers the extended LX51 linker/locater and the extended
AX51 Macro Assembler. The instruction set itself is supported directly in
the Keil C51 Compiler with additional C51 run-time library sets.
These components are only part of the Keil PK51 package and not available in
the CA51 or DK51 toolkit.
-----------------------------------------------------------------------------
The following README file explains how to setup and how to use the Keil PK51
toolchain for the Contigious Addressing Mode of the Dallas 390 CPU and Dallas
5240 CPU.
Tool Setup
==========
The following steps are required to setup the toolchain for Dallas Contigious Mode:
a) Create a new Project with Project - New Project and select from the uVision2
Device Database the Dallas DS80C390 (or DS5240) CPU. In the dialog Project -
Select Device for Target - CPU enable both options:
Use LX51 instead of BL51
Use AX51 instead of A51
b) Now you can select in the dialog Project - Options for Target - Target -
Code ROM Size: Contigious Mode: 512K program or 16MB program. This option
configures all tools including debugger/simulator for the Dallas contigious
mode. However, you need a proper startup sequence in your application code
that sets the SFR ACON in the Dallas CPU also to this operating mode.
Additional Memory Spaces
========================
In addition to the memory classes of the classic 8051 CPU, the extended 8051
toolchain adds three additional memory classes. These memory classes are
described in detail the Assembler/Utilities User's Guide (A51.PDF), Chapter 2
Architecture Overview, Extended 8051 Variants.
Class C51 memory type Allows Addressing of...
---------------------------------------------------------------------------------
HCONST const far complete CODE space C:0 - C:0xFFFFFF for constant
variables.
HDATA far complete XDATA space X:0 - C:0xFFFFFF for variables
ECODE C program code complete CODE space for program code.
Porting Existing 8051 Assembler Code to the Dallas Contigious Mode
==================================================================
As explained above the new toolchain supports additional memory classes for
addressing the extended memory areas of the Dallas 390 CPU. However, if you are
porting existing 8051 assembler code to the Dallas Contigious Mode, the existing
code is still used 16-bit address calculations. If you do not want to work
over the existing 8051 assembler code, you can still use the old traditional
memory classes CODE and XDATA. These memory classes ensure that the objects
are located in the lower 64KB of the CODE and XDATA region. In this way
existing 16-bit address calculation will still work correct.
Porting Existing C Code to the Dallas Contigious Mode
=====================================================
You can find a startup code for the Dallas Contigious Mode in the folder
Keil\C51\Examples\Dallas 390\C. It is recommended that you are using the
START390.A51 file also for own projects.
Function Pointers
=================
Since the Dallas 390 supports up to 16MB program space, it is no longer possible
to use code * as function pointers. You need to use a generic pointer when
you define a function pointer.
Accessing 16MB memory on the Dallas 390
=======================================
C51 Version 6.11 provides two new memory types that can be used to access
the extended XDATA and the extended CODE space. The memory types are:
far and const far. The following example shows you how to use these memory
types:
char far farray[0x300]; // this is a variable in HDATA space
const char far ctext[] = "This is a string in ECODE space";
Downloading Programs to the Systronix uCAN2 Evaluation Board
============================================================
You can download the programs written with the Keil C51 Compiler to the
Systronix uCAN2 Evaluation Board. The following steps are required:
a) Connect the COM1(Loader) port on the Systronix uCAN2 Evaluation Board
to the PC as described in the Systronix user's guide.
b) Switch the board to the Loading Mode by pressing LOAD button.
c) Open a terminal emulation (like Hyperterminal) and start a connection
with 19200baud (8bits, no parity, 1 stop-bit, xon/xoff).
d) Press Enter to start the loader and send the command L <Enter> to the
board.
e) Now you can send the generated HEX-File to the board. In Hyperterminal
you can use the menu command 'Send - Text File' to perform this action.
f) After loading you can execute the program by pressing 'Reset'.
------------------------------------------------------------------------------
NOTE:
Currently is no Keil ROM Monitor available for the Dallas 390 contigious mode.
------------------------------------------------------------------------------
没有合适的资源?快使用搜索试试~ 我知道了~
单片机开发工具ICC软件
共331个文件
h:105个
c:39个
inc:31个
5星 · 超过95%的资源 需积分: 9 12 下载量 167 浏览量
2010-08-28
16:44:51
上传
评论
收藏 10.64MB RAR 举报
温馨提示
婆各方均合格可好看风华高科该法规及非公开对符合法规的风景和法国费电话费该节目国防军
资源推荐
资源详情
资源评论
收起资源包目录
单片机开发工具ICC软件 (331个子文件)
INSTALL.A51 36KB
L51_BANK.A51 24KB
L51_BANK.A51 24KB
TEMPLATE.A51 11KB
MON_BANK.A51 8KB
XBANKING.A51 8KB
START_MX.A51 6KB
START390.A51 6KB
STARTUP.A51 4KB
INIT.A51 3KB
INIT751.A51 3KB
CONF151.A51 2KB
START751.A51 2KB
INST390.A51 2KB
ASAMPLE1.A51 1KB
ASAMPLE2.A51 804B
ASAMPLE3.A51 344B
Setup.Inx.bak 182KB
INSTALL.BAT 6KB
AXSAMPLE.BAT 258B
ASAMPLE.BAT 251B
layout.bin 435B
SETUP.BMP 137KB
DHRY.C 28KB
DES.C 17KB
TRAFFIC.C 15KB
MEASURE.C 13KB
SERIAL.C 7KB
WHETS.C 7KB
SAMPL517.C 7KB
MCOMMAND.C 5KB
FREE.C 4KB
MALLOC.C 4KB
INIT_MEM.C 3KB
REALLOC.C 2KB
PUTCHAR.C 2KB
SIEVE.C 2KB
HELLO.C 2KB
PUTCHAR.C 2KB
GETLINE.C 2KB
GETLINE.C 2KB
GETKEY.C 1KB
BLINKY.C 1KB
CSAMPLE1.C 1KB
GETKEY.C 1KB
BLINKY.C 1KB
CSAMPLE2.C 942B
README.C 730B
README.C 730B
README.C 730B
README.C 730B
README.C 730B
README.C 730B
CALLOC.C 706B
TIME.C 702B
TIME.C 699B
C_ROOT.C 668B
BADCODE.C 577B
CSAMPLE3.C 458B
C_BANK0.C 368B
C_BANK1.C 368B
C_BANK2.C 312B
data2.cab 1.17MB
data1.cab 516KB
UV2.CDB 203KB
errors.chm 123KB
DBG51.CHM 99KB
C51lib.chm 71KB
UV2.CNT 2KB
SAMPLE.INI.DEFAULT 437B
DP51.DLL 796KB
S8051.DLL 380KB
S8051.DLL 380KB
DLPC.dll 272KB
D500.DLL 248KB
T500.dll 212KB
TP51.dll 212KB
Mon51.dll 144KB
RTXTINY.DLL 124KB
SNTI386.DLL 47KB
te5_uv2.dll 40KB
RNBOVTMP.DLL 18KB
Measure.DMO 30KB
Dhry.dmo 26KB
Whets.dmo 26KB
des.DMO 16KB
traffic.DMO 14KB
Sample517.dmo 622B
readme.doc 72KB
ikernel.ex_ 332KB
uv2.exe 2.03MB
puv2.exe 893KB
C51.EXE 688KB
C51.EXE 688KB
BL51.EXE 350KB
BL51.EXE 350KB
A51.EXE 184KB
A51.EXE 184KB
LIB51.EXE 56KB
Setup.exe 53KB
共 331 条
- 1
- 2
- 3
- 4
资源评论
- vgythn89762015-11-04可以用,很好
jackxuanqinghuang
- 粉丝: 0
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功