WicePlus
C Compiler
for
EM78 Series
Microcontrollers
USER’S GUIDE
ELAN MICROELECTRONICS CORP.
Feb 2007
Doc. Version 2.0
Trademark Acknowledgments
IBM is a registered trademark and PS/2 is a trademark of IBM.
Windows is a trademark of Microsoft Corporation.
ELAN and ELAN logo are trademarks of ELAN Microelectronics Corporation.
Copyright © 2007 by ELAN Microelectronics Corporation
All Rights Reserved
Printed in Taiwan
The contents of this User’s Guide (publication) are subject to change without further notice. ELAN
Microelectronics assumes no responsibility concerning the accuracy, adequacy, or completeness of this
publication. ELAN Microelectronics makes no commitment to update, or to keep current the information and
material contained in this publication. Such information and material may change to conform to each confirmed
order.
In no event shall ELAN Microelectronics be made responsible for any claims attributed to errors, omissions, or
other inaccuracies in the information or material contained in this publication. ELAN Microelectronics shall not
be liable for direct, indirect, special incidental, or consequential damages arising from the use of such information
or material.
The software (WicePlus) described in this publication is furnished under a license or nondisclosure agreement,
and may be used or copied only in accordance with the terms of such agreement.
ELAN Microelectronics products are not intended for use in life support appliances, devices, or systems. Use of
ELAN Microelectronics product in such applications is not supported and is prohibited.
NO PART OF THIS PUBLICATION MAY BE REPRODUCED OR TRANSMITTED IN ANY FORM OR BY
ANY MEANS WITHOUT THE EXPRESSED WRITTEN PERMISSION OF ELAN MICROELECTRONICS.
ELAN MICROELECTRONICS CORPORATION
Headquarters:
No. 12, Innovation Road 1
Hsinchu Science Park
Hsinchu, Taiwan 30077
Tel: +886 3 563-9977
Fax: +886 3 563-9966
http://www.emc.com.tw
Hong Kong:
Elan (HK) Microelectronics
Corporation, Ltd.
Rm. 1005B, 10/F Empire Centre
68 Mody Road, Tsimshatsui
Kowloon , HONG KONG
Tel: +852 2723-3376
Fax: +852 2723-7780
elanhk@emc.com.hk
USA:
Elan Information
Technology Group
1821 Saratoga Ave., Suite 250
Saratoga, CA 95070
USA
Tel: +1 408 366-8223
Fax: +1 408 366-8220
Shenzhen:
Elan Microelectronics
Shenzhen, Ltd.
SSMEC Bldg., 3F, Gaoxin S. Ave.
Shenzhen Hi-Tech Industrial Park
Shenzhen, Guandong, CHINA
Tel: +86 755 2601-0565
Fax: +86 755 2601-0500
Shanghai:
Elan Microelectronics
Shanghai Corporation,
Ltd.
23/Bldg. #115 Lane 572, Bibo Roa
d
Zhangjiang Hi-Tech Park
Shanghai, CHINA
Tel: +86 021 5080-3866
Fax: +86 021 5080-4600
EM55000Series IDS Reference Manual 3 Nov-00’
进版说明
用户如何在WicePlus2的平台上使用C编译器?首先,新旧版本的C编译器差别不大,操作基本雷同,
就是说在这两种版本中用户都可以建立一个新的工程,但要注意这两个版本的不同之处:
1. 卸载WicePlus1.XXX。在安装WicePlus2之前,用户必须先完全卸载以前版本的WicePlus,也就
是说在卸载的过程中,用户必须选择remove的选项。卸载以后,用户必须安装WicePlus2.,因为
新版C编译器和WicePlus2相关联。
2. 在用户建立的工程里删除system.inc 和 sysdef.inc这两个文件。假如用户在D:\develop\的路径下建
立了旧版本的工程prg1.c,这样在同一个文件夹里就会有两个C编译器的系统文件system.inc 和
sysdef.inc,用户必须先删除D:\develop\下面的这两个文件。
3. 明确分配rpage , iopage, bank。在旧版本里,rpage 0, iopage 0 和 bank 0可以被省略,如果用户在
这些寄存器定义变量时不用特别申明。但在新版本中,用户不能再省略rpage 0, iopage 0 和 bank
0,这些““0 ”状态的变量也必须明确申明。对于只有一个rpage , iopage 或 bank的微控制器,在
定义变量时也必须明确申明是哪一个page 或 bank。
4. 新版本的C编译器编译效率较高,用户可以参考本文件的第57页的转换表。
5.
编译器将不定地占用通用寄存器,它将提醒用户在中断服务程序里哪些通用寄存器
需要保存和备份,请参考5.10.3章节。
我们希望能提供给用户一个理想的开发工具,如果您在使用 C 编译器的过程中有任何的问题,请随
时联系我们,您可以发邮件到下面的地址:
john.ch[email protected]
Contents
WicePlus C Compiler User’s Guide 目录 • 1
目录
1 介绍 1
1.1 概述............................................................................................................................1
1.2 系统需求....................................................................................................................1
1.2.1 主机.................................................................................................................1
1.3 软件安装....................................................................................................................1
1.4 ANSI 兼容性 .............................................................................................................1
2 WicePlus 界面 2
2.1 概述............................................................................................................................2
2.2 WicePlus 子窗口 .......................................................................................................3
2.2.1 工程窗口.........................................................................................................3
2.2.2 编辑窗口.........................................................................................................3
2.2.3 特殊寄存器窗口.............................................................................................4
2.2.4 通用寄存器窗口.............................................................................................4
2.2.5 监视窗口.........................................................................................................5
2.2.6 数据 RAM 窗口..............................................................................................5
2.2.7 LCD RAM 窗口..............................................................................................5
2.2.8 输出窗口.........................................................................................................6
2.3 WicePlus 菜单栏及其命令 .......................................................................................6
2.3.1 文件菜单.........................................................................................................7
2.3.2 编辑菜单.........................................................................................................7
2.3.3 查看菜单.........................................................................................................8
2.3.4 工程菜单.........................................................................................................8
2.3.5 调试菜单.........................................................................................................9
2.3.6 工具菜单.........................................................................................................9
2.3.7 选项菜单.......................................................................................................10
2.3.8 IDE 菜单.......................................................................................................10
2.3.9 窗口菜单.......................................................................................................10
2.3.10 帮助菜单.......................................................................................................11
2.4 工具栏......................................................................................................................11
2.4.1 工具栏图标和功能.......................................................................................12
2.5 文档栏......................................................................................................................13
2.6 状态栏......................................................................................................................14
3 开始 15