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.1x 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.
------------------------------------------------------------------------------
没有合适的资源?快使用搜索试试~ 我知道了~
Keil C51单片机软件 中文版
共611个文件
h:151个
c:60个
lib:44个
5星 · 超过95%的资源 需积分: 50 106 下载量 63 浏览量
2009-01-21
14:47:55
上传
评论 3
收藏 9.84MB RAR 举报
温馨提示
Keil软件是目前最流行开发MCS-51系列单片机的软件,这从近年来各仿真机厂商纷纷宣布全面支持Keil即可看出。Keil提供了包括C编译器、宏汇编、连接器、库管理和一个功能强大的仿真调试器等在内的完整开发方案,通过一个集成开发环境(uVision)将这些部份组合在一起。运行Keil软件需要Pentium或以上的CPU,16MB或更多RAM、20M以上空闲的硬盘空间、WIN98、NT、WIN2000、WINXP等操作系统。掌握这一软件的使用对于使用51系列单片机的爱好者来说是十分必要的,如果你使用C语言编程,那么Keil几乎就是你的不二之选(目前在国内你只能买到该软件、而你买的仿真机也很可能只支持该软件),即使不使用C语言而仅用汇编语言编程,其方便易用的集成环境、强大的软件仿真调试工具也会令你事半功倍。
资源推荐
资源详情
资源评论
收起资源包目录
Keil C51单片机软件 中文版 (611个子文件)
111 563B
222 602B
51c 16KB
51xx 6KB
999 16KB
Ljmp_0.__i 83B
L51_BANK.A51 40KB
L51_BANK.A51 40KB
L51_BANK.A51 40KB
L51_BANK.A51 40KB
INSTALL.A51 37KB
ISD51.A51 19KB
ISD51.A51 19KB
ISD51.A51 19KB
ISD51.A51 19KB
L51_BANK.A51 15KB
TEMPLATE.A51 11KB
XBANKING.A51 10KB
INIT.A51 9KB
XBANKING.A51 9KB
MON_BANK.A51 8KB
XBANKING.A51 8KB
XBANKING.A51 8KB
START390.A51 7KB
START390.A51 7KB
START_MX.A51 7KB
START_MX.A51 7KB
START_MX.A51 7KB
INIT_TNY.A51 7KB
START_AD.A51 6KB
START_AD.A51 6KB
MX51BANK.A51 6KB
MX51BANK.A51 6KB
STARTUP.A51 5KB
STARTUP.A51 5KB
STARTLPC.A51 5KB
CONF151.A51 2KB
START751.A51 2KB
INST390.A51 2KB
ASAMPLE1.A51 1KB
MX_INST.A51 1KB
ASAMPLE2.A51 804B
ASAMPLE3.A51 344B
51XX.ABS 6KB
led.AQD 1KB
p000.AQD 608B
CD64K.asm 386KB
MCS51.asm 33KB
led.asm 1KB
t1m.asm 1KB
p000.asm 608B
INSTALL.BAT 6KB
51xx.BAT 263B
AXSAMPLE.BAT 258B
p000.BAT 258B
led.BAT 252B
ASAMPLE.BAT 251B
.BAT 88B
amd.bin 512KB
DHRY.C 28KB
DES.C 17KB
TRAFFIC.C 15KB
MEASURE.C 13KB
SERIAL.C 7KB
WHETS.C 7KB
SAMPL517.C 7KB
51xx.c 5KB
MCOMMAND.C 5KB
FREE.C 4KB
MALLOC.C 4KB
INIT_MEM.C 3KB
MAIN.C 3KB
ADI_B2.C 3KB
Test.c 3KB
Test.c 3KB
Test.c 3KB
MAIN.C 2KB
PUTCHAR.C 2KB
REALLOC.C 2KB
MAIN.C 2KB
PUTCHAR.C 2KB
SIEVE.C 2KB
HELLO.C 2KB
GETLINE.C 2KB
GETLINE.C 2KB
GETKEY.C 1KB
CSAMPLE1.C 1KB
MAIN.C 1KB
GETKEY.C 1KB
BLINKY.C 1KB
POOL.C 1KB
main_b.c 1KB
main_a.c 1KB
BLINKY.C 1KB
CSAMPLE2.C 942B
TextA.c 879B
TextB.c 869B
C_ROOT.C 868B
README.C 730B
README.C 730B
共 611 条
- 1
- 2
- 3
- 4
- 5
- 6
- 7
z1hangj2iaw3
- 粉丝: 1
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页