8 位
XC878CLM
8 位单片微控制器
用户手册
V 1.1 2009-04
Microcontrollers
Edition 2009-04
Published by Infineon Technologies Asia Pacific Pte Ltd
8 Kallang Sector
Singapore 349282
© 2009 Infineon Technologies Asia Pacific
All Rights Reserved.
Legal Disclaimer
The information given in this document shall in no event be regarded as a guarantee of conditions or
characteristics. With respect to any examples or hints given herein, any typical values stated herein and/or any
information regarding the application of the device, Infineon Technologies hereby disclaims any and all warranties
and liabilities of any kind, including without limitation, warranties of non-infringement of intellectual property rights
of any third party.
Information
For further information on technology, delivery terms and conditions and prices, please contact the nearest
Infineon Technologies Office (www.infineon.com).
Warnings
Due to technical requirements, components may contain dangerous substances. For information on the types in
question, please contact the nearest Infineon Technologies Office.
Infineon Technologies components may be used in life-support devices or systems only with the express written
approval of Infineon Technologies, if a failure of such components can reasonably be expected to cause the failure
of that life-support device or system or to affect the safety or effectiveness of that device or system. Life support
devices or systems are intended to be implanted in the human body or to support and/or maintain and sustain
and/or protect human life. If they fail, it is reasonable to assume that the health of the user or other persons may
be endangered.
8 位
XC878CLM
8 位单片微控制器
用户手册
V 1.1 2009-04
Microcontrollers
XC878
版本信息:
版本信息:
版本信息:
版本信息:
XC878CLM
2009-04
V1.1
先前的版本:V1.0
页页页页
页页页页 16-37
页页页页 19-28
内容(对上一版本的主要修正)
内容(对上一版本的主要修正)
内容(对上一版本的主要修正)
内容(对上一版本的主要修正)
更新表表表表 16-4:端口线 P1.4/RXDC1_3 的 NPCR1.RXSEL 值从 001B 改
为 011B。
更新表表表表 19-7:改变 MultiCAN BSL 参数的地址;01H 对应的值从 6
MHz 改为 5 MHz。
页页页页 4-11
更新表表表表 4-4:所需堆栈大小从 4 改为 5。
页页页页 1-3
页页页页 17-3
页页页页 7-9
页页页页 8-5
更新表表表表 1-2 中 3.3V 汽车专用衍生产品的工作温度。
当 fADC 为 24 MHz 时,位 CTC 可选用 00B。见章节章节章节章节 17.2。
更新导致时钟失锁的情况的描述。
修改退出掉电模式时第 5 步的描述并添加一条注解。
页页页页 12-16
BCON 寄存器的复位值从 00H 改为 20H。
页页页页 12-35
更新图图图图 12-14:去除数据和时钟线的互连
页页页页 13-16
更新图图图图 13-7,去除 RC2 到 TF2 的连接
增加章节章节章节章节 3.2.2.2 描述新功能“外部数据存储器接口”。
更新章节章节章节章节 3.2.2 和 3.2.2.1 有关访问外部接口的内容。
更新表表表表 1-3:增加外部接口的引脚定义。
更新表表表表 6-6、表表表表 6-8、表表表表 6-10 和表表表表 6-12:增加外部接口的输入/输出功
能。
更新章节章节章节章节 7.3.1.1 中选择片外振荡器作为 PLL 输入时钟或系统时钟时
所执行的步骤。
页页页页 3-4
页页页页 3-3
页页页页 1-8
页页页页 6-16
页页页页 6-22
页页页页 6-29
页页页页 6-35
页页页页 7-11
页页页页 7-12
XC878
版本信息:
版本信息:
版本信息:
版本信息:
12-25
12-27
XC878CLM
2009-04
V1.1
添加注解说明 UART1 不支持 LIN 分隔域和同步字节硬件检测。
在波特率检测初始化序列中添加清除 LIN 状态标志和复位分隔域检测
等步骤。
页页页页 12-41
更新章节章节章节章节 12.3.1.7 中有关波特率出错的注解。
为表表表表 1-1 补充 LIN BSL 可用性注解。
更新复位值的脚注。
页页页页 1-2
页页页页 9-8
期待您的指正
期待您的指正
期待您的指正
期待您的指正
本手册中如有不当、错误及遗漏之处,敬请批评指正,以便我们不断改进用户手册
的质量。请将您的建议(以及该手册的相关参考资料)发送至:
mcdocu-chinesecomments.XIY@infineon.com
版本的翻译,,,,如出现与英文用户手册不符之处,
中文用户手册是基于是基于是基于是基于英文英文英文英文版本的翻译
声明:声明:声明:声明:本本本本中文用户手册
如出现与英文用户手册不符之处,请以请以请以请以
如出现与英文用户手册不符之处,
版本的翻译
中文用户手册
中文用户手册
版本的翻译
如出现与英文用户手册不符之处,
英文用户手册为主。
英文用户手册为主。
英文用户手册为主。
英文用户手册为主。
XC878CLM
目录:目录:目录:目录: 页码页码页码页码
简介简介简介简介 .............................................................................................................. 1-1
1
特性总结 ....................................................................................................... 1-4
1.1
1.2
引脚配置 ....................................................................................................... 1-7
引脚定义及功能 ............................................................................................ 1-8
1.3
芯片 ID........................................................................................................ 1-19
1.4
1.5
命名规则 ..................................................................................................... 1-19
保留位、未定义位及未实现位 ..................................................................... 1-20
1.6
缩写 ............................................................................................................ 1-21
1.7
2
处理器结构.................................................................................................... 2-1
处理器结构
处理器结构
处理器结构
2.1
功能概述 ....................................................................................................... 2-1
CPU 寄存器描述 ........................................................................................... 2-3
2.2
堆栈指针(SP) ........................................................................................ 2-3
2.2.1
2.2.2
数据指针(DPTR) ................................................................................... 2-3
累加器(ACC) ......................................................................................... 2-3
2.2.3
B 寄存器..................................................................................................... 2-3
2.2.4
程序状态字................................................................................................. 2-4
2.2.5
2.2.6
扩展操作寄存器(EO) ............................................................................. 2-5
功率控制寄存器(PCON) ........................................................................ 2-6
2.2.7
存储器扩展.................................................................................................... 2-7
2.3
2.3.1
存储器扩展堆栈.......................................................................................... 2-7
存储器扩展的注意事项 ............................................................................... 2-7
2.3.2
存储器扩展寄存器 ...................................................................................... 2-9
2.3.3
2.4
指令时序 ..................................................................................................... 2-11
存储器结构.................................................................................................... 3-1
3
存储器结构
存储器结构
存储器结构
程序存储器.................................................................................................... 3-2
3.1
数据存储器.................................................................................................... 3-2
3.2
3.2.1
内部数据存储器.......................................................................................... 3-3
外部数据存储器.......................................................................................... 3-3
3.2.2
访问外部数据存储器............................................................................ 3-3
3.2.2.1
3.2.2.2
外部数据存储器接口............................................................................ 3-4
存储器保护策略 ............................................................................................ 3-6
3.3
3.3.1
Flash 存储器保护 ....................................................................................... 3-6
用户手册
I-1
V 1.1,2009 -04
XC878CLM
3.3.2
3.4
3.4.1
3.4.1.1
3.4.2
3.4.2.1
3.4.3
3.4.4
3.4.4.1
3.4.5
3.4.5.1
3.4.5.2
3.4.5.3
3.4.5.4
3.4.5.5
3.4.5.6
3.4.5.7
3.4.5.8
3.4.5.9
3.4.5.10
3.4.5.11
3.4.5.12
3.4.5.13
3.4.5.14
3.4.5.15
3.5
3.5.1
3.5.2
3.5.3
3.5.4
4
4.1
4.2
其它控制寄存器.......................................................................................... 3-8
特殊功能寄存器 ............................................................................................ 3-9
映射地址扩展 ............................................................................................. 3-9
系统控制寄存器 0 .............................................................................. 3-11
分页地址扩展 ........................................................................................... 3-12
分页寄存器 ........................................................................................ 3-14
位寻址 ...................................................................................................... 3-15
系统控制寄存器........................................................................................ 3-15
位保护方案 ........................................................................................ 3-16
XC878 寄存器概览 ................................................................................... 3-17
CPU 寄存器....................................................................................... 3-18
MDU 寄存器 ...................................................................................... 3-20
CORDIC 寄存器 ................................................................................ 3-21
系统控制寄存器 ................................................................................. 3-22
WDT 寄存器 ...................................................................................... 3-25
端口寄存器 ........................................................................................ 3-25
ADC 寄存器....................................................................................... 3-29
定时器 T2 比较/捕获单元寄存器 ........................................................ 3-33
定时器 T21 寄存器............................................................................. 3-36
CCU6 寄存器..................................................................................... 3-36
UART1 寄存器................................................................................... 3-42
SSC 寄存器 ....................................................................................... 3-42
MultiCAN 寄存器 ............................................................................... 3-43
OCDS 寄存器 .................................................................................... 3-44
Flash 寄存器...................................................................................... 3-45
Boot ROM 工作模式.................................................................................... 3-46
用户模式 .................................................................................................. 3-48
引导程序加载器模式 ................................................................................ 3-49
OCDS 模式 .............................................................................................. 3-49
用户 JTAG 模式........................................................................................ 3-49
闪存存储器.................................................................................................... 4-1
闪存存储器
闪存存储器
闪存存储器
Flash 存储器映射 .......................................................................................... 4-2
Flash 存储块分页 .......................................................................................... 4-2
用户手册
I-2
V 1.1,2009 -04
XC878CLM
4.3
4.3.1
4.3.2
4.3.3
4.3.4
4.3.5
4.4
4.5
4.6
4.7
4.7.1
4.7.2
4.7.3
4.8
4.9
5
5.1
5.1.1
5.1.2
5.1.2.1
5.2
5.3
5.4
5.5
5.6
5.6.1
5.6.2
5.6.3
5.6.4
5.7
6
6.1
6.1.1
工作模式 ....................................................................................................... 4-3
读操作 ........................................................................................................ 4-3
编程操作 .................................................................................................... 4-3
擦除操作 .................................................................................................... 4-4
整体擦除操作 ............................................................................................. 4-4
中止操作 .................................................................................................... 4-5
Flash 定时器 ................................................................................................. 4-7
检错和纠错.................................................................................................... 4-7
在系统编程.................................................................................................... 4-8
在应用编程.................................................................................................... 4-8
Flash 编程 .................................................................................................. 4-9
Flash 擦除 ................................................................................................ 4-10
获取芯片信息 ........................................................................................... 4-11
寄存器映射.................................................................................................. 4-11
寄存器描述.................................................................................................. 4-12
中断系统 ....................................................................................................... 5-1
中断系统
中断系统中断系统
中断结构 ....................................................................................................... 5-8
中断结构 1 ................................................................................................. 5-8
中断结构 2 ................................................................................................. 5-9
系统控制寄存器 0 .............................................................................. 5-10
中断源和中断向量 ....................................................................................... 5-11
中断优先级.................................................................................................. 5-13
中断处理 ..................................................................................................... 5-14
中断响应时间 .............................................................................................. 5-15
中断寄存器.................................................................................................. 5-17
中断节点使能寄存器 ................................................................................ 5-17
外部中断控制寄存器 ................................................................................ 5-20
中断标志寄存器........................................................................................ 5-26
中断优先级寄存器 .................................................................................... 5-33
中断标志概览 .............................................................................................. 5-36
并行端口 ....................................................................................................... 6-1
并行端口
并行端口并行端口
基本端口操作 ................................................................................................ 6-1
通用寄存器描述.......................................................................................... 6-2
用户手册
I-3
V 1.1,2009 -04