TM4C123-EVM开发板用户手册V1.0(MDK5部分)
- 格式:pdf
- 大小:1.11 MB
- 文档页数:21
开发板用户手册(原创实用版)目录1.开发板简介2.开发板硬件配置3.软件开发环境搭建4.编程实例与实践5.常见问题与解决方案6.技术支持与资源正文一、开发板简介开发板是一种集成了微处理器、存储器、输入输出接口等多种功能于一体的电子设备,主要用于软件开发和硬件调试。
本手册所介绍的开发板具有强大的功能和易用的接口,是开发者和制造商理想的选择。
二、开发板硬件配置1.微处理器:开发板搭载了高性能的微处理器,支持多任务处理和硬件加速。
2.存储器:开发板内置了大容量的存储器,可用于存储程序代码和数据。
3.输入输出接口:开发板提供了多种输入输出接口,如串口、并口、USB 等,方便连接各种外设。
4.通信接口:开发板支持多种通信协议,如 TCP/IP、UDP 等,便于实现网络通信功能。
5.扩展接口:开发板提供了可扩展接口,用户可以根据需要添加外部设备。
三、软件开发环境搭建1.安装开发板驱动:在使用开发板之前,需要先安装相应的驱动程序,以确保开发板与计算机之间的通信顺畅。
2.选择编程语言:开发板支持多种编程语言,如 C、C++、Python 等,用户可以根据自己的需求选择合适的编程语言。
3.配置编译器:根据所选编程语言,配置相应的编译器,确保编译器能够正确识别开发板的硬件接口。
4.下载程序:将编写好的程序通过串口或者其他通信接口下载到开发板上,开始实际运行。
四、编程实例与实践本部分将通过具体的编程实例,介绍如何使用开发板实现各种功能,如 LED 闪烁、按键控制、通信协议等。
五、常见问题与解决方案在使用开发板的过程中,可能会遇到一些常见的问题,如无法下载程序、通信异常等。
本部分将针对这些问题提供相应的解决方案。
六、技术支持与资源1.技术支持:开发板厂商提供免费的技术支持服务,用户可以在官方网站上查询联系方式。
2.学习资源:厂商提供了丰富的学习资源,如用户手册、编程指南、案例教程等,帮助用户快速掌握开发板的使用技巧。
通过以上介绍,相信您已经对开发板有了全面的了解。
基于TM4C123系列单片机的频率测量系统设计作者:钱鑫洪来源:《科技视界》2017年第26期【摘要】随着电子技术的不断发展,对精确的频率测量提出了越来越高的要求。
TM4C123系列单片机是由ARM公司推出的基于ARMv7架构的高性能、低功耗32位处理器,具有高效的信号处理及浮点运算功能。
设计基于TM4C123单片机的频率测量系统,通过周期性矩形脉冲产生的上升沿或下降沿中断来捕获相关的频率信息。
具有结构简单、测量精度高、系统成本低等优点。
【关键词】频率测量;TM4C123;单片机中图分类号: F426.63 文献标识码: A 文章编号: 2095-2457(2017)26-0037-002Design of Frequency Measurement System Based on TM4C123 MicrocontrollerQian Xin-hong(Zhejiang University Tongji University, Jiaxing Zhejiang 314051,China)【Abstract】With the continuous development of electronic technology, more and more high requirements are put forward for accurate frequency measurement. The TM4C123 family of microcontrollers is a high-performance, low-power, 32-bit processor based on the ARMv7 architecture from ARM Corporation with efficient signal processing and floating-point arithmetic. The frequency measurement system based on TM4C123 is designed to capture the relevant frequency information by the rising or falling edge of the periodic rectangular pulse. Has the advantages of simple structure, high measurement accuracy, low system cost.【Key words】Frequency Measurement; TM4C123; SCM频率测量系统主要有外围辅助模块和单片机主控模块两部分组成。
快速入门手册 (keil) AMetal 平台 UM01010101 1.0.00 Data:2019/08/18©2020 Guangzhou ZHIYUAN Micro Electronics Co., Ltd修订历史目录1. 简介 (2)2. 搭建开发环境 (3)2.1环境简介 (3)2.1.1Keil µVision 集成开发环境 (3)2.1.2仿真器 (3)2.2MDK-ARM 软件安装 (3)2.2.1MDK-ARM 软件获取 (3)2.2.2MDK-ARM 软件安装 (2)2.3支持包(PACK)的安装 (6)2.3.1支持包(PACK)的获取 (6)2.3.2支持包(PACK)的安装 (8)2.4安装J-Link 软件及J-Link 仿真器驱动 (13)2.4.1J-Link 软件安装4 (13)2.4.2J-Link 仿真器驱动安装 (15)2.5安装TKScope 软件及CK100 仿真器驱动 (19)2.5.1TKScope 软件安装 (19)2.5.2安装VC8 实时运行库装 (24)2.5.3CK100 仿真器驱动安装 (25)3. 编写应用程序 (29)3.1从模板新建工程 (29)3.1.1打开工程 (32)3.2编写程序 (33)3.3编译程序 (34)4. 调试应用程序 (37)4.1连接仿真器 (37)4.2调试相关配置 (37)4.2.1CK100 调试配置 (37)4.2.2J-Link 调试配置 (44)4.3调试应用程序 (50)4.4停止调试 (56)5. 固化应用程序 (57)5.1使用µVision5 烧写程序 (57)5.2使用其他工具烧写程序 (57)5.2.1生成程序烧写文件 (57)5.2.2使用ISP 方式烧写程序 (59)6. 免责声明 (70)©2020 Guangzhou ZHIYUAN Micro Electronics Co., Ltd1. 简介本文主要介绍如何使用 Keil 集成开发环境对开源项目进行工程的导入、新建工程、编译链接和调试等操作,帮助用户快速掌握 Keil 集成开发环境下的应用程序开发。
TEXAS INSTRUMENTS-预告信息Tiva™ TM4C1230E6PM 微控制器数据手册版权©2007-2013 DS-TM4C1230E6PM-15553.2700版权版权© 2007-2013 Texas Instruments Incorporated。
Tiva 和 TivaWare 均为 Texas Instruments Incorporated 的注册商标。
ARM 和 Thumb 是 ARM 公司的注册商标,Cortex 是 ARM 公司的商标。
所有其他商标均属于其所有者的财产。
产品数据信息为发布时的信息。
根据 Texas Instruments 的标准条款,产品符合规格。
生产过程中没有必要对产品的所有参数进行测试。
请留意,此数据手册最后部分包含 Texas Instruments 半导体产品的可用性、标准保修期和关键任务应用的重要信息通告以及相关的免责声明。
Texas Instruments Incorporated108Wild Basin,Suite350Austin,TX78746/tm4c/sc/technical-support/product-information-centers.htmTiva™ TM4C1230E6PM 微控制器目录关于本文档 (30)受众 (30)关于本手册 (30)相关文档 (30)文档约定 (31)1结构概述 (33)1.1Tiva™ C 系列概述 (33)1.2TM4C1230E6PM 微控制器概述 (33)1.3TM4C1230E6PM 微控制器特性 (36)1.3.1ARM Cortex-M4F 处理器核心 (36)1.3.2片上存储器 (38)1.3.3串行通讯外设 (39)1.3.4系统集成 (42)1.3.5模拟 (47)1.3.6JTAG 和 ARM 串行线调试 (49)1.3.7封装和温度 (49)1.4TM4C1230E6PM 微控制器硬件细节 (49)1.5开发套件 (49)1.6支持信息 (50)2Cortex-M4F 处理器 (51)2.1结构框图 (52)2.2概述 (53)2.2.1系统级接口 (53)2.2.2集成的可配置调试 (53)2.2.3跟踪端口的接口单元(TPIU) (53)2.2.4Cortex-M4F 系统组件细节 (54)2.3编程模型 (54)2.3.1处理器模式和软件执行的权限级别 (55)2.3.2堆栈 (55)2.3.3寄存器映射 (55)2.3.4寄存器描述 (57)2.3.5异常和中断 (73)2.3.6数据类型 (73)2.4存储模型 (73)2.4.1内存区,类型和属性 (75)2.4.2内存访问存储系统顺序 (76)2.4.3存储器访问行为 (76)2.4.4存储器访问的软件顺序 (76)2.4.5位带区 (77)2.4.6数据保存 (79)2.4.7同步原语 (80)2.5异常模式 (81)2.5.1异常状态 (81)2.5.2异常类型 (82)2.5.3异常处理程序 (85)目录2.5.4向量表 (85)2.5.5异常优先级 (86)2.5.6中断优先级分组 (87)2.5.7异常进入和返回 (87)2.6故障处理 (89)2.6.1故障类型 (90)2.6.2故障扩大和硬件故障 (90)2.6.3故障状态寄存器和故障地址寄存器 (91)2.6.4死锁 (91)2.7电源管理 (91)2.7.1进入睡眠模式 (91)2.7.2从睡眠模式唤醒 (92)2.8指令集总结 (92)3Cortex-M4 外设 (99)3.1功能说明 (99)3.1.1系统定时器(SysTick) (99)3.1.2嵌套式向量化中断控制器(NVIC) (100)3.1.3系统控制模块 (SCB) (101)3.1.4存储器保护单元 (MPU) (102)3.1.5浮点单元 (FPU) (106)3.2寄存器映射 (109)3.3系统定时器(SysTick)寄存器描述 (112)3.4NVIC寄存器描述 (116)3.5系统控制模块(SCB)寄存器描述 (131)3.6存储器保护单元(MPU)寄存器描述 (159)3.7浮点单元 (FPU) 寄存器描述 (167)4JTAG 接口 (173)4.1结构框图 (174)4.2信号描述 (174)4.3功能说明 (175)4.3.1JTAG 接口管脚 (175)4.3.2JTAG TAP 控制器 (176)4.3.3移位寄存器 (177)4.3.4操作注意事项 (177)4.4初始化和配置 (180)4.5寄存器描述 (180)4.5.1指令寄存器 (IR) (180)4.5.2数据寄存器 (181)5系统控制 (184)5.1信号描述 (184)5.2功能说明 (184)5.2.1器件标识 (184)5.2.2复位控制 (184)5.2.3不可屏蔽的中断 (189)5.2.4功率控制 (189)5.2.5时钟控制 (190)5.2.6系统控制 (195)5.3初始化和配置 (199)Tiva™ TM4C1230E6PM 微控制器5.4寄存器映射 (199)5.5系统控制寄存器描述 (203)5.6系统控制传统寄存器描述 (357)6系统异常模块 (411)6.1功能说明 (411)6.2寄存器映射 (411)6.3寄存器描述 (411)7内部存储器 (419)7.1结构框图 (419)7.2功能说明 (420)7.2.1SRAM (420)7.2.2ROM (421)7.2.3Flash 存储器 (422)7.2.4EEPROM (427)7.3寄存器映射 (431)7.4Flash 存储器寄存器描述 (Flash 控制偏移量) (433)7.5EEPROM 寄存器描述(EEPROM 偏移量) (449)7.6存储器寄存器描述 (系统控制偏移量) (465)8微型直接存储器访问(μDMA) (473)8.1结构框图 (474)8.2功能说明 (474)8.2.1通道分配 (474)8.2.2优先级 (476)8.2.3仲裁数目 (476)8.2.4请求类型 (476)8.2.5通道配置 (477)8.2.6传输模式 (478)8.2.7待传输数目及增量 (487)8.2.8外设接口 (487)8.2.9软件请求 (487)8.2.10中断及错误 (487)8.3初始化和配置 (488)8.3.1模块初始化 (488)8.3.2存储器到存储器传输的配置 (488)8.3.3外设简单发送的配置 (490)8.3.4外设乒乓接收的配置 (491)8.3.5通道分配的配置 (493)8.4寄存器映射 (493)8.5μDMA 通道控制结构体 (495)8.6μDMA 寄存器描述 (502)9通用输入/输入端口(GPIOs) (536)9.1信号描述 (536)9.2功能说明 (538)9.2.1数据控制 (540)9.2.2中断控制 (541)9.2.3模式控制 (542)9.2.4确认控制 (542)目录9.2.5引脚(Pad)控制 (543)9.2.6标识 (543)9.3初始化和配置 (543)9.4寄存器映射 (544)9.5寄存器描述 (546)10通用定时器 (589)10.1结构框图 (590)10.2信号描述 (591)10.3功能说明 (592)10.3.1GPTM复位条件 (593)10.3.2定时器模式 (594)10.3.3等待触发模式 (603)10.3.4同步通用定时器模块 (603)10.3.5DMA 操作 (604)10.3.6访问连接的 16/32 位 GPTM 寄存器值 (604)10.3.7访问连接的 32/64 位宽 GPTM 寄存器值 (605)10.4初始化和配置 (606)10.4.1单次触发/周期定时器模式 (606)10.4.2实时时钟 (RTC) 模式 (607)10.4.3输入边沿计数模式下: (607)10.4.4输入边沿定时模式 (608)10.4.5PWM 模式 (609)10.5寄存器映射 (609)10.6寄存器描述 (610)11看门狗定时器 (653)11.1结构框图 (654)11.2功能说明 (654)11.2.1寄存器访问间隙 (655)11.3初始化和配置 (655)11.4寄存器映射 (655)11.5寄存器描述 (656)12模-数转换器(ADC) (678)12.1结构框图 (679)12.2信号描述 (679)12.3功能说明 (680)12.3.1采样序列发生器 (680)12.3.2模块控制 (681)12.3.3硬件采样平均电路 (684)12.3.4模-数转换器 (685)12.3.5差分采样 (687)12.3.6内部温度传感器 (689)12.3.7数字比较器 (690)12.4初始化和配置 (694)12.4.1模块初始化 (694)12.4.2采样序列发生器的配置 (695)12.5寄存器映射 (695)12.6寄存器描述 (697)Tiva™ TM4C1230E6PM 微控制器13通用异步收发器(UART) (760)13.1结构框图 (761)13.2信号描述 (761)13.3功能说明 (762)13.3.1发送/接收逻辑 (762)13.3.2波特率的产生 (763)13.3.3数据传输 (763)13.3.4串行红外(SIR) (764)13.3.5对ISO 7816的支持 (765)13.3.6对调制解调器握手信号的支持 (765)13.3.79 位 UART 模式 (766)13.3.8FIFO操作 (767)13.3.9中断信号 (767)13.3.10回送操作 (768)13.3.11DMA 操作 (768)13.4初始化和配置 (768)13.5寄存器映射 (770)13.6寄存器描述 (771)14同步串行接口(SSI) (817)14.1结构框图 (818)14.2信号描述 (818)14.3功能说明 (819)14.3.1位速率的产生 (819)14.3.2FIFO操作 (820)14.3.3中断信号 (820)14.3.4帧格式 (821)14.3.5DMA 操作 (828)14.4初始化和配置 (828)14.5寄存器映射 (830)14.6寄存器描述 (831)15内部集成电路(I2C)接口 (860)15.1结构框图 (861)15.2信号描述 (861)15.3功能说明 (862)15.3.1I2C 总线功能概览 (862)15.3.2可用的速度模式 (866)15.3.3中断信号 (867)15.3.4回送操作 (868)15.3.5命令序列流程图 (868)15.4初始化和配置 (877)15.4.1将 I2C 模块配置为以主机身份传输单字节数据 (877)15.4.2将 I2C 主机配置为高速模式 (878)15.5寄存器映射 (879)15.6寄存器描述(I2C 主机) (880)15.7寄存器描述(I2C 从机) (896)15.8寄存器描述(I2C 状态和控制寄存器) (906)目录16控制器局域网(CAN)模块 (909)16.1结构框图 (910)16.2信号描述 (910)16.3功能说明 (911)16.3.1初始化 (912)16.3.2基本操作 (912)16.3.3报文对象的发送 (913)16.3.4待发送报文对象的配置 (913)16.3.5待发送报文对象的刷新 (914)16.3.6已接收报文对象的接受 (915)16.3.7接收数据帧 (915)16.3.8接收远程帧 (915)16.3.9接收/发送优先级 (916)16.3.10接收报文对象的配置 (916)16.3.11已接收报文对象的处理 (917)16.3.12中断的处理 (918)16.3.13测试模式 (919)16.3.14位定时配置错误的注意事项 (920)16.3.15位时间与位速率 (920)16.3.16位定时参数的计算 (922)16.4寄存器映射 (925)16.5寄存器描述 (927)17模拟比较器 (955)17.1结构框图 (956)17.2信号描述 (956)17.3功能说明 (957)17.3.1内部参考电压编程 (957)17.4初始化和配置 (959)17.5寄存器映射 (960)17.6寄存器描述 (960)18管脚图 (969)19信号表 (970)19.1按管脚编号分类的信号 (971)19.2按信号名称分类的信号 (976)19.3按功能分类的信号(GPIO 除外) (981)19.4GPIO 管脚和复用功能 (986)19.5复用功能的可能的管脚赋值 (989)19.6未用管脚的处理 (991)20Electrical Characteristics (993)20.1Maximum Ratings (993)20.2Operating Characteristics (994)20.3Recommended Operating Conditions (995)20.4Load Conditions (997)20.5JTAG and Boundary Scan (998)20.6Power and Brown-Out (1000)20.6.1VDDA Levels (1000)20.6.2VDD Levels (1001)Tiva™ TM4C1230E6PM 微控制器20.6.3VDDC Levels (1002)20.6.4VDD Glitches (1003)20.6.5VDD Droop Response (1003)20.7Reset (1005)20.8On-Chip Low Drop-Out(LDO)Regulator (1007)20.9Clocks (1008)20.9.1PLL Specifications (1008)20.9.2PIOSC Specifications (1009)20.9.3Low-Frequency Internal Oscillator(LFIOSC)Specifications (1009)20.9.4Main Oscillator Specifications (1009)20.9.5System Clock Specification with ADC Operation (1012)20.10Sleep Modes (1013)20.11Flash Memory and EEPROM (1015)20.12Input/Output Pin Characteristics (1016)20.12.1GPIO Module Characteristics (1016)20.12.2Types of I/O Pins and ESD Protection (1016)20.13Analog-to-Digital Converter(ADC) (1020)20.14Synchronous Serial Interface(SSI) (1023)20.15Inter-Integrated Circuit(I2C)Interface (1026)20.16Analog Comparator (1027)20.17Current Consumption (1029)A封装信息 (1032)A.1可订购器件 (1032)A.2型号标识 (1033)A.3封装图 (1034)A.4封装材料 (1035)目录插图清单图 1-1.Tiva™ TM4C1230E6PM 微控制器高级框图 (35)图 2-1.CPU 结构图 (52)图 2-2.TPIU方框图 (54)图 2-3.Cortex-M4F 寄存器组 (56)图 2-4.位带映射 (79)图 2-5.数据保存 (80)图 2-6.向量表 (86)图 2-7.异常堆栈框 (88)图 3-1.SRD 使用示例 (104)图 3-2.FPU 寄存器块 (107)图 4-1.JTAG 模块方框图 (174)图 4-2.测试访问端口状态机 (177)图 4-3.IDCODE 寄存器格式 (182)图 4-4.BYPASS 寄存器格式 (182)图 4-5.边界扫描寄存器格式 (182)图 5-1.基本 RST 配置 (186)图 5-2.延长上电复位时间的外部电路 (187)图 5-3.复位电路由开关控制 (187)图 5-4.功率结构 (190)图 5-5.主时钟树 (192)图 5-6.模块时钟选择 (197)图 7-1.内部存储器结构图 (419)图 7-2.EEPROM 结构图 (420)图 8-1.μDMA 结构图 (474)图 8-2.乒乓式 μDMA 数据会话的示例 (480)图 8-3.存储器散聚模式:创建及配置 (482)图 8-4.存储器散聚模式:μDMA 复制序列 (483)图 8-5.外设散聚模式:创建及配置 (485)图 8-6.外设散聚模式:μDMA 复制序列 (486)图 9-1.数字 I/O 口 (539)图 9-2.模拟/数字 I/O 口 (540)图 9-3.GPIODATA 写实例 (541)图 9-4.GPIODATA 读实例 (541)图 10-1.GPTM 模块的结构图 (590)图 10-2.读取 RTC 值 (597)图 10-3.输入边沿计数模式实例,递减计数 (598)图 10-4.16 位输入边沿计时模式实例 (600)图 10-5.16-位PWM模式实例 (601)图 P 输出,GPTMTnMATCHR > GPTMTnILR (602)图 P 输出,GPTMTnMATCHR = GPTMTnILR (602)图 P 输出,GPTMTnILR > GPTMTnMATCHR (603)图 10-9.定时器菊花链 (603)图 11-1.WDT模块的结构图 (654)图 12-1.两个 ADC 模块的连接结构图 (679)图 12-2.ADC模块框图 (679)图 12-3.ADC 采样相位 (682)图 12-4.ADC 采样率倍增 (683)图 12-5.交错采样 (683)图 12-6.采样平均的实例 (685)图 12-7.ADC 输入端等效框图 (686)图 12-8.ADC 参考电压 (686)图 12-9.ADC 转换结果 (687)图 12-10.差分电压表达式 (689)图 12-11.内部温度传感器特性 (690)图 12-12.低值带工作(CIC = 0x0) (692)图 12-13.中值带工作(CIC = 0x1 ) (693)图 12-14.高值带工作(CIC = 0x3) (694)图 13-1.UART模块的结构图 (761)图 13-2.UART字符帧 (763)图 13-3.IrDA 数据调制 (765)图 14-1.SSI模块的结构图 (818)图 14-2.TI 同步串行帧格式(单次传输) (821)图 14-3.TI 同步串行的帧格式(连续传输) (822)图 14-4.SPO = 0 和 SPH = 0 时的飞思卡尔 SPI 格式(单次传输) (823)图 14-5.SPO = 0 和 SPH = 0 时的飞思卡尔 SPI 格式 (连续传输) (823)图 14-6.SPO = 0、SPH = 1 时的飞思卡尔 SPI 帧格式 (824)图 14-7.SPO = 1 和 SPH = 0 时的飞思卡尔 SPI 帧格式(单次传输) (825)图 14-8.SPO = 1 和 SPH = 0 时的飞思卡尔 SPI 帧格式(连续传输) (825)图 14-9.SPO = 1、SPH = 1 时的飞思卡尔 SPI 帧格式 (826)图 14-10.MICROWIRE的帧格式 (单帧) (826)图 14-11.MICROWIRE的帧格式 (连续传输) (827)图 14-12.MICROWIRE 帧格式,SSInFss 输入建立和保持时间要求 (828)图 15-1.I2C 结构图 (861)图 15-2.I2C 总线配置 (862)图 15-3.START 和 STOP 条件 (862)图 15-4.带 7 位地址的完整数据传输 (863)图 15-5.首字节的R/S位 (863)图 15-6.I2C 总线位传输过程中的数据有效性 (863)图 15-7.高速数据格式 (867)图 15-8.主机单次传输 (870)图 15-9.主机单次接收 (871)图 15-10.多数据字节的主机传输 (872)图 15-11.多数据字节的主机接收 (873)图 15-12.主机传输后以重复开始序列进行的主机接收 (874)图 15-13.主机接收后以重复开始序列进行的主机传输 (875)图 15-14.标准高速模式主机传输 (876)图 15-15.从机命令序列 (877)图 16-1.CAN 控制器结构图 (910)图 16-2.CAN 数据帧/远程帧 (911)图 16-3.FIFO 缓冲区中的报文对象 (918)图 16-4.CAN 的位时间 (921)图 17-1.模拟比较器模块的结构图 (956)图 17-2.比较单元的结构 (957)图 17-3.比较器内部参考结构 (958)图 18-1.64 管脚 LQFP 封装管脚图 (969)图 20-1.Load Conditions (997)图 20-2.JTAG Test Clock Input Timing (998)图 20-3.JTAG Test Access Port(TAP)Timing (999)图 20-4.Power Assertions versus VDDA Levels (1001)图 20-5.Power and Brown-Out Assertions versus VDD Levels (1002)图 20-6.POK assertion vs VDDC (1003)图 20-7.POR-BOR0-BOR1VDD Glitch Response (1003)图 20-8.POR-BOR0-BOR1VDD Droop Response (1004)图 20-9.Digital Power-On Reset Timing (1005)图 20-10.Brown-Out Reset Timing (1005)图 20-11.External Reset Timing(RST) (1006)图 20-12.Software Reset Timing (1006)图 20-13.Watchdog Reset Timing (1006)图 20-14.MOSC Failure Reset Timing (1006)图 20-15.ESD Protection on Fail-Safe Pins (1017)图 20-16.ESD Protection on Non-Fail-Safe Pins (1018)图 20-17.ADC Input Equivalency Diagram (1022)图 20-18.SSI Timing for TI Frame Format(FRF=01),Single Transfer TimingMeasurement (1024)图 20-19.SSI Timing for MICROWIRE Frame Format(FRF=10),Single Transfer (1024)图 20-20.Master Mode SSI Timing for SPI Frame Format(FRF=00),with SPH=1 (1025)图 20-21.Slave Mode SSI Timing for SPI Frame Format(FRF=00),with SPH=1 (1025)图 20-22.I2C Timing (1026)图 A-1.器件型号说明 (1032)图 A-2.TM4C1230E6PM 64 管脚 LQFP 封装图 (1034)图 A-3.64 管脚 LQFP PM 封装载带 (1035)图 A-4.64 管脚 LQFP PM 封装塑料圆盘 (1036)图 A-5.64 管脚 LQFP PM 封装用载带圆盘箱 (1036)表格清单表 1.文档约定 (31)表 1-1.TM4C1230E6PM 微控制器特性 (33)表 2-1.处理器模式、特权等级和堆栈使用摘要 (55)表 2-2.处理器寄存器映射 (56)表 2-3.PSR 寄存器组合 (62)表 2-4.存储器映射 (73)表 2-5.存储器访问行为 (76)表 2-6.SRAM 存储器位带区 (77)表 2-7.外设存储器位带区 (78)表 2-8.异常类型 (83)表 2-9.中断信号 (83)表 2-10.异常返回行为 (89)表 2-11.故障 (90)表 2-12.故障状态寄存器和故障地址寄存器 (91)表 2-13.Cortex-M4F 指令摘要 (93)表 3-1.内核外设寄存器区域 (99)表 3-2.存储器属性摘要 (102)表 3-3.TEX、S、C 和 B 位域编码 (105)表 3-4.存储器属性编码对应的高速缓存策略 (105)表 3-5.AP 位域编码 (105)表 3-6.Stellaris Tiva™ C 系列微控制器的存储器区属性 (106)表 3-7.QNaN 和 SNaN 处理 (108)表 3-8.外设寄存器映射 (109)表 3-9.中断优先级分组 (139)表 3-10.SIZE 域数值示例 (166)表 4-1.JTAG_SWD_SWO 信号 (64LQFP) (174)表 4-2.上电复位或 RST 生效后的 JTAG 端口管脚状态 (175)表 4-3.JTAG 指令寄存器命令 (180)表 5-1.系统控制; 时钟信号 (64LQFP) (184)表 5-2.复位源 (185)表 5-3.时钟源选项 (191)表 5-4.使用 SYSDIV 域可能实现的系统时钟频率 (192)表 5-5.使用 SYSDIV2 域可能实现的系统时钟频率示例 (193)表 5-6.当 DIV400=1 时可能实现的系统时钟频率示例 (193)表 5-7.系统控制寄存器映射 (199)表 5-8.替代 RCC 域的 RCC2 域 (223)表 6-1.系统异常寄存器映射 (411)表 7-1.Flash 存储器保护策略组合 (423)表 7-2.用户可编程的 Flash 存储器驻留寄存器 (427)表 7-3.Flash 寄存器映射 (431)表 8-1.μDMA 通道分配 (475)表 8-2.所支持的请求类型 (476)表 8-3.控制结构体的存储器映射 (477)表 8-4.通道控制结构体 (477)表 8-5.μDMA 读操作实例:8 位外设 (487)表 8-6.μDMA 中断分配 (488)表 8-7.第 30 号通道的通道控制结构体偏移量 (489)表 8-8.存储器传输示例的通道控制字配置 (489)表 8-9.第 7 号通道的通道控制结构体偏移量 (490)表 8-10.外设传输示例的通道控制字配置 (490)表 8-11.第 8 号通道的主控制结构体及副控制结构体偏移量 (492)表 8-12.外设乒乓接收示例的通道控制字配置 (492)表 8-13.μDMA 寄存器映射 (494)表 9-1.具有非 0 复位值的 GPIO 管脚 (537)表 9-2.GPIO 管脚和复用功能 (64LQFP) (537)表 9-3.GPIO 端口配置示例 (544)表 9-4.GPIO 中断配置示例 (544)表 9-5.具有非 0 复位值的 GPIO 管脚 (545)表 9-6.GPIO 触发寄存器映射 (545)表 9-7.具有非 0 复位值的 GPIO 管脚 (556)表 9-8.具有非 0 复位值的 GPIO 管脚 (562)表 9-9.具有非 0 复位值的 GPIO 管脚 (564)表 9-10.具有非 0 复位值的 GPIO 管脚 (567)表 9-11.具有非 0 复位值的 GPIO 管脚 (573)表 10-1.可用的 CCP 管脚 (590)表 10-2.通用定时器信号 (64LQFP) (591)表 10-3.通用定时器功能 (592)表 10-4.单次触发或周期模式下启用定时器时的计数器值 (594)表 10-5.带预分频器的 16 位定时器配置 (595)表 10-6.带预分频器配置的 32 位定时器(配置为 32/64 位模式) (595)表 10-7.RTC 模式下启用定时器时的计数器值 (596)表 10-8.输入边沿计数模式下启用定时器时的计数器值 (598)表 10-9.输入事件计数模式下启用定时器时的计数器值 (599)表 10-10.PWM 模式下启用定时器时的计数器值 (600)表 10-11.GPTM 模式的超时动作 (604)表 10-12.定时器触发寄存器映射 (610)表 11-1.看门狗定时器寄存器映射 (655)表 12-1.ADC 信号 (64LQFP) (680)表 12-2.采样序列发生器的采样数和 FIFO 深度 (680)表 12-3.差分采样对 (688)表 12-4.ADC 寄存器映射 (695)表 13-1.UART 信号 (64LQFP) (761)表 13-2.流控模式 (766)表 13-3.UART 寄存器映射 (770)表 14-1.SSI 信号 (64LQFP) (819)表 14-2.SSI 寄存器映射 (830)表 15-1.I2C 信号 (64LQFP) (861)表 15-2.I2C 主机定时器周期与速度模式示例 (866)表 15-3.高速模式下 I2C 主机定时器周期的示例 (867)表 15-4.内部集成电路(I2C)接口寄存器映射 (879)表 15-5.为 I2CMCS[3:0] 域写入域解码 (885)表 16-1.控制器局域网信号 (64LQFP) (910)表 16-2.报文对象的配置 (915)表 16-3.CAN 协议范围 (921)表 16-4.CANBIT 寄存器值 (922)表 16-5.CAN 寄存器映射 (925)表 17-1.模拟比较器触发信号 (64LQFP) (956)表 17-2.内部参考电压和 ACREFCTL 域值 (958)表 17-3.模拟比较器参考电压特性,V DDA = 3.3V,EN= 1 且 RNG = 0 (959)表 17-4.模拟比较器参考电压特性,V DDA = 3.3V,EN= 1 且 RNG = 1 (959)表 17-5.模拟比较器触发寄存器映射 (960)表 19-1.默认为复用功能的 GPIO 管脚 (970)表 19-2.按管脚编号分类的信号 (971)表 19-3.按信号名称分类的信号 (976)表 19-4.按功能分类的信号(GPIO 除外) (981)表 19-5.GPIO 管脚和复用功能 (986)表 19-6.复用功能的可能的管脚赋值 (989)表 19-7.未用信号的连接(64 管脚 LQFP) (991)表 20-1.Maximum Ratings (993)表 20-2.ESD Absolute Maximum Ratings (993)表 20-3.Temperature Characteristics (994)表 20-4.Thermal Characteristics (994)表 20-5.Recommended DC Operating Conditions (995)表 20-6.Recommended GPIO Pad Operating Conditions (995)表 20-7.GPIO Current Restrictions (995)表 20-8.GPIO Package Side Assignments (996)表 20-9.JTAG Characteristics (998)表 20-10.Power-On and Brown-Out Levels (1000)表 20-11.Reset Characteristics (1005)表 20-12.LDO Regulator Characteristics (1007)表 20-13.Phase Locked Loop(PLL)Characteristics (1008)表 20-14.Actual PLL Frequency (1008)表 20-15.PIOSC Clock Characteristics (1009)表 20-16.Low-Frequency internal Oscillator Characteristics (1009)表 20-17.Main Oscillator Input Characteristics (1009)表 20-18.Crystal Parameters (1011)表 20-19.Supported MOSC Crystal Frequencies (1012)表 20-20.System Clock Characteristics with ADC Operation (1012)表 20-21.Sleep Modes AC Characteristics (1013)表 20-22.Time to Wake with Respect to Low-Power Modes (1013)表 20-23.Flash Memory Characteristics (1015)表 20-24.EEPROM Characteristics (1015)表 20-25.GPIO Module Characteristics (1016)表 20-26.Pad Voltage/Current Characteristics for Fail-Safe Pins (1017)表 20-27.Fail-Safe GPIOs that Require an External Pull-up (1018)表 20-28.Non-Fail-Safe I/O Pad Voltage/Current Characteristics (1018)表 20-29.ADC Electrical Characteristics (1020)表 20-30.SSI Characteristics (1023)表 20-31.I2C Characteristics (1026)表 20-32.Analog Comparator Characteristics (1027)表 20-33.Analog Comparator Voltage Reference Characteristics (1027)表 20-34.Analog Comparator Voltage Reference Characteristics,V DDA=3.3V,EN=1,and RNG=0 (1027)表 20-35.Analog Comparator Voltage Reference Characteristics,V DDA=3.3V,EN=1,and RNG=1 (1028)表 20-36.Current Consumption (1029)表 A-1.可订购的器件型号 (1032)寄存器列表Cortex-M4F 处理器 (51)寄存器 1:Cortex 通用寄存器 0(R0) (58)寄存器 2:Cortex 通用寄存器 1(R1) (58)寄存器 3:Cortex 通用寄存器 2(R2) (58)寄存器 4:Cortex 通用寄存器 3(R3) (58)寄存器 5:Cortex 通用寄存器 4(R4) (58)寄存器 6:Cortex 通用寄存器 5(R5) (58)寄存器 7:Cortex 通用寄存器 6(R6) (58)寄存器 8:Cortex 通用寄存器 7(R7) (58)寄存器 9:Cortex 通用寄存器 8(R8) (58)寄存器 10:Cortex 通用寄存器 9(R9) (58)寄存器 11:Cortex 通用寄存器 10(R10) (58)寄存器 12:Cortex 通用寄存器 11(R11) (58)寄存器 13:Cortex 通用寄存器 12(R12) (58)寄存器 14:堆栈指针(SP) (59)寄存器 15:链接寄存器(LR) (60)寄存器 16:程序计数器(PC) (61)寄存器 17:程序状态寄存器(PSR) (62)寄存器 18:优先级屏蔽寄存器(PRIMASK) (66)寄存器 19:故障屏蔽寄存器(FAULTMASK) (67)寄存器 20:基本优先级屏蔽寄存器(BASEPRI) (68)寄存器 21:控制寄存器(CONTROL) (69)寄存器 22:浮点状态控制(FPSC)寄存器 (71)Cortex-M4 外设 (99)寄存器 1:SysTick 控制及状态寄存器(STCTRL),偏移量 0x010 (113)寄存器 2:SysTick 重载值寄存器(STRELOAD),偏移量 0x014 (115)寄存器 3:SysTick 当前值寄存器(STCURRENT),偏移量 0x018 (116)寄存器 4:中断 0-31 置位启用寄存器(EN0),偏移量 0x100 (117)寄存器 5:中断 32-63 置位启用寄存器(EN1),偏移量 0x104 (117)寄存器 6:中断 64-95 置位启用寄存器(EN2),偏移量 0x108 (117)寄存器 7:中断 96-127 置位启用寄存器(EN3),偏移量 0x10C (117)寄存器 8:中断 128-138 设置启用寄存器(EN4),偏移量 0x110 (118)寄存器 9:中断 0-31 清除启用寄存器(DIS0),偏移量 0x180 (119)寄存器 10:中断 32-63 清除启用寄存器(DIS1),偏移量 0x184 (119)寄存器 11:中断 64-95 清除启用寄存器(DIS2),偏移量 0x188 (119)寄存器 12:中断 96-127 清除启用寄存器(DIS3),偏移量 0x18C (119)寄存器 13:中断 128-138 清除启用寄存器(DIS4),偏移量 0x190 (120)寄存器 14:中断 0-31 置位挂起寄存器(PEND0),偏移量 0x200 (121)寄存器 15:中断 32-63 置位挂起寄存器(PEND1),偏移量 0x204 (121)寄存器 16:中断 64-95 置位挂起寄存器(PEND2),偏移量 0x208 (121)寄存器 17:中断 96-127 置位挂起寄存器(PEND3),偏移量 0x20C (121)寄存器 18:中断 128-138 置位挂起寄存器(PEND4),偏移量 0x210 (122)寄存器 19:中断 0-31 清除挂起寄存器(UNPEND0),偏移量 0x280 (123)寄存器 20:中断 32-63 清除挂起寄存器(UNPEND1),偏移量 0x284 (123)寄存器 21:中断 64-95 清除挂起寄存器(UNPEND2),偏移量 0x288 (123)寄存器 22:中断 96-127 清除挂起寄存器(UNPEND3),偏移量 0x28C (123)寄存器 23:中断 128-138 清除挂起寄存器(UNPEND4),偏移量 0x290 (124)寄存器 24:中断 0-31 活动位寄存器(ACTIVE0),偏移量 0x300 (125)寄存器 25:中断 32-63 活动位寄存器(ACTIVE1),偏移量 0x304 (125)寄存器 26:中断 64-95 活动位寄存器(ACTIVE2),偏移量 0x308 (125)寄存器 27:中断 96-127 活动位寄存器(ACTIVE3),偏移量 0x30C (125)寄存器 28:中断 128-138 活动位寄存器(ACTIVE4),偏移量 0x310 (126)寄存器 29:中断 0-3 优先级寄存器(PRI0),偏移量 0x400 (127)寄存器 30:中断 4-7 优先级寄存器(PRI1),偏移量 0x404 (127)寄存器 31:中断 8-11 优先级寄存器(PRI2),偏移量 0x408 (127)寄存器 32:中断 12-15 优先级寄存器(PRI3),偏移量 0x40C (127)寄存器 33:中断 16-19 优先级寄存器(PRI4),偏移量 0x410 (127)寄存器 34:中断 20-23 优先级寄存器(PRI5),偏移量 0x414 (127)寄存器 35:中断 24-27 优先级寄存器(PRI6),偏移量 0x418 (127)寄存器 36:中断 28-31 优先级寄存器(PRI7),偏移量 0x41C (127)寄存器 37:中断 32-35 优先级寄存器(PRI8),偏移量 0x420 (127)寄存器 38:中断 36-39 优先级寄存器(PRI9),偏移量 0x424 (127)寄存器 39:中断 40-43 优先级寄存器(PRI10),偏移量 0x428 (127)寄存器 40:中断 44-47 优先级寄存器(PRI11),偏移量 0x42C (127)寄存器 41:中断 48-51 优先级寄存器(PRI12),偏移量 0x430 (127)寄存器 42:中断 52-55 优先级寄存器(PRI13),偏移量 0x434 (127)寄存器 43:中断 56-59 优先级寄存器(PRI14),偏移量 0x438 (127)寄存器 44:中断 60-63 优先级寄存器(PRI15),偏移量 0x43C (127)寄存器 45:中断 64-67 优先级寄存器(PRI16),偏移量 0x440 (129)寄存器 46:中断 68-71 优先级寄存器(PRI17),偏移量 0x444 (129)寄存器 47:中断 72-75 优先级寄存器(PRI18),偏移量 0x448 (129)寄存器 48:中断 76-79 优先级寄存器(PRI19),偏移量 0x44C (129)寄存器 49:中断 80-83 优先级寄存器(PRI20),偏移量 0x450 (129)寄存器 50:中断 84-87 优先级寄存器(PRI21),偏移量 0x454 (129)寄存器 51:中断 88-91 优先级寄存器(PRI22),偏移量 0x458 (129)寄存器 52:中断 92-95 优先级寄存器(PRI23),偏移量 0x45C (129)寄存器 53:中断 96-99 优先级寄存器(PRI24),偏移量 0x460 (129)寄存器 54:中断 100-103 优先级寄存器(PRI25),偏移量 0x464 (129)寄存器 55:中断 104-107 优先级寄存器(PRI26),偏移量 0x468 (129)寄存器 56:中断 108-111 优先级寄存器(PRI27),偏移量 0x46C (129)寄存器 57:中断 112-115 优先级寄存器(PRI28),偏移量 0x470 (129)寄存器 58:中断 116-119 优先级寄存器(PRI29),偏移量 0x474 (129)寄存器 59:中断 120-123 优先级寄存器(PRI30),偏移量 0x478 (129)寄存器 60:中断 124-127 优先级寄存器(PRI31),偏移量 0x47C (129)寄存器 61:中断 128-131 优先级寄存器(PRI32),偏移量 0x480 (129)寄存器 62:中断 132-135 优先级寄存器(PRI33),偏移量 0x484 (129)寄存器 63:中断 136-138 优先级寄存器(PRI34),偏移量 0x488 (129)寄存器 64:软件触发中断寄存器(SWTRIG),偏移量 0xF00 (131)寄存器 65:辅助控制寄存器(ACTLR),偏移量 0x008 (132)寄存器 66:CPU ID 基础寄存器(CPUID),偏移量 0xD00 (134)寄存器 67:中断控制及状态寄存器(INTCTRL),偏移量 0xD04 (135)寄存器 68:向量表寄存器(VTABLE),偏移量 0xD08 (138)寄存器 69:应用程序中断及复位控制寄存器(APINT),偏移量 0xD0C (139)寄存器 70:系统控制寄存器(SYSCTRL),偏移量 0xD10 (141)寄存器 71:配置及控制寄存器(CFGCTRL),偏移量 0xD14 (143)寄存器 72:系统处理程序优先级寄存器 1(SYSPRI1),偏移量 0xD18 (145)寄存器 73:系统处理程序优先级寄存器 2(SYSPRI2),偏移量 0xD1C (146)寄存器 74:系统处理程序优先级寄存器 3(SYSPRI3),偏移量 0xD20 (147)寄存器 75:系统处理程序控制及状态寄存器(SYSHNDCTRL),偏移量 0xD24 (148)寄存器 76:可配置故障状态寄存器(FAULTSTAT),偏移量 0xD28 (151)寄存器 77:硬故障状态寄存器(HFAULTSTAT),偏移量 0xD2C (157)寄存器 78:存储器管理故障地址寄存器(MMADDR),偏移量 0xD34 (158)寄存器 79:总线故障地址寄存器(FAULTADDR),偏移量 0xD38 (159)寄存器 80:MPU 类型寄存器(MPUTYPE),偏移量 0xD90 (160)寄存器 81:MPU 控制寄存器(MPUCTRL),偏移量 0xD94 (161)寄存器 82:MPU 区编号寄存器(MPUNUMBER),偏移量 0xD98 (163)寄存器 83:MPU 区基地址寄存器(MPUBASE),偏移量 0xD9C (164)寄存器 84:MPU 区基地址别名寄存器 1(MPUBASE1),偏移量 0xDA4 (164)寄存器 85:MPU 区基地址别名寄存器 2(MPUBASE2),偏移量 0xDAC (164)寄存器 86:MPU 区基地址别名寄存器 3(MPUBASE3),偏移量 0xDB4 (164)寄存器 87:MPU 区属性和大小寄存器(MPUATTR),偏移量 0xDA0 (166)寄存器 88:MPU 区属性和大小别名寄存器 1(MPUATTR1),偏移量 0xDA8 (166)寄存器 89:MPU 区属性和大小别名寄存器 2(MPUATTR2),偏移量 0xDB0 (166)寄存器 90:MPU 区属性和大小别名寄存器 3(MPUATTR3),偏移量 0xDB8 (166)寄存器 91:协处理器访问控制(CPAC),偏移量 0xD88 (168)寄存器 92:浮点上下文控制(FPCC),偏移量 0xF34 (169)寄存器 93:浮点上下文访问(FPCA),偏移量 0xF38 (171)寄存器 94:浮点默认状态控制(FPDSC),偏移量 0xF3C (172)系统控制 (184)寄存器 1:器件标识 0(DID0),偏移量 0x000 (204)寄存器 2:器件标识寄存器 1(DID1),偏移量 0x004 (206)寄存器 3:掉电复位控制(PBORCTL),偏移量 0x030 (208)寄存器 4:原始中断状态(RIS),偏移量 0x050 (209)寄存器 5:中断屏蔽控制(IMC),偏移量 0x054 (211)寄存器 6:屏蔽的中断状态和清除(MISC),偏移量 0x058 (213)寄存器 7:复位原因(RESC),偏移量 0x05C (215)寄存器 8:运行模式时钟配置(RCC),偏移量 0x060 (217)寄存器 9:GPIO 高性能总线控制(GPIOHBCTL),偏移量 0x06C (221)寄存器 10:运行模式时钟配置 2(RCC2),偏移量 0x070 (223)寄存器 11:主振荡器控制(MOSCCTL),偏移量 0x07C (226)寄存器 12:深度睡眠时钟配置(DSLPCLKCFG),偏移量 0x144 (227)寄存器 13:系统属性寄存器(SYSPROP),偏移量 0x14C (229)寄存器 14:精确内部振荡器校准(PIOSCCAL),偏移量 0x150 (231)寄存器 15:PLL 频率寄存器 0(PLLFREQ0),偏移量 0x160 (232)寄存器 16:PLL 频率寄存器 1(PLLFREQ1),偏移量 0x164 (233)寄存器 17:PLL 状态寄存器(PLLSTAT),偏移量 0x168 (234)寄存器 18:睡眠功率配置寄存器(SLPPWRCFG),偏移量 0x188 (235)寄存器 19:深度睡眠功率配置寄存器(DSLPPWRCFG),偏移量 0x18C (236)寄存器 20:LDO 睡眠功率控制寄存器(LDOSPCTL),偏移量 0x1B4 (237)寄存器 21:LDO 睡眠功率校准寄存器(LDOSPCAL),偏移量 0x1B8 (239)寄存器 22:LDO 深度睡眠功率控制寄存器(LDODPCTL),偏移量 0x1BC (240)寄存器 23:LDO 深度睡眠功率校准寄存器(LDODPCAL),偏移量 0x1C0 (242)寄存器 24:睡眠/深度睡眠功率模式状态寄存器(SDPMST),偏移量 0x1CC (243)寄存器 25:看门狗定时器外设存在寄存器(PPWD),偏移量 0x300 (246)寄存器 26:16/32 位通用定时器外设存在寄存器(PPTIMER),偏移量 0x304 (247)寄存器 27:通用输入/输出外设存在寄存器(PPGPIO),偏移量 0x308 (249)寄存器 28:微型直接存储器访问外设存在寄存器(PPDMA),偏移量 0x30C (252)寄存器 29:休眠外设存在寄存器(PPHIB),偏移量 0x314 (253)寄存器 30:通用异步收发器外设存在寄存器(PPUART),偏移量 0x318 (254)寄存器 31:同步串行接口外设存在寄存器(PPSSI),偏移量 0x31C (256)寄存器 32:内部集成电路外设存在寄存器(PPI2C),偏移量 0x320 (257)寄存器 33:通用串行总线外设存在寄存器(PPUSB),偏移量 0x328 (259)寄存器 34:控制器局域网外设存在寄存器(PPCAN),偏移量 0x334 (260)寄存器 35:模数转换器外设存在寄存器(PPADC),偏移量 0x338 (261)寄存器 36:模拟比较器外设存在寄存器(PPACMP),偏移量 0x33C (262)寄存器 37:脉宽调解器外设存在寄存器(PPPWM),偏移量 0x340 (263)寄存器 38:正交编码器接口外设存在寄存器(PPQEI),偏移量 0x344 (264)寄存器 39:EEPROM 外设存在寄存器(PPEEPROM),偏移量 0x358 (265)寄存器 40:32/64 位宽通用定时器外设存在寄存器(PPWTIMER),偏移量 0x35C (266)寄存器 41:看门狗定时器软件复位寄存器(SRWD),偏移量 0x500 (268)寄存器 42:16/32 位通用定时器软件复位寄存器(SRTIMER),偏移量 0x504 (269)寄存器 43:通用输入/输出软件复位寄存器(SRGPIO),偏移量 0x508 (271)寄存器 44:微型直接存储器访问软件复位寄存器(SRDMA),偏移量 0x50C (273)寄存器 45:通用异步收发器软件复位寄存器(SRUART),偏移量 0x518 (274)寄存器 46:同步串行接口软件复位寄存器(SRSSI),偏移量 0x51C (276)寄存器 47:内部集成电路软件复位寄存器(SRI2C),偏移量 0x520 (278)寄存器 48:控制器局域网软件复位寄存器(SRCAN),偏移量 0x534 (280)寄存器 49:模数转换器软件复位寄存器(SRADC),偏移量 0x538 (281)寄存器 50:模数比较器软件复位寄存器(SRACMP),偏移量 0x53C (282)寄存器 51:EEPROM 软件复位寄存器(SREEPROM),偏移量 0x558 (283)寄存器 52:32/64 位宽通用定时器软件复位寄存器(SRWTIMER),偏移量 0x55C (284)寄存器 53:看门狗定时器运行模式时钟门控控制寄存器(RCGCWD),偏移量 0x600 (286)寄存器 54:16/32 位通用定时器运行模式时钟门控控制寄存器(RCGCTIMER),偏移量 0x604 (287)寄存器 55:通用输入/输出运行模式时钟门控控制寄存器(RCGCGPIO),偏移量 0x608 (289)寄存器 56:微型直接存储器访问运行模式时钟门控控制寄存器(RCGCDMA),偏移量 0x60C (291)寄存器 57:通用异步收发器运行模式时钟门控控制寄存器(RCGCUART),偏移量 0x618 (292)寄存器 58:同步串行接口运行模式时钟门控控制寄存器(RCGCSSI),偏移量 0x61C (294)寄存器 59:内部集成电路运行模式时钟门控控制寄存器(RCGCI2C),偏移量 0x620 (296)寄存器 60:控制器局域网运行模式时钟门控控制寄存器(RCGCCAN),偏移量 0x634 (298)寄存器 61:模数转换器运行模式时钟门控控制寄存器(RCGCADC),偏移量 0x638 (299)寄存器 62:模拟比较器运行模式时钟门控控制寄存器(RCGCACMP),偏移量 0x63C (300)寄存器 63:EEPROM 运行模式时钟门控控制寄存器(RCGCEEPROM),偏移量 0x658 (301)寄存器 64:32/64 位宽通用定时器运行模式时钟门控控制寄存器(RCGCWTIMER),偏移量0x65C (302)寄存器 65:看门狗定时器睡眠模式时钟门控控制寄存器(SCGCWD),偏移量 0x700 (304)寄存器 66:16/32 位通用定时器睡眠模式时钟门控控制寄存器(SCGCTIMER),偏移量 0x704 (305)寄存器 67:通用输入/输出睡眠模式时钟门控控制寄存器(SCGCGPIO),偏移量 0x708 (307)寄存器 68:微型直接存储器访问睡眠模式时钟门控控制寄存器(SCGCDMA),偏移量 0x70C (309)寄存器 69:通用异步收发器睡眠模式时钟门控控制寄存器(SCGCUART),偏移量 0x718 (310)。
1EVM Overview1.1Analog InterfaceUser's GuideSLAU185–August 2006Contents1EVM Overview ......................................................................................12EVM Operation ......................................................................................33AMC1210Modular EVM Bill of Materials ........................................................4The AMC1210modular evaluation module (EVM)provides four modulator channels from the ADS1204for the AMC1210.Two are designated for resolver applications and two are designated for current measurements.All interface modes of the AMC1210are provided.The new modular EVM form factor allows for direct evaluation of the AMC1210’s operating characteristics.This EVM is compatible with the HPA-MCU Interface Board from Texas Instruments.•Four modulator channels provided by ADS1204•All AMC1210interface modes available•Direct operation with a variety of DSK and microcontroller platforms from Texas Instruments •All four ADS1204channels have an input range of 0V to 5V.The AMC1210modular EVM is designed for easy interfacing to resolvers and current sensors.Connector J05is a 9-pole DSUB jack for easy connection to standard resolvers.To hold the floating resolver inputs to a predefined common mode level,a 2.5-V voltage is added on the resolver inputs.SignalDescription J05.1IN1+Positive sine wave input J05.2IN1–Negative sine wave input J05.3IN2+Positive cosine wave input J05.6PWM1Positive carrier wave output J05.7PWM2Negative carrier wave output J05.8IN2–Negative cosine wave input Shield PE Cable shieldAt the connectors J03and J04,analog current sensor signals can be connected.SignalDescription J03.1,J04.1IN3+,IN4+Positive current input signal J03.2,J04.2PE Cable shield J03.3,J04.3IN3–,IN4–Negative current input signalSLAU185–August 2006AMC1210EVM 11.2Digital InterfaceEVM OverviewJ07is a dummy connector for mechanical stability purposes only.The inputs of the ADS104are secured against voltage peaks through clamp diodes.The AMC1210modular EVM is designed for easy interfacing to multiple control platforms.Through theconnectors J09and J08,the AMC1210can be configured through a SPI interface from a F2812type DSK.SignalDescription J08.1CLK System clock J08.2SH2Sample-and-hold signal 2J08.7SH1Sample-and-hold signal 1J09.3SPICLK SPI clock J09.7SPISTE SPI frame sync J09.11SPIDIN SPI input data J09.13SPIDOUT SPI output data J09.14RST Asynchronous reset input J09.15ACK Data acknowledge output J09.19INT Interrupt outputThrough J08,J09,J10,and J11,the AMC1210can be configured through one of three differentmultiplexed parallel interface modes.Signal (1)Description J08.1CLK System clock J08.2SH2Sample-and-hold signal 2J08.7SH1Sample-and-hold signal 1J09.14RST Asynchronous reset input J10.1CS Chip select J10.3WR Write signal J10.5RD Read signal J11.1AD0Address/databus bit 0(LSB)J11.3AD1Address/databus bit 1J11.5AD2Address/databus bit 2J11.7AD3Address/databus bit 3J11.9AD4Address/databus bit 4J11.11AD5Address/databus bit 5J11.13AD6Address/databus bit 6J11.15AD7Address/databus bit 7(MSB)J09.15ACK Data acknowledge output J09.17ALE Address latch enable J09.19INT Interrupt output (1)All even pin numbers of the connectors J10,J11,J12,and J15are grounded.All digital signals can be accessed through the connectors J12,J13,J14,and J15on the top of the AMC1210modular EVM.The different signals are placed at the same position as the bottom-mounted connectors,see the preceding tables.For higher frequencies on the CLK input of the AMC1210,it could be possible to reduce the value of the series resistor R47.AMC1210EVM 2SLAU185–August 20061.3Power Supply 2EVM Operation EVM OperationThe AMC1210modular EVM requires two supply voltages and two optional supply voltages.A5-Vdc voltage is needed for the ADS1204and the core of the AMC1210.A variable supply in the range of2.7 Vdc to5Vdc is needed for the interface pins of the AMC1210.In addition,a±15-V supply is necessary if the PWM driver operational amplifier OPA1632is used.If the AMC1210modular EVM is used incombination with theBoard,J06provides connection to the common power busdescribed in the documentWhen used as a stand-alone EVM,the power supplies can be applied to J01and J02.While filters are provided for all four power supplies,optimal performance of the EVM requires a clean,well-regulatedpower source.To configure a desired interface mode of the AMC1210the jumpers JP09,JP10,and JP16are used.Jumper DescriptionJP09JP10JP16Open Open Open SPI interface modeOpen Closed Closed Parallel interface mode1Closed Open Closed Parallel interface mode2Closed Closed Closed Parallel interface mode3(Factory default condition)The jumpers JP01,JP06,and JP11determine the clocking scheme of the ADS1204.Jumper DescriptionJP01JP06JP111-2Closed Open Open The ADS1204gets the clock from AMC1210pin CLK4.2-3Closed Open Closed The ADS1204gets the system clock.(Factory default condition)2-3Closed Closed Open The ADS1204works with its internal clock.The jumpers JP07and JP08choose the driver of the PWM output pins for the resolver carrier signal.Jumper DescriptionJP07,JP081-2Closed The PWM signal is driven directly from the AMC1210.2-3Closed The PWM signal is driven by the operational amplifier OPA1632.(Factory default condition)The AMC1210can drive up to100mA directly from the pins PWM1and PWM2.The purpose of theoperational amplifier OPA1632is for the ability of filtering the carrier signal and still be capable of driving 85mA.If the OPA1632operational amplifier is not used,the±15-V supply can be left unconnected.In this case,it is recommenced to remove the resistors R24and R26to prevent latchup effects in the operational amplifier and nonlinearities on the PWM outputs.The jumpers JP02,JP03,JP04,and JP05determine if the current sensor signals will be buffered orconnected directly to the ADS1204inputs.Jumper DescriptionJP02,JP03,JP12,JP13,JP04,JP05JP14,JP151-2Closed Closed The current sensor signal is buffered.(Factory default condition)2-3Closed Open The current sensor signal is unbuffered.SLAU185–August2006AMC1210EVM3 AMC1210Modular EVM Bill of MaterialsThe ADS1204has a reference input pin for each channel and a reference output pin.This reference input pin normally is direct connected to the2.5-V reference output pin through a buffer and a RC-low-passfilter.If the input signal span is from either the resolver or the current sensor,a resistive divider can be added to reduce the reference voltage at the input pin.The resistor R53has to be soldered in to reduce the reference voltage for the resolver channels.The resistor R55has to be soldered in to reduce thereference voltage for the current sensor channels.3AMC1210Modular EVM Bill of MaterialsThe following table contains a complete bill of materials for the AMC1210EVM.Designators Description Manufacturer Mfg.Part Number C01,C14,C16,C25,C03410µF,size A,tantalum,16V,10%Kemet T491A106K016AS C02,C04,C06,C08,C09,100nF,0805,ceramic,50V,10%,X7R TDK C0805C104K5RAC C15,C17,C18,C20,C22,C26–30,C35,C36,C44C45C10–C1322pF,0805,ceramic,50V,10%,COG TDK C0805C220K5GAC C19,C2110µF,size C,tantalum,20V,10%Kemet T491C106K020AS C23,C241000pF,0805,ceramic,50V,10%,X7R TDK C0805C102K5RAC C31–C33,C4333µF,size D,tantalum,16V,10%Kemet T491D336K016AS C37–C421µF,0805,ceramic,16V,10%,X7R TDK C0805C105K4RAC D01Zener diode,7.5V,1.3W Fairchild BZX85C7V5D02,D03Zener diode,18V,1.3W Fairchild BZX85C18D04–D09,D15,D16Small signal diodes,SOT23Fairchild BAV99D10–D13LED,SMT1206,Green Kingbright KPTD-3216CGCK D14Zener diode,5.1V,1.3W Fairchild BZX85C_5V1F1-F4(Optional-not installed Filter,EMI suppression,0.5MHz-1GHz,50VDC,Murata BNX002-01on production EVMs)10AMJ01-J043Terminal screw connector OST ED1515J05DB9,RTANG RECPT0.318W/STD HDWR Assmann ADF09LLFJ06(bottom side)5pin,dual row,SMT socket Samtec SSW-105-F-D-VS-K J07–J10(bottom side)10pin,dual row,SMT socket Samtec SSW-110-F-D-VS-K J11(bottom side)16pin,dual row,SMT socket Samtec SSW-116-F-D-VS-K J12(top side)16pin,dual row,SMT header Samtec TSM-116-01-T-DV J13-J15(top side)10pin,dual row,SMT header Samtec TSM-110-01-T-DV JP01–JP05,JP07,JP083Pin header Samtec TSW-103-07-L-SJP06,JP09–JP162Pin header Samtec TSW-102-07-L-SR01,R04,R05,R08,R13,10.0Ω,0805,0.100W,1%Vishay/Dale CRCW080510R0F R16,R19,R22,R58,R59,R60–R65R02,R03,R06,R07 4.99kΩ,0805,0.10W,1%Vishay/Dale CRCW08054991F R11,R12,R14,R15,R17, 2.0kΩ,0805,0.100W,1%Vishay/Dale CRCW08052001F R18,R20,R21,R24,R26,R52,R54R23,R28,R29,R51,R56,R7410.0kΩ,0805,0.100W,1%Vishay/Dale CRCW08051002F R25,R27 2.49kΩ,0805,0.100W,1%Vishay/Dale CRCW08052491F R30–R39200Ω,0805,0.100W,1%Vishay/Dale CRCW08052000F R40–R46,R48,R72,R73 1.0kΩ,0805,0.100W,1%Vishay/Dale CRCW08051001F R47511Ω,0805,0.100W,1%Vishay/Dale CRCW08055110F R53,R55Not installedR57,R70,R71100kΩ,0805,0.100W,1%Vishay/Dale CRCW08051003F R66,R67 1.50kΩ,1206,0.125W,1%Vishay/Dale CRCW12061501F R68332Ω,1206,0.125W,1%Vishay/Dale CRCW12063320F4AMC1210EVM SLAU185–August20063.1AMC1210Modular EVM Schematic AMC1210Modular EVM Bill of MaterialsDesignators Description Manufacturer Mfg.Part Number R69511Ω,1206,0.125W,1%Vishay/Dale CRCW12065110F U01AMC1210Texas Instruments AMC1210RHAU02ADS1204Texas Instruments ADS1204IU03OPA4354Texas Instruments OPA4354UU04OPA2347Texas Instruments OPA2347UAU05-U07SN74LVC2G157Texas Instruments SN74LVC2G157DCT U08OPA1632Texas Instruments OPA1632UAThe schematic diagram is shown on the following page.SLAU185–August2006AMC1210EVM5EVALUATION BOARD/KIT IMPORTANT NOTICETexas Instruments(TI)provides the enclosed product(s)under the following conditions:This evaluation board/kit is intended for use for ENGINEERING DEVELOPMENT,DEMONSTRATION,OR EVALUATION PURPOSES ONLY and is not considered by TI to be a finished end-product fit for general consumer use.Persons handling the product(s)must have electronics training and observe good engineering practice standards.As such,the goods being provided are not intended to be complete in terms of required design-,marketing-,and/or manufacturing-related protective considerations, including product safety and environmental measures typically found in end products that incorporate such semiconductor components or circuit boards.This evaluation board/kit does not fall within the scope of the European Union directives regarding electromagnetic compatibility,restricted substances(RoHS),recycling(WEEE),FCC,CE or UL,and therefore may not meet the technical requirements of these directives or other related directives.Should this evaluation board/kit not meet the specifications indicated in the User’s Guide,the board/kit may be returned within30 days from the date of delivery for a full refund.THE FOREGOING WARRANTY IS THE EXCLUSIVE WARRANTY MADE BY SELLER TO BUYER AND IS IN LIEU OF ALL OTHER WARRANTIES,EXPRESSED,IMPLIED,OR STATUTORY,INCLUDING ANY WARRANTY OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE.The user assumes all responsibility and liability for proper and safe handling of the goods.Further,the user indemnifies TI from all claims arising from the handling or use of the goods.Due to the open construction of the product,it is the user’s responsibility to take any and all appropriate precautions with regard to electrostatic discharge.EXCEPT TO THE EXTENT OF THE INDEMNITY SET FORTH ABOVE,NEITHER PARTY SHALL BE LIABLE TO THE OTHER FOR ANY INDIRECT,SPECIAL,INCIDENTAL,OR CONSEQUENTIAL DAMAGES.TI currently deals with a variety of customers for products,and therefore our arrangement with the user is not exclusive.TI assumes no liability for applications assistance,customer product design,software performance,or infringement of patents or services described herein.Please read the User’s Guide and,specifically,the Warnings and Restrictions notice in the User’s Guide prior to handling the product.This notice contains important safety information about temperatures and information on TI’s environmental and/or safety programs,please contact the TI application engineer orNo license is granted under any patent right or other intellectual property right of TI covering or relating to any machine,process,or combination in which such TI products or services might be or are used.FCC WarningThis evaluation board/kit is intended for use for ENGINEERING DEVELOPMENT,DEMONSTRATION,OR EVALUATION PURPOSES ONLY and is not considered by TI to be a finished end-product fit for general consumer use.It generates,uses,and can radiate radio frequency energy and has not been tested for compliance with the limits of computing devices pursuant to part15 of FCC rules,which are designed to provide reasonable protection against radio frequency interference.Operation of this equipment in other environments may cause interference with radio communications,in which case the user at his own expense will be required to take whatever measures may be required to correct this interference.EVM WARNINGS AND RESTRICTIONSIt is important to operate this EVM within the input voltage range of+15V to-15V and the output voltage range of0V to5V. Exceeding the specified input range may cause unexpected operation and/or irreversible damage to the EVM.If there are questions concerning the input range,please contact a TI field representative prior to connecting the input power.Applying loads outside of the specified output range may result in unintended operation and/or possible permanent damage to the EVM.Please consult the EVM User's Guide prior to connecting any load to the EVM output.If there is uncertainty as to the load specification,please contact a TI field representative.During normal operation,some circuit components may have case temperatures greater than30°C.The EVM is designed to operate properly with certain components above60°C as long as the input and output ranges are maintained.These components include but are not limited to linear regulators,switching transistors,pass transistors,and current sense resistors.These types of devices can be identified using the EVM schematic located in the EVM User's Guide.When placing measurement probes near these devices during operation,please be aware that these devices may be very warm to the touch.Mailing Address:Texas Instruments,Post Office Box655303,Dallas,Texas75265Copyright©2006,Texas Instruments IncorporatedIMPORTANT NOTICETexas Instruments Incorporated and its subsidiaries(TI)reserve the right to make corrections,modifications,enhancements, improvements,and other changes to its products and services at any time and to discontinue any product or service without notice. Customers should obtain the latest relevant information before placing orders and should verify that such information is current and complete.All products are sold subject to TI’s terms and conditions of sale supplied at the time of order acknowledgment.TI warrants performance of its hardware products to the specifications applicable at the time of sale in accordance with TI’s standard warranty.Testing and other quality control techniques are used to the extent TI deems necessary to support this warranty.Except where mandated by government requirements,testing of all parameters of each product is not necessarily performed.TI assumes no liability for applications assistance or customer product design.Customers are responsible for their products and applications using TI components.To minimize the risks associated with customer products and applications,customers should provide adequate design and operating safeguards.TI does not warrant or represent that any license,either express or implied,is granted under any TI patent right,copyright,mask work right,or other TI intellectual property right relating to any combination,machine,or process in which TI products or services are rmation published by TI regarding third-party products or services does not constitute a license from TI to use such products or services or a warranty or endorsement e of such information may require a license from a third party under the patents or other intellectual property of the third party,or a license from TI under the patents or other intellectual property of TI. Reproduction of information in TI data books or data sheets is permissible only if reproduction is without alteration and is accompanied by all associated warranties,conditions,limitations,and notices.Reproduction of this information with alteration is an unfair and deceptive business practice.TI is not responsible or liable for such altered documentation.Resale of TI products or services with statements different from or beyond the parameters stated by TI for that product or service voids all express and any implied warranties for the associated TI product or service and is an unfair and deceptive business practice.TI is not responsible or liable for any such statements.TI products are not authorized for use in safety-critical applications(such as life support)where a failure of the TI product would reasonably be expected to cause severe personal injury or death,unless officers of the parties have executed an agreement specifically governing such use.Buyers represent that they have all necessary expertise in the safety and regulatory ramifications of their applications,and acknowledge and agree that they are solely responsible for all legal,regulatory and safety-related requirements concerning their products and any use of TI products in such safety-critical applications,notwithstanding any applications-related information or support that may be provided by TI.Further,Buyers must fully indemnify TI and its representatives against any damages arising out of the use of TI products in such safety-critical applications.TI products are neither designed nor intended for use in military/aerospace applications or environments unless the TI products are specifically designated by TI as military-grade or"enhanced plastic."Only products designated by TI as military-grade meet military specifications.Buyers acknowledge and agree that any such use of TI products which TI has not designated as military-grade is solely at the Buyer's risk,and that they are solely responsible for compliance with all legal and regulatory requirements in connection with such use.TI products are neither designed nor intended for use in automotive applications or environments unless the specific TI products are designated by TI as compliant with ISO/TS16949requirements.Buyers acknowledge and agree that,if they use anynon-designated products in automotive applications,TI will not be responsible for any failure to meet such requirements. Following are URLs where you can obtain information on other Texas Instruments products and application solutions:Products ApplicationsAmplifiers AudioData Converters AutomotiveDSP BroadbandInterface Digital ControlLogic MilitaryPower Mgmt Optical NetworkingMicrocontrollers SecurityRFID TelephonyLow Power Video&ImagingWirelessWirelessMailing Address:Texas Instruments,Post Office Box655303,Dallas,Texas75265Copyright©2007,Texas Instruments Incorporated。
开发板用户手册摘要:1.开发板简介2.开发板硬件配置3.软件开发环境搭建4.编程实例与实践5.常见问题与解决方案6.技术支持与资源正文:【开发板简介】开发板是一种集成了处理器、存储器、输入输出接口等多种功能于一体的计算机硬件平台,用于进行软硬件开发和测试。
本手册所介绍的开发板,具有强大的性能、丰富的外设接口以及易于使用的开发环境,是进行嵌入式系统开发、物联网应用、人工智能等领域开发的理想选择。
【开发板硬件配置】本开发板硬件配置如下:1.处理器:采用高性能的ARM 处理器,主频可达XXX MHz。
2.存储器:配备XXX MB 的DDR 内存和XXX MB 的Flash 存储,支持最大XXX MB 的MicroSD 卡扩展。
3.显示接口:支持XXX 分辨率的LCD 显示屏。
4.通信接口:具备以太网、蓝牙、Wi-Fi、LoRa 等多种通信方式。
5.输入输出接口:提供按键、LED 指示灯、串口、I2C、SPI、GPIO 等多种外设接口。
6.电源接口:支持DCXXXV 输入电压。
【软件开发环境搭建】为了方便开发者进行软件开发,我们提供了以下工具和资源:1.开发板固件:提供稳定可靠的Linux 操作系统和Android 操作系统固件。
2.编程工具:支持Keil、IAR 等主流的嵌入式开发环境。
3.调试工具:提供在线调试工具,支持断点调试、单步执行等功能。
4.开发库:提供丰富的开发库,包括网络通信、图形界面、文件系统等。
5.技术文档:提供详细的开发板用户手册、硬件参考手册、接口协议等文档。
【编程实例与实践】本手册提供了以下编程实例,供开发者学习和参考:1.LED 闪烁实验2.按键输入实验3.串口通信实验4.网络通信实验5.图形界面设计实验【常见问题与解决方案】在开发过程中,可能会遇到一些常见问题,如下所示:1.问题:无法启动开发板解决方案:检查电源线是否接触良好,检查开发板上的电源指示灯是否亮起。
2.问题:无法连接串口解决方案:检查串口线是否接触良好,尝试使用其他串口工具重新连接。
MOD-IOMOD-IO development boardUsers ManualAll boards produced by Olimex are ROHS compliantRev. B, September 2011Copyright(c) 2011, OLIMEX Ltd, All rights reservedPage 1–Programming of Flash, EEPROM, Fuses, and Lock Bits through the JTAG Interface–Peripheral Features–Two 8-bit Timer/Counters with Separate Prescalers and Compare Modes –One 16-bit Timer/Counter with Separate Prescaler, Compare Mode, and Capture Mode–Real Time Counter with Separate Oscillator–Four PWM Channels–8-channel, 10-bit ADC8 Single-ended Channels7 Differential Channels in TQFP Package Only2 Differential Channels with Programmable Gain at 1x, 10x, or 200x–Byte-oriented Two-wire Serial Interface–Programmable Serial USART–Master/Slave SPI Serial Interface–Programmable Watchdog Timer with Separate On-chip Oscillator–On-chip Analog Comparator–Special Microcontroller Features–Power-on Reset and Programmable Brown-out Detection–Internal Calibrated RC Oscillator–External and Internal Interrupt Sources–Six Sleep Modes: Idle, ADC Noise Reduction, Power-save, Power-down, Standby and Extended Standby–I/O and Packages–32 Programmable I/O Lines–Operating Voltages– 2.7 - 5.5V–Speed Grades–0 - 8 MHz–Power Consumption @ 1 MHz, 3V, and 25⋅C–Active: 1.1 mA–Idle Mode: 0.35 mA–Power-down Mode: < 1 µAPage 4Page 5MEMORY MAPPage 6Page 7POWER SUPPLY CIRCUITMOD-IO is typically power supplied with 8-30V DC.Power consumption when all relays are working is about 310 mA.CLOCK CIRCUITCrystal Quartz 8 MHz connected to Atmega16l pin 7 (XTAL2) and pin 8 (XTAL1).Crystal Quartz 32.768kHz connected to Atmega16L pin 25 ((TOSC1)PC6) and pin 26((TOSC2)PC7).RESET CIRCUITMOD-IO reset circuit includes Reset scheme MCP130T (U2), AVRISP connector pin5, JTAG connector pin 6, Atmega16L pin 4 (RESET), R9 (100Ohm), R10 (10k), C10(100nF) and RST button.connected to Atmega16L pin 11 ((INT0)PD2).– connected to Atmega16L pin 4 (RESET).– connected via R11 (330 Ohm) to Atmega16l – visualize input (IN1) state.– visualize input (IN2) state.– visualize input (IN3) state.– visualize input (IN4) state.– visualize relay (REL1) state.– visualize relay (REL2) state.– visualize relay (REL3) state.– visualize relay (REL4) state.shows that +3.3V voltage is applied toPage 13Disclaimer© 2011 Olimex Ltd. All rights reserved. Olimex®, logo and combinations thereof, are registered trademarks of Olimex Ltd. Other terms and product names may be trademarks of others.The information in this document is provided in connection with Olimex products. No license, express or implied or otherwise, to any intellectual property right is granted by this document or in connection with the sale of Olimex products.Neither the whole nor any part of the information contained in or the product described in this document may be adapted or reproduced in any material from except with the prior written permission of the copyright holder.The product described in this document is subject to continuous development and improvements. All particulars of the product and its use contained in this document are given by OLIMEX in good faith. However all warranties implied or expressed including but not limited to implied warranties of merchantability or fitness for purpose are excluded.This document is intended only to assist the reader in the use of the product. OLIMEX Ltd. shall not be liable for any loss or damage arising from the use of any information in this document or any error or omission in such information or any incorrect use of the product.Page 16MOD-IO。
TM4C123−EVM开发板用户手册V1.0兰博嵌入式电子科技2015年5月28日修订说明版本日期说明V1.0 2015.05.28 初稿3MDK5快速入门本章主要介绍四个部分内容,分别为MDK5集成开发环境简介、Stellaris ICDI驱动的安装、外设驱动库(TivaWare)的安装、创建工程项目与程序调试。
并以TM4C123-EVM开发板为例,介绍该集成开发环境下创建工程及调试工程的一些基本操作,使用户可以快速使用其开发项目。
MDK5简介MDK5是KEIL公司的新一代ARM集成开发环境,与上一代产品MDK4、MDK3相比,其结构有重大变化,且有许多新的特性。
目前,MDK5的最新版本为MDK5.14,该版本使用Keil μVision5集成开发环境,是目前针对ARM处理器,尤其是Cortex M内核的MCU的最佳开发工具。
MDK5由两部分组成,分别是MDK Core和Software Packs。
其中,MDK Core由四个部分组成,如图 3-1所示,它们分别是μVision® IDE with Editor(编辑器)、ARM C/C++ Compiler (编译器)、Pack Installer(包安装器)与μVision® Debugger with Trace(调试跟踪器)。
μVision IDE从MDK4.7版本开始就加入了代码提示功能和语法动态检测等实用功能,相对于以往的IDE改进了许多。
图3-1 MDK Core组成Software Packs(包安装器)包含三个部分,如图 3-2所示,它们分别是Device(芯片支持)、CMSIS(ARM Cortex Microcontroller Software Interface Standard,ARM Cortex TM微控制器软件接口标准)和MDK Professional Middleware(MDK专业中间件)。
通过包安装器,我们可以安装最新的组件,从而支持新的器件、提供新的设备驱动库与最新的例程等,加速产品开发进度。
其中,CMSIS是ARM公司为了让各家芯片公司生产的Cortex-M4芯片能够在软件上基本兼容,与芯片生产商共同提出的一套软件接口标准。
图3-2 Software Packs组成同以往的MDK版本不同,以往的MDK把所有的组件都包含在一个安装包里面,显得十分“笨重”,MDK5则不一样,MDK Core是一个独立的安装包,它并不包含期间支持、设备驱动、CMSIS等组件,大小才300MB左右,相对于500多MB的MDK4.70A,瘦身很明显。
而器件支持、设备驱动与CMSIS组件则可根据需要点击MDK5软件界面上“Pack Installer”进行安装。
为了兼容MDK3、MDK4等低版本的工程文件,MDK5提供了“MDKCM514.exe”或更新版本的安装包,用户可基本不加修改的使用低版本的工程文件,这大大方便了用户项目开发和维护。
有关MDK5的详细说明,请参看MDK5的“μVision Help”文件。
MDK5.14可从光盘或Keil网站获取,其安装方法请参考“MDK5.14安装指南”。
3.2 安装Stellaris ICDI驱动MDK5已集成了 Stellaris ICDI的驱动,当您将ICDI与电脑相连时,系统会自动识别该硬件。
如果系统无法完成自动识别,您可以参考下面安装过程进行手动安装即可。
首先,我们将驱动文件“Stellaris_FTDI-2_06_00.zip”解压到“D:\ Stellaris_FTDI-2_06_00”目录下(如有新的驱动文件,请作相应修改即可)。
然后,将Stellaris ICDI的USB连接线插入电脑,这时电脑找到新的硬件,如图 3-3所示。
这里我们选择从指定的位置安装驱动。
图 3-3 硬件向导单击“下一步”按钮,找到Stellaris ICDI的驱动文件目录,如图 3-4所示。
图 3-4 驱动程序文件夹点击“确定”按钮,然后出现图 3-5,系统已找到新硬件“Stellaris ICDI Board A”,并完成驱动安装。
图 3-5 找到Stellaris ICDI Board A单击“完成”按钮后,系统在指定的目录下自动安装“Stellaris ICDI Board B”的硬件驱动,出现图 3-6所示界面。
图 3-6 找到USB Serial Port同样,我们选择从指定位置安装驱,路经同上。
单击确定按钮后,出现图 3-7。
这样,我们就完成了Stellaris ICDI的驱动安装。
图 3-7 找到Stellaris ICDI COM Port3.3外设驱动库(TivaWare)Texas Instruments® TivaWare™是针对TivaC系列微处理器的一套软件开发包。
该软件实质上是一个程序库,可以将微处理器所执行的常用基础操作指令模块化、函数化,免去了开发过程中可能出现的冗长代码和繁琐的工作,减少出错的几率,从而加快开发进程。
针对TM4C123x与TM4C129x两大系列Cortex M4 MCU,所提供的外设驱动库软件分别是TivaWare_C_Series-1.0版(针对TM4C123x系列MCU)和TivaWare_C_Series-2.0.1.11577版(针对TM4C129x系列MCU)。
这两个驱动库没有本质区别,只是外设资源多少不同。
建议用户在开发TM4C123x系列MCU时采用TivaWare_C_Series-1.0版或更新版本,而在开发M4C129x系列MCU时采用TivaWare_C_Series-2.0.1.11577版或更新版本。
目前,TivaWare的最新版本分别为TivaWare_C_Series-1.0版(针对TM4C123x系列MCU)与TivaWare_C_Series-2.0.1.11577版(针对TM4C129x系列MCU),它们的安装源文件分别为“SW-EK-TM4C123GXL-1.0.exe”和“SW-DK-TM4C129X-2.0.1.11577.exe”。
双击该安装文件,出现相关界面,我们修改安装路径将其安装在“D:\”盘根目录下即可。
安装过程比较简单,这里不再详述。
3.4创建工程项目与程序调试完成了前三节的软件安装之后,我们就可以进行创建工程项目与程序调试了。
首先,我们来看一看如何创建一个工程。
3.4.1创建一个工程双击桌面的Keil uVision5快捷方式,打开Keil MDK5的开发环境,如图 3-8所示。
这里默认已安装好必要的Software Packs(软件开发包)。
图3-8 Keil MDK5初始界面单击菜单“Project”,从中的选择“New μVision Project…”命令,弹出图3-15“Create New Project”界面。
这时要设定该工程的路径和名称,习惯上,我们将存储工程的文件夹名称与工程项目的名称设为同一名字,这里设为“blinky”。
该工程采用设置寄存器的MCU常用编程方式来完成LED灯闪烁任务,该方法的特点是每个外设都是通过寄存器进行直接设置,代码效率高,但程序可读性不高,开发效率较低。
针对Cortex-M4,TI提供了专门外设驱动库TivaWare,用户利用该驱动库会很方便进行工程设计,加速项目开发。
下一章,我们会专门介绍TivaWare 的使用方法。
另外,在“Project”菜单下,还有一个“New Multi-Project Workspace…”命令,该命令是用来创建一个新的多工程的工作空间。
当一个项目中有多个工程文件时,这种方法利于管理。
图 3-9 创建新工程项目的命令单击“保存(S)”按钮,出现选择该工程所用器件的界面,如图 3-11所示。
图 3-11 选择该工程所用的器件我们用的处理器是TI公司的TM4C123BHPM,在左侧选择栏中找到TI公司下的Tiva C Series中TM4C123BHPM,然后单击“OK”按钮,这时出现询问是否需要进行运行环境管理的界面,如图 3-12所示。
我们不做任何改变,直接点击“OK”按钮即可。
这时出现创建好的空工程文件,如图 3-13所示。
图 3-12 运行环境管理图 3-13 新建工程界面在上图中,习惯上我们将左侧“Project”中的“Target 1”重新命名为“blinky”与工程同名。
为了便于文件管理和增强工程的可读性,我们对“blinky”下的文件组别进行重新分类。
用鼠标右键单击“blinky”,如图 3-14所示。
图 3-14 工程文件组别管理命令这里有两种文件组别管理方式,分别是“Add Group…”和“Manage Project Items…”。
这里我们以第二种方式为例进行说明。
单击“Manage Project Items…”命令,弹出如图 3-15所示的交互界面。
首先,将“Source Group 1”重命名为“Source”,该组用于存放工程源文件,包括C语言程序(*.c/*.cpp)、汇编语言程序(*.asm)与工程配置文件(*.s)等。
然后,单击图中圆圈处的插入新组的命令,然后将其命令为“Documentation”,该组用于存放工程说明文件。
修改之后如图 3-16所示。
图 3-15 工程文件组别管理界面图 3-16 工程文件管理——增加组别在图 3-17图 3-16中,单击“Add Files…”命令按钮,给“Source”组添加“blinky.c”和“startup_rvmdk.S”文件,为“Documentation”组添加“readme.txt”文件。
添加之后,如图 3-17所示。
图 3-17工程文件管理——添加文件在编辑好工程项目所需的文件之后,需要对工程进行编译、链接生成目标代码,然后进行硬件调试或模拟仿真。
在此之前,还需要对工程进行配置。
单击菜单栏中“Project”,从中选择“Options for Target ‘blinky’…”命令或单击快捷命令按钮,这时弹出如图 3-18所示。
一般情况下,只需要对其中的“Output”、“User”、“C/C++”、“Debug”与“Utilities”选项卡进行相关设置,其余保留默认设置即可。
下面分别进行介绍。
图 3-18 工程编译、链接参数设置单击“Output”选项,出现图 3-19设置界面。
这是用来设置输出文件的格式,一般情况我们只需按默认设置即可。
根据需要,我们也可以选择“Create Libray”选项让工程项目生成库文件。
图 3-19 输出格式设置单击“User”选项,出现图 3-20用户命令设置界面。
在脱离集成开发环境进行程序下载时,一般需要二进制格式的文件。