没有合适的资源?快使用搜索试试~ 我知道了~
首页MSP430FR微控制器用户指南:系统复位、中断和工作模式
MSP430FR微控制器用户指南:系统复位、中断和工作模式
需积分: 12 4 下载量 85 浏览量
更新于2024-07-17
收藏 6.34MB PDF 举报
"MSP430FR6989等 User's Guide.pdf" 是Texas Instruments公司关于MSP430FR系列微控制器的用户指南,涵盖了MSP430FR58xx, MSP430FR59xx, 和 MSP430FR6xx 家族的详细信息。该文档的文学编号为SLAU367O,初次发布于2012年10月,最后修订于2017年12月。
文档主要内容包括系统复位、中断、操作模式和系统控制模块(SYS)。以下是对这些主题的详细解释:
1. **系统控制模块(SYS)**:SYS模块是微控制器的核心组件,负责管理和协调系统的各种操作。它包含用于设备初始化和复位的子系统。
- **系统复位和初始化**:在系统复位后,设备会处于特定的初始状态,确保每次启动时的一致性。
- **中断**:中断是处理器响应外部或内部事件的方式。中断系统分为两类:非屏蔽中断(NMI)和可屏蔽中断。
- **非屏蔽中断(NMI)**:这些中断优先级最高,不能被其他中断阻塞。
- **SNMI定时**:描述了系统非屏蔽中断的响应时间要求。
- **可屏蔽中断**:这些中断可以被其他更高优先级的中断打断。
- **中断处理**:详细介绍了中断服务例程(ISR)的工作原理。
- **中断嵌套**:当一个中断处理过程中发生另一个中断时,如何管理中断层次结构。
- **中断向量**:中断向量是中断服务程序在内存中的位置。
2. **操作模式**:MSP430FR系列提供了多种低功耗模式,以适应不同应用需求。
- **低功耗模式**:如LPM0到LPM4,以及LPM3.5和LPM4.5,它们允许在不使用某些系统组件时降低功耗。
- **进入和退出低功耗模式**:描述了如何在代码中控制这些模式的切换。
- **LPM3.5和LPM4.5**:这些模式提供更深的睡眠状态,进一步降低功耗。
3. **低功耗应用原理**:讨论了在设计低功耗应用时需要考虑的关键因素。
4. **未使用的引脚连接**:当不使用某些I/O引脚时,如何正确配置它们以防止意外电流消耗。
5. **复位引脚(RST/NMI)配置**:RST/NMI引脚可以设置为复位功能或非屏蔽中断功能,其配置对系统的稳定性至关重要。
6. **JTAG引脚配置**:JTAG接口用于调试和测试,文档中会说明如何配置相关引脚以满足开发需求。
这份用户指南对于开发者来说是宝贵的参考资料,它详尽地介绍了MSP430FR系列微控制器的操作和优化,特别是针对低功耗应用的设计策略。
www.ti.com
16
SLAU367O–October 2012–Revised December 2017
Submit Documentation Feedback
Copyright © 2012–2017, Texas Instruments Incorporated
Contents
32.4.15 UCBxIE Register .............................................................................................. 853
32.4.16 UCBxIFG Register ............................................................................................ 855
32.4.17 UCBxIV Register .............................................................................................. 857
33 REF_A............................................................................................................................. 858
33.1 REF_A Introduction....................................................................................................... 859
33.2 Principle of Operation .................................................................................................... 860
33.2.1 Low-Power Operation .......................................................................................... 860
33.2.2 Reference System Requests.................................................................................. 860
33.3 REF_A Registers ......................................................................................................... 862
33.3.1 REFCTL0 Register (offset = 00h) [reset = 0000h] ......................................................... 863
34 ADC12_B ......................................................................................................................... 865
34.1 ADC12_B Introduction ................................................................................................... 866
34.2 ADC12_B Operation...................................................................................................... 868
34.2.1 12-Bit ADC Core ................................................................................................ 868
34.2.2 ADC12_B Inputs and Multiplexer............................................................................. 869
34.2.3 Voltage References ............................................................................................ 869
34.2.4 Auto Power Down .............................................................................................. 870
34.2.5 Sample Frequency Mode Selection .......................................................................... 870
34.2.6 Sample and Conversion Timing .............................................................................. 870
34.2.7 Conversion Memory ............................................................................................ 873
34.2.8 ADC12_B Conversion Modes................................................................................. 874
34.2.9 Operation in LPM3 and LPM4 ................................................................................ 879
34.2.10 Window Comparator .......................................................................................... 879
34.2.11 Using the Integrated Temperature Sensor................................................................. 880
34.2.12 ADC12_B Grounding and Noise Considerations ......................................................... 881
34.2.13 ADC12_B Calibration ......................................................................................... 882
34.2.14 ADC12_B Interrupts .......................................................................................... 882
34.3 ADC12_B Registers ...................................................................................................... 884
34.3.1 ADC12CTL0 Register (offset = 00h) [reset = 0000h] ...................................................... 890
34.3.2 ADC12CTL1 Register (offset = 02h) [reset = 0000h] ...................................................... 892
34.3.3 ADC12CTL2 Register (offset = 04h) [reset = 0020h] ...................................................... 894
34.3.4 ADC12CTL3 Register (offset = 06h) [reset = 0000h] ...................................................... 895
34.3.5 ADC12MEMx Register (x = 0 to 31) ......................................................................... 896
34.3.6 ADC12MCTLx Register (x = 0 to 31) ........................................................................ 897
34.3.7 ADC12HI Register (offset = 0Ah) [reset = 0FFFh] ......................................................... 899
34.3.8 ADC12LO Register (offset = 08h) [reset = 0000h] ......................................................... 899
34.3.9 ADC12IER0 Register (offset = 12h) [reset = 0000h]....................................................... 900
34.3.10 ADC12IER1 Register (offset = 14h) [reset = 0000h] ..................................................... 902
34.3.11 ADC12IER2 Register (offset = 16h) [reset = 0000h] ..................................................... 904
34.3.12 ADC12IFGR0 Register (offset = 0Ch) [reset = 0000h]................................................... 905
34.3.13 ADC12IFGR1 Register (offset = 0Eh) [reset = 0000h] ................................................... 907
34.3.14 ADC12IFGR2 Register (offset = 10h) [reset = 0000h] ................................................... 909
34.3.15 ADC12IV Register (offset = 18h) [reset = 0000h]......................................................... 910
35 Comparator E (COMP_E) Module........................................................................................ 912
35.1 COMP_E Introduction .................................................................................................... 913
35.2 COMP_E Operation ...................................................................................................... 914
35.2.1 Comparator ...................................................................................................... 914
35.2.2 Analog Input Switches ......................................................................................... 914
35.2.3 Port Logic ........................................................................................................ 914
35.2.4 Input Short Switch .............................................................................................. 914
35.2.5 Output Filter ..................................................................................................... 915
35.2.6 Reference Voltage Generator................................................................................. 916
35.2.7 Port Disable Register (CEPD) ................................................................................ 917
www.ti.com
17
SLAU367O–October 2012–Revised December 2017
Submit Documentation Feedback
Copyright © 2012–2017, Texas Instruments Incorporated
Contents
35.2.8 Comparator_E Interrupts ...................................................................................... 917
35.2.9 Comparator_E Used to Measure Resistive Elements ..................................................... 917
35.3 COMP_E Registers....................................................................................................... 920
35.3.1 CECTL0 Register (offset = 00h) [reset = 0000h] ........................................................... 921
35.3.2 CECTL1 Register (offset = 02h) [reset = 0000h] ........................................................... 922
35.3.3 CECTL2 Register (offset = 04h) [reset = 0000h] ........................................................... 923
35.3.4 CECTL3 Register (offset = 06h) [reset = 0000h] ........................................................... 924
35.3.5 CEINT Register (offset = 0Ch) [reset = 0000h]............................................................. 926
35.3.6 CEIV Register (offset = 0Eh) [reset = 0000h]............................................................... 927
36 LCD_C Controller.............................................................................................................. 928
36.1 LCD_C Introduction....................................................................................................... 929
36.2 LCD_C Operation......................................................................................................... 931
36.2.1 LCD Memory .................................................................................................... 931
36.2.2 LCD Timing Generation........................................................................................ 932
36.2.3 Blanking the LCD ............................................................................................... 933
36.2.4 LCD Blinking..................................................................................................... 933
36.2.5 LCD Voltage And Bias Generation ........................................................................... 934
36.2.6 LCD Outputs..................................................................................................... 937
36.2.7 LCD Interrupts................................................................................................... 938
36.2.8 Static Mode...................................................................................................... 940
36.2.9 2-Mux Mode ..................................................................................................... 941
36.2.10 3-Mux Mode.................................................................................................... 942
36.2.11 4-Mux Mode.................................................................................................... 943
36.2.12 6-Mux Mode.................................................................................................... 944
36.2.13 8-Mux Mode.................................................................................................... 945
36.3 LCD_C Registers ......................................................................................................... 947
36.3.1 LCDCCTL0 Register ........................................................................................... 952
36.3.2 LCDCCTL1 Register ........................................................................................... 954
36.3.3 LCDCBLKCTL Register........................................................................................ 955
36.3.4 LCDCMEMCTL Register....................................................................................... 956
36.3.5 LCDCVCTL Register ........................................................................................... 957
36.3.6 LCDCPCTL0 Register.......................................................................................... 959
36.3.7 LCDCPCTL1 Register.......................................................................................... 959
36.3.8 LCDCPCTL2 Register.......................................................................................... 960
36.3.9 LCDCPCTL3 Register.......................................................................................... 960
36.3.10 LCDCCPCTL Register........................................................................................ 961
36.3.11 LCDCIV Register .............................................................................................. 961
37 Extended Scan Interface (ESI) ............................................................................................ 962
37.1 ESI Introduction ........................................................................................................... 963
37.2 ESI Operation ............................................................................................................. 964
37.2.1 ESI Analog Front End .......................................................................................... 964
37.2.2 ESI Timing State Machine..................................................................................... 971
37.2.3 ESI Pre-Processing and State Storage ...................................................................... 976
37.2.4 TimerA Output Stage........................................................................................... 977
37.2.5 ESI Processing State Machine................................................................................ 978
37.2.6 ESI Debug Register ............................................................................................ 982
37.2.7 ESI Interrupts.................................................................................................... 982
37.2.8 Overview of ESI Applications ................................................................................. 983
37.3 ESI Registers.............................................................................................................. 990
37.3.1 ESIDEBUG1 Register .......................................................................................... 991
37.3.2 ESIDEBUG2 Register .......................................................................................... 991
37.3.3 ESIDEBUG3 Register .......................................................................................... 991
37.3.4 ESIDEBUG4 Register .......................................................................................... 992
www.ti.com
18
SLAU367O–October 2012–Revised December 2017
Submit Documentation Feedback
Copyright © 2012–2017, Texas Instruments Incorporated
Contents
37.3.5 ESIDEBUG5 Register .......................................................................................... 992
37.3.6 ESICNT0 Register .............................................................................................. 993
37.3.7 ESICNT1 Register .............................................................................................. 993
37.3.8 ESICNT2 Register .............................................................................................. 994
37.3.9 ESICNT3 Register .............................................................................................. 994
37.3.10 ESIIV Register ................................................................................................. 995
37.3.11 ESIINT1 Register.............................................................................................. 996
37.3.12 ESIINT2 Register.............................................................................................. 998
37.3.13 ESIAFE Register............................................................................................. 1000
37.3.14 ESIPPU Register ............................................................................................ 1002
37.3.15 ESITSM Register ............................................................................................ 1003
37.3.16 ESIPSM Register ............................................................................................ 1005
37.3.17 ESIOSC Register ............................................................................................ 1006
37.3.18 ESICTL Register ............................................................................................. 1007
37.3.19 ESITHR1 Register ........................................................................................... 1009
37.3.20 ESITHR2 Register ........................................................................................... 1009
37.3.21 ESIDAC1Rx Register (x = 0 to 7) ......................................................................... 1010
37.3.22 ESIDAC2Rx Register (x = 0 to 7) ......................................................................... 1010
37.3.23 ESITSMx Register (x = 0 to 31) ........................................................................... 1011
37.3.24 Extended Scan Interface Processing State Machine Table Entry (ESI Memory) ................... 1013
38 Embedded Emulation Module (EEM).................................................................................. 1014
38.1 Embedded Emulation Module (EEM) Introduction.................................................................. 1015
38.2 EEM Building Blocks.................................................................................................... 1017
38.2.1 Triggers......................................................................................................... 1017
38.2.2 Trigger Sequencer ............................................................................................ 1017
38.2.3 State Storage (Internal Trace Buffer)....................................................................... 1017
38.2.4 Cycle Counter.................................................................................................. 1017
38.2.5 EnergyTrace++™ Technology............................................................................... 1018
38.2.6 Clock Control .................................................................................................. 1018
38.2.7 Debug Modes.................................................................................................. 1018
38.3 EEM Configurations..................................................................................................... 1018
Revision History ...................................................................................................................... 1020
www.ti.com
19
SLAU367O–October 2012–Revised December 2017
Submit Documentation Feedback
Copyright © 2012–2017, Texas Instruments Incorporated
List of Figures
List of Figures
1-1. BOR, POR, and PUC Reset Circuit...................................................................................... 49
1-2. Interrupt Priority............................................................................................................. 50
1-3. Interrupt Processing........................................................................................................ 52
1-4. Return From Interrupt...................................................................................................... 53
1-5. Operation Modes ........................................................................................................... 57
1-6. Devices Descriptor Table.................................................................................................. 66
1-7. SFRIE1 Register ........................................................................................................... 73
1-8. SFRIFG1 Register.......................................................................................................... 74
1-9. SFRRPCR Register........................................................................................................ 75
1-10. SYSCTL Register .......................................................................................................... 77
1-11. SYSJMBC Register ........................................................................................................ 78
1-12. SYSJMBI0 Register........................................................................................................ 79
1-13. SYSJMBI1 Register........................................................................................................ 79
1-14. SYSJMBO0 Register....................................................................................................... 80
1-15. SYSJMBO1 Register....................................................................................................... 80
1-16. SYSUNIV Register ......................................................................................................... 81
1-17. SYSSNIV Register ......................................................................................................... 81
1-18. SYSRSTIV Register........................................................................................................ 82
2-1. PMM Block Diagram ....................................................................................................... 84
2-2. Voltage Failure and Resulting PMM Actions ........................................................................... 85
2-3. PMM Action at Device Power-Up ........................................................................................ 86
2-4. PMMCTL0 Register ........................................................................................................ 89
2-5. PMMCTL1 Register ........................................................................................................ 90
2-6. PMMIFG Register .......................................................................................................... 91
2-7. PM5CTL0 Register......................................................................................................... 92
3-1. Clock System Block Diagram............................................................................................. 95
3-2. Module Request Clock System........................................................................................... 99
3-3. Oscillator Fault Logic ..................................................................................................... 101
3-4. Switch MCLK From DCOCLK to LFXTCLK ........................................................................... 102
3-5. CSCTL0 Register ......................................................................................................... 104
3-6. CSCTL1 Register ......................................................................................................... 104
3-7. CSCTL2 Register ......................................................................................................... 105
3-8. CSCTL3 Register ......................................................................................................... 106
3-9. CSCTL4 Register ......................................................................................................... 107
3-10. CSCTL5 Register ......................................................................................................... 109
3-11. CSCTL6 Register ......................................................................................................... 110
4-1. MSP430X CPU Block Diagram ......................................................................................... 113
4-2. PC Storage on the Stack for Interrupts ................................................................................ 114
4-3. Program Counter.......................................................................................................... 115
4-4. PC Storage on the Stack for CALLA ................................................................................... 115
4-5. Stack Pointer .............................................................................................................. 116
4-6. Stack Usage............................................................................................................... 116
4-7. PUSHX.A Format on the Stack ......................................................................................... 116
4-8. PUSH SP, POP SP Sequence.......................................................................................... 116
4-9. SR Bits ..................................................................................................................... 117
4-10. Register-Byte and Byte-Register Operation........................................................................... 119
4-11. Register-Word Operation ................................................................................................ 119
www.ti.com
20
SLAU367O–October 2012–Revised December 2017
Submit Documentation Feedback
Copyright © 2012–2017, Texas Instruments Incorporated
List of Figures
4-12. Word-Register Operation ................................................................................................ 120
4-13. Register – Address-Word Operation ................................................................................... 120
4-14. Address-Word – Register Operation ................................................................................... 121
4-15. Indexed Mode in Lower 64KB........................................................................................... 123
4-16. Indexed Mode in Upper Memory ....................................................................................... 124
4-17. Overflow and Underflow for Indexed Mode ........................................................................... 125
4-18. Example for Indexed Mode.............................................................................................. 126
4-19. Symbolic Mode Running in Lower 64KB .............................................................................. 128
4-20. Symbolic Mode Running in Upper Memory ........................................................................... 129
4-21. Overflow and Underflow for Symbolic Mode .......................................................................... 130
4-22. MSP430 Double-Operand Instruction Format......................................................................... 138
4-23. MSP430 Single-Operand Instructions.................................................................................. 139
4-24. Format of Conditional Jump Instructions .............................................................................. 140
4-25. Extension Word for Register Modes ................................................................................... 143
4-26. Extension Word for Non-Register Modes.............................................................................. 143
4-27. Example for Extended Register or Register Instruction ............................................................. 144
4-28. Example for Extended Immediate or Indexed Instruction ........................................................... 145
4-29. Extended Format I Instruction Formats ................................................................................ 146
4-30. 20-Bit Addresses in Memory ............................................................................................ 146
4-31. Extended Format II Instruction Format................................................................................. 147
4-32. PUSHM and POPM Instruction Format................................................................................ 148
4-33. RRCM, RRAM, RRUM, and RLAM Instruction Format .............................................................. 148
4-34. BRA Instruction Format .................................................................................................. 148
4-35. CALLA Instruction Format ............................................................................................... 148
4-36. Decrement Overlap....................................................................................................... 174
4-37. Stack After a RET Instruction ........................................................................................... 193
4-38. Destination Operand—Arithmetic Shift Left ........................................................................... 195
4-39. Destination Operand—Carry Left Shift................................................................................. 196
4-40. Rotate Right Arithmetically RRA.B and RRA.W ...................................................................... 197
4-41. Rotate Right Through Carry RRC.B and RRC.W .................................................................... 198
4-42. Swap Bytes in Memory................................................................................................... 205
4-43. Swap Bytes in a Register................................................................................................ 205
4-44. Rotate Left Arithmetically—RLAM[.W] and RLAM.A ................................................................. 232
4-45. Destination Operand-Arithmetic Shift Left ............................................................................. 233
4-46. Destination Operand-Carry Left Shift .................................................................................. 234
4-47. Rotate Right Arithmetically RRAM[.W] and RRAM.A ................................................................ 235
4-48. Rotate Right Arithmetically RRAX(.B,.A) – Register Mode.......................................................... 237
4-49. Rotate Right Arithmetically RRAX(.B,.A) – Non-Register Mode.................................................... 237
4-50. Rotate Right Through Carry RRCM[.W] and RRCM.A .............................................................. 239
4-51. Rotate Right Through Carry RRCX(.B,.A) – Register Mode ........................................................ 241
4-52. Rotate Right Through Carry RRCX(.B,.A) – Non-Register Mode .................................................. 241
4-53. Rotate Right Unsigned RRUM[.W] and RRUM.A..................................................................... 242
4-54. Rotate Right Unsigned RRUX(.B,.A) – Register Mode .............................................................. 243
4-55. Swap Bytes SWPBX.A Register Mode ................................................................................ 247
4-56. Swap Bytes SWPBX.A In Memory ..................................................................................... 247
4-57. Swap Bytes SWPBX[.W] Register Mode .............................................................................. 248
4-58. Swap Bytes SWPBX[.W] In Memory ................................................................................... 248
4-59. Sign Extend SXTX.A ..................................................................................................... 249
4-60. Sign Extend SXTX[.W] ................................................................................................... 249
剩余1020页未读,继续阅读
点击了解资源详情
456 浏览量
181 浏览量
2013-04-14 上传
105 浏览量
876 浏览量
352 浏览量
2020-07-31 上传
173 浏览量
呆壳兽
- 粉丝: 172
- 资源: 42
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 简介
- ArcGIS_Engine_C#实例开发教程+源码(超值)
- 矩阵理论全套课件PPT (北航、北理、清华、北邮).rar
- project-1 2.0
- RobusTest-crx插件
- 1个
- ML_Projects
- TCP服务器完整源码(基于IOCP实现) v1.4-易语言
- Prolific USB-to-Serial Comm Port
- Delphi7-SQLMemTable 多线程修改内存表 例子.rar
- 二维码识别工具.zip
- Stashio [URL Saver]-crx插件
- rest_pistache
- TIC
- docusaurus-netlifycms:docusaurs和Netlify CMS的简单实现
- Trainual-crx插件
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功