义隆c编译器中文说明

上传人:我*** 文档编号:133152010 上传时间:2020-05-24 格式:PDF 页数:80 大小:635.60KB
返回 下载 相关 举报
义隆c编译器中文说明_第1页
第1页 / 共80页
义隆c编译器中文说明_第2页
第2页 / 共80页
义隆c编译器中文说明_第3页
第3页 / 共80页
义隆c编译器中文说明_第4页
第4页 / 共80页
义隆c编译器中文说明_第5页
第5页 / 共80页
点击查看更多>>
资源描述

《义隆c编译器中文说明》由会员分享,可在线阅读,更多相关《义隆c编译器中文说明(80页珍藏版)》请在金锄头文库上搜索。

1、 WicePlus C Compiler forfor EM78 Series Microcontrollers 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

2、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

3、 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

4、 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

5、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

6、 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 In

7、novation Road 1 Hsinchu Science Park Hsinchu Taiwan 30077 Tel 886 3 563 9977 Fax 886 3 563 9966 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 hk USA Elan Information Technology G

8、roup 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 Shangh

9、ai Corporation Ltd 23 Bldg 115 Lane 572 Bibo Road 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之前

10、 用户必须先完全卸载以前版本的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 和 ba

11、nk 0可以被省略 如果用户在 这些寄存器定义变量时不用特别申明 但在新版本中 用户不能再省略rpage 0 iopage 0 和 bank 0 这些 0 状态的变量也必须明确申明 对于只有一个rpage iopage 或 bank的微控制器 在 定义变量时也必须明确申明是哪一个page 或 bank 4 新版本的C编译器编译效率较高 用户可以参考本文件的第57页的转换表 5 编译器将不定地占用通用寄存器 它将提醒用户在中断服务程序里哪些通用寄存器 需要保存和备份 请参考5 10 3章节 我们希望能提供给用户一个理想的开发工具 如果您在使用 C编译器的过程中有任何的问题 请随 时联系我们 您可

12、以发邮件到下面的地址 myjian tw john cheng tw 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 窗口

13、 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 Contents 2 目录目录 WicePlus C Compiler User s Guide 3 1 硬件启动 15 3 2

14、启动 WicePlus 程序 15 3 2 1 连接对话框 15 3 2 2 Code Option 对话框 15 3 3 创建一个新的工程 15 3 4 将源文档加到工程内或从工程内删除源文档 16 3 4 1 给工程创建和增加一个新源文档 16 3 4 2 往新的工程内添加已有的源文档 18 3 4 3 从工程内删除源文档 19 3 5 从文件夹或工程内编辑源文档 20 3 5 1 从文件夹内打开源文档 20 3 5 2 从工程文件内打开源文档 20 3 6 编译工程 21 3 7 下载编译好的程序到 ICE 22 3 8 调试工程 22 3 8 1 断点设置 23 4 C 基础理论 24

15、 4 1 注释 24 4 2 保留字 25 4 3 预处理命令 26 4 3 1 include 26 4 3 2 define 26 4 3 3 if else elif endif 27 4 3 4 ifdef ifndef 27 4 4 常量 28 4 4 1 数字常量 28 4 4 2 字符常量 28 4 4 3 字符串常量 29 4 5 数据类型 29 4 6 枚举类型 30 4 7 结构和联合类型 31 4 8 数组 32 4 9 指针 32 4 10 操作运算 33 4 10 1 支持操作运算的类型 33 4 10 2 运算符的优先级 34 4 11 If else 语句 35

16、4 12 Switch 语句 35 Contents WicePlus C Compiler User s Guide 目录目录 3 4 13 While 语句 36 4 14 Do while 语句 36 4 15 For 语句 37 4 16 Break 和 Continue语句 37 4 17 Goto 语句 38 4 18 函数 38 4 18 1 库函数 38 4 18 2 定义函数 39 5 硬件相关编程 40 5 1 寄存器页 rpage 40 5 2 I O 控制寄存器页 iopage 41 5 3 Ram 区 42 5 4 位数据类型 43 5 5 数据 LCD RAM 间接寻址 45 5 6 在 ROM 内定位 C 函数 46 5 7 放数据到 ROM 47 5 8 嵌入汇编 48 5 8 1 保留字 48 5 8 2 嵌入汇编语句里 C 变量的使用 48 5 9 使用宏指令 49 5 10 中断程序 50 5 10 1 中断保护程序 50 5 10 2 中断服务程序 50 5 10 3 保留的通用寄存器的操作 51 Contents 4 目录目录 WicePlus

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 办公文档 > 教学/培训

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号