没有合适的资源?快使用搜索试试~ 我知道了~
首页MSP432P4xx微控制器软件编程指南
MSP432P4xx微控制器软件编程指南
需积分: 10 3 下载量 201 浏览量
更新于2024-07-15
收藏 6.71MB PDF 举报
"MSP432P4xxSimpleLink™Microcontrollers 技术参考手册"
MSP432P4xx系列微控制器是Texas Instruments(TI)推出的一款基于ARM Cortex-M4F处理器的高性能微控制器。该用户指南,即SLAU356I,提供了关于MSP432的详尽软件编程指导,涵盖了时钟系统、I/O管脚模式、定时器等多个关键模块。这份文档是针对MSP432进行软件开发的宝贵参考资料。
1. Cortex-M4F处理器
- 引言:这部分介绍Cortex-M4F处理器的基础知识,包括其设计目标和应用领域。
- 块图:展示Cortex-M4F处理器的内部结构,帮助理解各个组件的功能和相互关系。
- 概览:阐述处理器的总线接口、集成可配置调试功能以及Cortex-M4F系统的详细组件。
2. 编程模型
- 处理器模式和软件执行的权限级别:详细解释了处理器在不同模式下(如线程模式和中断模式)的运行方式和权限差异。
- 栈:描述了程序如何使用栈来存储数据,包括主栈和进程栈。
- 寄存器映射:列出所有通用寄存器和特殊功能寄存器,以及它们的作用。
- 寄存器描述:提供每个寄存器的具体功能和用法。
- 异常和中断:详述了处理器如何处理异常和中断,包括中断向量表的结构和中断服务例程的执行流程。
- 数据类型:定义了处理器支持的各种数据类型,如整型、浮点型等。
3. 内存模型
- 内存区域、类型和属性:说明了内存的不同区域(如闪存、RAM等)及其访问特性。
- 内存系统访问顺序:讨论了内存访问的顺序规则,以确保数据一致性。
- 内存访问行为:描述了读写操作对数据的影响。
- 软件访问顺序:解释了如何通过软件控制内存访问的顺序。
- 位带技术:介绍了一种高效管理小粒度内存资源的方法。
- 数据存储:涵盖了数据在内存中的存储方式和策略。
4. 异常模型
- 异常状态:定义了处理器在处理异常时的状态变化。
- 异常类型:列出了各种可能的异常,如预取错误、系统调用等。
- 异常处理程序:解释了如何定义和调用异常处理函数。
- 中断向量表:描述了中断向量表的布局和功能。
该文档对于理解MSP432P4xx系列微控制器的硬件特性和软件开发至关重要,无论是初学者还是经验丰富的开发者,都能从中获取到有价值的信息,以便更有效地利用MSP432进行项目开发。通过深入学习,开发者可以掌握如何利用Cortex-M4F处理器的高级功能,如浮点运算单元(FPU)、中断管理以及高效的内存访问策略,从而优化代码性能并实现复杂的系统设计。
www.ti.com
16
SLAU356I–March 2015–Revised June 2019
Submit Documentation Feedback
Copyright © 2015–2019, Texas Instruments Incorporated
Contents
25.3.2 Character Format ............................................................................................... 937
25.3.3 Master Mode .................................................................................................... 937
25.3.4 Slave Mode...................................................................................................... 938
25.3.5 SPI Enable....................................................................................................... 939
25.3.6 Serial Clock Control ............................................................................................ 939
25.3.7 Using the SPI Mode With Low-Power Modes............................................................... 940
25.3.8 SPI Interrupts.................................................................................................... 940
25.4 eUSCI_A SPI Registers.................................................................................................. 942
25.4.1 UCAxCTLW0 Register ......................................................................................... 943
25.4.2 UCAxBRW Register ............................................................................................ 944
25.4.3 UCAxSTATW Register......................................................................................... 945
25.4.4 UCAxRXBUF Register ......................................................................................... 946
25.4.5 UCAxTXBUF Register ......................................................................................... 947
25.4.6 UCAxIE Register................................................................................................ 948
25.4.7 UCAxIFG Register.............................................................................................. 949
25.4.8 UCAxIV Register................................................................................................ 950
25.5 eUSCI_B SPI Registers.................................................................................................. 951
25.5.1 UCBxCTLW0 Register ......................................................................................... 952
25.5.2 UCBxBRW Register ............................................................................................ 953
25.5.3 UCBxSTATW Register......................................................................................... 953
25.5.4 UCBxRXBUF Register ......................................................................................... 954
25.5.5 UCBxTXBUF Register ......................................................................................... 954
25.5.6 UCBxIE Register ............................................................................................... 955
25.5.7 UCBxIFG Register.............................................................................................. 955
25.5.8 UCBxIV Register................................................................................................ 956
26 Enhanced Universal Serial Communication Interface (eUSCI) – I
2
C Mode ................................ 957
26.1 Enhanced Universal Serial Communication Interface B (eUSCI_B) Overview ................................... 958
26.2 eUSCI_B Introduction – I
2
C Mode...................................................................................... 958
26.3 eUSCI_B Operation – I
2
C Mode ........................................................................................ 959
26.3.1 eUSCI_B Initialization and Reset............................................................................. 960
26.3.2 I
2
C Serial Data .................................................................................................. 960
26.3.3 I
2
C Addressing Modes ......................................................................................... 961
26.3.4 I
2
C Module Operating Modes ................................................................................. 962
26.3.5 Glitch Filtering ................................................................................................... 972
26.3.6 I
2
C Clock Generation and Synchronization.................................................................. 972
26.3.7 Byte Counter .................................................................................................... 973
26.3.8 Multiple Slave Addresses...................................................................................... 974
26.3.9 Using the eUSCI_B Module in I
2
C Mode With Low-Power Modes....................................... 975
26.3.10 eUSCI_B Interrupts in I
2
C Mode ............................................................................ 975
26.4 eUSCI_B I2C Registers.................................................................................................. 977
26.4.1 UCBxCTLW0 Register ......................................................................................... 978
26.4.2 UCBxCTLW1 Register ......................................................................................... 980
26.4.3 UCBxBRW Register ............................................................................................ 982
26.4.4 UCBxSTATW.................................................................................................... 982
26.4.5 UCBxTBCNT Register ......................................................................................... 983
26.4.6 UCBxRXBUF Register ......................................................................................... 984
26.4.7 UCBxTXBUF .................................................................................................... 984
26.4.8 UCBxI2COA0 Register......................................................................................... 985
26.4.9 UCBxI2COA1 Register......................................................................................... 986
26.4.10 UCBxI2COA2 Register ....................................................................................... 986
26.4.11 UCBxI2COA3 Register ....................................................................................... 987
26.4.12 UCBxADDRX Register ....................................................................................... 987
26.4.13 UCBxADDMASK Register ................................................................................... 988
www.ti.com
17
SLAU356I–March 2015–Revised June 2019
Submit Documentation Feedback
Copyright © 2015–2019, Texas Instruments Incorporated
Contents
26.4.14 UCBxI2CSA Register ......................................................................................... 988
26.4.15 UCBxIE Register .............................................................................................. 989
26.4.16 UCBxIFG Register ............................................................................................ 991
26.4.17 UCBxIV Register .............................................................................................. 993
27 LCD_F Controller.............................................................................................................. 994
27.1 LCD_F Controller Introduction .......................................................................................... 995
27.1.1 Introduction ...................................................................................................... 995
27.1.2 Features.......................................................................................................... 995
27.1.3 Functional Block Diagram ..................................................................................... 996
27.2 LCD_F Controller Architecture and Operation ........................................................................ 997
27.2.1 Power Management ........................................................................................... 997
27.2.2 Clock System.................................................................................................... 997
27.2.3 Interrupts......................................................................................................... 997
27.2.4 Memory .......................................................................................................... 998
27.2.5 LCD_F Functional Operation.................................................................................. 999
27.3 LCD_F Registers ........................................................................................................ 1015
27.3.1 LCDCTL Register ............................................................................................. 1021
27.3.2 LCDBMCTL Register ......................................................................................... 1023
27.3.3 LCDVCTL Register............................................................................................ 1025
27.3.4 LCDPCTL0 Register .......................................................................................... 1026
27.3.5 LCDPCTL1 Register .......................................................................................... 1030
27.3.6 LCDCSSEL0 Register ........................................................................................ 1034
27.3.7 LCDCSSEL1 Register ........................................................................................ 1037
27.3.8 LCDANMCTL Register ....................................................................................... 1040
27.3.9 LCDIE Register ................................................................................................ 1042
27.3.10 LCDIFG Register ............................................................................................ 1043
27.3.11 LCDSETIFG Register ....................................................................................... 1044
27.3.12 LCDCLRIFG Register ....................................................................................... 1045
27.3.13 LCDM[index] Register....................................................................................... 1046
27.3.14 LCDBM[index] Register ..................................................................................... 1048
27.3.15 LCDANM[index] Register ................................................................................... 1050
Revision History ...................................................................................................................... 1052
www.ti.com
18
SLAU356I–March 2015–Revised June 2019
Submit Documentation Feedback
Copyright © 2015–2019, Texas Instruments Incorporated
List of Figures
List of Figures
1-1. CPU Block Diagram........................................................................................................ 53
1-2. Cortex-M4F Register Set.................................................................................................. 56
1-3. Bit-Band Mapping .......................................................................................................... 64
1-4. Data Storage................................................................................................................ 65
1-5. Vector Table ................................................................................................................ 68
1-6. Exception Stack Frame.................................................................................................... 71
2-1. SRD Use Example ......................................................................................................... 88
2-2. FPU Register Bank......................................................................................................... 89
2-3. TPIU Block Diagram ....................................................................................................... 92
2-4. FPCCR Register............................................................................................................ 94
2-5. FPCAR Register............................................................................................................ 95
2-6. FPDSCR Register.......................................................................................................... 96
2-7. MVFR0 Register............................................................................................................ 97
2-8. MVFR1 Register............................................................................................................ 98
2-9. TYPE Register ............................................................................................................ 100
2-10. CTRL Register ............................................................................................................ 101
2-11. RNR Register.............................................................................................................. 102
2-12. RBAR Register............................................................................................................ 103
2-13. RASR Register............................................................................................................ 104
2-14. RBAR_A1 Register ....................................................................................................... 106
2-15. RASR_A1 Register ....................................................................................................... 107
2-16. RBAR_A2 Register ....................................................................................................... 109
2-17. RASR_A2 Register ....................................................................................................... 110
2-18. RBAR_A3 Register ....................................................................................................... 112
2-19. RASR_A3 Register ....................................................................................................... 113
2-20. ISER0 Register............................................................................................................ 116
2-21. ISER1 Register............................................................................................................ 116
2-22. ICER0 Register ........................................................................................................... 117
2-23. ICER1 Register ........................................................................................................... 117
2-24. ISPR0 Register............................................................................................................ 118
2-25. ISPR1 Register............................................................................................................ 118
2-26. ICPR0 Register ........................................................................................................... 119
2-27. ICPR1 Register ........................................................................................................... 119
2-28. IABR0 Register............................................................................................................ 120
2-29. IABR1 Register............................................................................................................ 120
2-30. IPR0 Register ............................................................................................................. 121
2-31. IPR1 Register ............................................................................................................. 121
2-32. IPR2 Register ............................................................................................................. 122
2-33. IPR3 Register ............................................................................................................. 122
2-34. IPR4 Register ............................................................................................................. 123
2-35. IPR5 Register ............................................................................................................. 123
2-36. IPR6 Register ............................................................................................................. 124
2-37. IPR7 Register ............................................................................................................. 124
2-38. IPR8 Register ............................................................................................................. 125
2-39. IPR9 Register ............................................................................................................. 125
2-40. IPR10 Register............................................................................................................ 126
2-41. IPR11 Register............................................................................................................ 126
www.ti.com
19
SLAU356I–March 2015–Revised June 2019
Submit Documentation Feedback
Copyright © 2015–2019, Texas Instruments Incorporated
List of Figures
2-42. IPR12 Register............................................................................................................ 127
2-43. IPR13 Register............................................................................................................ 127
2-44. IPR14 Register............................................................................................................ 128
2-45. IPR15 Register............................................................................................................ 128
2-46. STIR Register ............................................................................................................. 129
2-47. STCSR Register .......................................................................................................... 131
2-48. STRVR Register .......................................................................................................... 132
2-49. STCVR Register .......................................................................................................... 133
2-50. STCR Register ............................................................................................................ 134
2-51. CPUID Register ........................................................................................................... 136
2-52. ICSR Register ............................................................................................................. 137
2-53. VTOR Register............................................................................................................ 139
2-54. AIRCR Register ........................................................................................................... 140
2-55. SCR Register.............................................................................................................. 142
2-56. CCR Register.............................................................................................................. 143
2-57. SHPR1 Register .......................................................................................................... 144
2-58. SHPR2 Register .......................................................................................................... 145
2-59. SHPR3 Register .......................................................................................................... 146
2-60. SHCSR Register .......................................................................................................... 147
2-61. CFSR Register ............................................................................................................ 149
2-62. HFSR Register ............................................................................................................ 151
2-63. DFSR Register ............................................................................................................ 152
2-64. MMFAR Register.......................................................................................................... 153
2-65. BFAR Register ............................................................................................................ 154
2-66. AFSR Register ............................................................................................................ 155
2-67. PFR0 Register............................................................................................................. 156
2-68. PFR1 Register............................................................................................................. 157
2-69. DFR0 Register ............................................................................................................ 158
2-70. AFR0 Register............................................................................................................. 159
2-71. MMFR0 Register.......................................................................................................... 160
2-72. MMFR1 Register.......................................................................................................... 161
2-73. MMFR2 Register.......................................................................................................... 162
2-74. MMFR3 Register.......................................................................................................... 163
2-75. ISAR0 Register............................................................................................................ 164
2-76. ISAR1 Register............................................................................................................ 165
2-77. ISAR2 Register............................................................................................................ 166
2-78. ISAR3 Register............................................................................................................ 167
2-79. ISAR4 Register............................................................................................................ 168
2-80. CPACR Register .......................................................................................................... 169
2-81. ICTR Register ............................................................................................................. 171
2-82. ACTLR Register........................................................................................................... 172
2-83. DHCSR Register.......................................................................................................... 174
2-84. DCRSR Register.......................................................................................................... 176
2-85. DCRDR Register.......................................................................................................... 177
2-86. DEMCR Register.......................................................................................................... 178
2-87. FP_CTRL Register ....................................................................................................... 181
2-88. FP_REMAP Register..................................................................................................... 182
2-89. FP_COMP0 Register..................................................................................................... 183
2-90. FP_COMP1 Register..................................................................................................... 184
www.ti.com
20
SLAU356I–March 2015–Revised June 2019
Submit Documentation Feedback
Copyright © 2015–2019, Texas Instruments Incorporated
List of Figures
2-91. FP_COMP2 Register..................................................................................................... 185
2-92. FP_COMP3 Register..................................................................................................... 186
2-93. FP_COMP4 Register..................................................................................................... 187
2-94. FP_COMP5 Register..................................................................................................... 188
2-95. FP_COMP6 Register..................................................................................................... 189
2-96. FP_COMP7 Register..................................................................................................... 190
2-97. CTRL Register ............................................................................................................ 192
2-98. CYCCNT Register ........................................................................................................ 194
2-99. CPICNT Register ......................................................................................................... 195
2-100. EXCCNT Register ........................................................................................................ 196
2-101. SLEEPCNT Register ..................................................................................................... 197
2-102. LSUCNT Register......................................................................................................... 198
2-103. FOLDCNT Register....................................................................................................... 199
2-104. PCSR Register............................................................................................................ 200
2-105. COMP0 Register.......................................................................................................... 201
2-106. MASK0 Register .......................................................................................................... 202
2-107. FUNCTION0 Register .................................................................................................... 203
2-108. COMP1 Register.......................................................................................................... 205
2-109. MASK1 Register .......................................................................................................... 206
2-110. FUNCTION1 Register .................................................................................................... 207
2-111. COMP2 Register.......................................................................................................... 209
2-112. MASK2 Register .......................................................................................................... 210
2-113. FUNCTION2 Register .................................................................................................... 211
2-114. COMP3 Register.......................................................................................................... 213
2-115. MASK3 Register .......................................................................................................... 214
2-116. FUNCTION3 Register .................................................................................................... 215
2-117. STIM0 Register ........................................................................................................... 218
2-118. STIM1 Register ........................................................................................................... 219
2-119. STIM2 Register ........................................................................................................... 220
2-120. STIM3 Register ........................................................................................................... 221
2-121. STIM4 Register ........................................................................................................... 222
2-122. STIM5 Register ........................................................................................................... 223
2-123. STIM6 Register ........................................................................................................... 224
2-124. STIM7 Register ........................................................................................................... 225
2-125. STIM8 Register ........................................................................................................... 226
2-126. STIM9 Register ........................................................................................................... 227
2-127. STIM10 Register .......................................................................................................... 228
2-128. STIM11 Register .......................................................................................................... 229
2-129. STIM12 Register .......................................................................................................... 230
2-130. STIM13 Register .......................................................................................................... 231
2-131. STIM14 Register .......................................................................................................... 232
2-132. STIM15 Register .......................................................................................................... 233
2-133. STIM16 Register .......................................................................................................... 234
2-134. STIM17 Register .......................................................................................................... 235
2-135. STIM18 Register .......................................................................................................... 236
2-136. STIM19 Register .......................................................................................................... 237
2-137. STIM20 Register .......................................................................................................... 238
2-138. STIM21 Register .......................................................................................................... 239
2-139. STIM22 Register .......................................................................................................... 240
剩余1052页未读,继续阅读
2020-10-03 上传
2020-03-25 上传
2009-09-03 上传
2015-06-30 上传
2020-03-08 上传
点击了解资源详情
点击了解资源详情
点击了解资源详情
点击了解资源详情
CyuAlibi
- 粉丝: 5
- 资源: 17
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- JHU荣誉单变量微积分课程教案介绍
- Naruto爱好者必备CLI测试应用
- Android应用显示Ignaz-Taschner-Gymnasium取消课程概览
- ASP学生信息档案管理系统毕业设计及完整源码
- Java商城源码解析:酒店管理系统快速开发指南
- 构建可解析文本框:.NET 3.5中实现文本解析与验证
- Java语言打造任天堂红白机模拟器—nes4j解析
- 基于Hadoop和Hive的网络流量分析工具介绍
- Unity实现帝国象棋:从游戏到复刻
- WordPress文档嵌入插件:无需浏览器插件即可上传和显示文档
- Android开源项目精选:优秀项目篇
- 黑色设计商务酷站模板 - 网站构建新选择
- Rollup插件去除JS文件横幅:横扫许可证头
- AngularDart中Hammock服务的使用与REST API集成
- 开源AVR编程器:高效、低成本的微控制器编程解决方案
- Anya Keller 图片组合的开发部署记录
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功