MSP430寄存器中文注释Word文档格式.docx
- 文档编号:19623978
- 上传时间:2023-01-08
- 格式:DOCX
- 页数:12
- 大小:20.20KB
MSP430寄存器中文注释Word文档格式.docx
《MSP430寄存器中文注释Word文档格式.docx》由会员分享,可在线阅读,更多相关《MSP430寄存器中文注释Word文档格式.docx(12页珍藏版)》请在冰豆网上搜索。
#defineP2IN_
0x0028
/*P2输入寄存器*/
constsfrbP2IN
=P2IN_;
#defineP2OUT_
0x0029
/*P2输出寄存器
*/
P2OUT
=P2OUT_;
#defineP2DIR_
0x002A
/*P2方向选择寄存器
P2DIR
=P2DIR_;
#defineP2IFG_
0x002B
/*P2中断标志寄存器*/
P2IFG
=P2IFG_;
#defineP2IES_
0x002C
/*P2中断边沿选择寄存器*/
P2IES
=P2IES_;
#defineP2IE_
0x002D
/*P2中断使能寄存器*/
P2IE
=P2IE_;
#defineP2SEL_
0x002E
/*P2功能选择寄存器*/
P2SEL
=P2SEL_;
MSP430寄存器中文注释---P3/4口
(无中断功能)
*DIGITALI/OPort3/4寄存器定义无中断功能
#defineP3IN_
0x0018
/*P3输入寄存器*/
constsfrbP3IN
=P3IN_;
#defineP3OUT_
0x0019
/*P3输出寄存器*/
P3OUT
=P3OUT_;
#defineP3DIR_
0x001A
/*P3方向选择寄存器*/
P3DIR
=P3DIR_;
#defineP3SEL_
0x001B
/*P3功能选择寄存器*/
P3SEL
=P3SEL_;
#defineP4IN_
0x001C
/*P4输入寄存器*/
constsfrbP4IN
=P4IN_;
#defineP4OUT_
0x001D
/*P4输出寄存器*/
P4OUT
=P4OUT_;
#defineP4DIR_
0x001E
/*P4方向选择寄存器*/
P4DIR
=P4DIR_;
#defineP4SEL_
0x001F
/*P4功能选择寄存器*/
P4SEL
=P4SEL_;
*DIGITALI/OPort5/6
I/O口寄存器定义PORT5和6
无中断功能
#defineP5IN_
0x0030
/*P5输入寄存器*/
constsfrbP5IN
=P5IN_;
#defineP5OUT_
0x0031
/*P5输出寄存器*/
P5OUT
=P5OUT_;
#defineP5DIR_
0x0032
/*P5方向选择寄存器*/
P5DIR
=P5DIR_;
#defineP5SEL_
0x0033
/*P5功能选择寄存器*/
P5SEL
=P5SEL_;
#defineP6IN_
0x0034
/*P6输入寄存器*/
constsfrbP6IN
=P6IN_;
#defineP6OUT_
0x0035
/*P6输出寄存器*/
P6OUT
=P6OUT_;
#defineP6DIR_
0x0036
/*P6方向选择寄存器*/
P6DIR
=P6DIR_;
#defineP6SEL_
0x0037
/*P6功能选择寄存器*/
P6SEL
=P6SEL_;
MSP430寄存器中文注释---
硬件乘法器
硬件乘法器的寄存器定义
#defineMPY_
0x0130
/*无符号乘法*/
sfrw
MPY
=MPY_;
#defineMPYS_
0x0132
/*有符号乘法*/
MPYS
=MPYS_;
#defineMAC_
0x0134
/*无符号乘加*/
MAC
=MAC_;
#defineMACS_
0x0136
/*有符号乘加*/
MACS
=MACS_;
#defineOP2_
0x0138
/*第二乘数*/
OP2
=OP2_;
#defineRESLO_
0x013A
/*低6位结果寄存器*/
RESLO
=RESLO_;
#defineRESHI_
0x013C
/*高6位结果寄存器*/
RESHI
=RESHI_;
#defineSUMEXT_
0x013E
/*结果扩展寄存器
constsfrwSUMEXT
=SUMEXT_;
MSP430寄存器中文注释---看门狗和定时器
*
看门狗定时器的寄存器定义
#defineWDTCTL_
0x0120
WDTCTL
=WDTCTL_;
#defineWDTIS0
0x0001
/*选择WDTCNT的四个输出端之一*/
#defineWDTIS1
0x0002
#defineWDTSSEL
0x0004
/*选择WDTCNT的时钟源*/
#defineWDTCNTCL
0x0008
/*清除WDTCNT端:
为1时从0开始计数*/
#defineWDTTMSEL
0x0010
/*选择模式
0:
看门狗模式;
1:
定时器模式*/
#defineWDTNMI
/*选择NMI/RST引脚功能0:
为RST;
为NMI*/
#defineWDTNMIES
0x0040
/*WDTNMI=1时.选择触发延0:
为上升延1:
为下降延*/
#defineWDTHOLD
0x0080
/*停止看门狗定时器工作0:
启动;
1:
停止*/
#defineWDTPW
0x5A00
/*写密码:
高八位*/
/*SMCLK=1MHz定时器模式*/
#defineWDT_MDLY_32
WDTPW+WDTTMSEL+WDTCNTCL
/*TSMCLK*2POWER15=32ms复位状态*/
#defineWDT_MDLY_8
WDTPW+WDTTMSEL+WDTCNTCL+WDTIS0
/*TSMCLK*2POWER13=8.192ms
"
#defineWDT_MDLY_0_5
WDTPW+WDTTMSEL+WDTCNTCL+WDTIS1
/*TSMCLK*2POWER9=0.512ms
#defineWDT_MDLY_0_064
WDTPW+WDTTMSEL+WDTCNTCL+WDTIS1+WDTIS0
/*TSMCLK*2POWER6=0.512ms"
/*ACLK=32.768KHz定时器模式*/
#defineWDT_ADLY_1000
WDTPW+WDTTMSEL+WDTCNTCL+WDTSSEL
/*TACLK*2POWER15=1000ms
#defineWDT_ADLY_250
WDTPW+WDTTMSEL+WDTCNTCL+WDTSSEL+WDTIS0
/*TACLK*2POWER13=250ms
#defineWDT_ADLY_16
WDTPW+WDTTMSEL+WDTCNTCL+WDTSSEL+WDTIS1
/*TACLK*2POWER9=16ms
#defineWDT_ADLY_1_9
WDTPW+WDTTMSEL+WDTCNTCL+WDTSSEL+WDTIS1+WDTIS0
/*TACLK*2POWER6=1.9ms
/*SMCLK=1MHz看门狗模式*/
#defineWDT_MRST_32
WDTPW+WDTCNTCL
/*TSMCLK*2POWER15=32ms复位状态
#defineWDT_MRST_8
WDTPW+WDTCNTCL+WDTIS0
#defineWDT_MRST_0_5
WDTPW+WDTCNTCL+WDTIS1
#defineWDT_MRST_0_064
WDTPW+WDTCNTCL+WDTIS1+WDTIS0
/*ACLK=32KHz看门狗模式*/
#defineWDT_ARST_1000
WDTPW+WDTCNTCL+WDTSSEL
#defineWDT_ARST_250
WDTPW+WDTCNTCL+WDTSSEL+WDTIS0
#defineWDT_ARST_16
WDTPW+WDTCNTCL+WDTSSEL+WDTIS1
#defineWDT_ARST_1_9
WDTPW+WDTCNTCL+WDTSSEL+WDTIS1+WDTIS0
MSP430寄存器中文注释---A/D采样寄存器定义
*ADC12
A/D采样寄存器定义
/*ADC12转换控制类寄存器*/
#defineADC12CTL0_
0x0;
'
/*ADC12Control0*/
ADC12CTL0
=ADC12CTL0_;
#defineADC12CTL1_
0x01A2
/*ADC12Control1*/
ADC12CTL1
=ADC12CTL1_;
/*ADC12中断控制类寄存器*/
#defineADC12IFG_
0x01A4
/*ADC12InterruptFlag*/
ADC12IFG
=ADC12IFG_;
#defineADC12IE_
0x01A6
/*ADC12InterruptEnable*/
ADC12IE
=ADC12IE_;
#defineADC12IV_
0x01A8
/*ADC12InterruptVectorWord*/
ADC12IV
=ADC12IV_;
/*ADC12存贮器类寄存器*/
#defineADC12MEM_
0x0140
/*ADC12ConversionMemory*/
#ifndef__IAR_SYSTEMS_ICC
#defineADC12MEM
ADC12MEM_/*ADC12ConversionMemory(forassembler)*/
#else
((int*)ADC12MEM_)/*ADC12ConversionMemory(forC)*/
#endif
#defineADC12MEM0_
ADC12MEM_/*ADC12ConversionMemory0*/
ADC12MEM0
=ADC12MEM0_;
#defineADC12MEM1_
0x0142
/*ADC12ConversionMemory1*/
ADC12MEM1
=ADC12MEM1_;
#defineADC12MEM2_
0x0144
/*ADC12ConversionMemory2*/
ADC12MEM2
=ADC12MEM2_;
#defineADC12MEM3_
0x0146
/*ADC12ConversionMemory3*/
ADC12MEM3
=ADC12MEM3_;
#defineADC12MEM4_
0x0148
/*ADC12ConversionMemory4*/
ADC12MEM4
=ADC12MEM4_;
#defineADC12MEM5_
0x014A
/*ADC12ConversionMemory5*/
ADC12MEM5
=ADC12MEM5_;
#defineADC12MEM6_
0x014C
/*ADC12ConversionMemory6*/
ADC12MEM6
=ADC12MEM6_;
#defineADC12MEM7_
0x014E
/*ADC12ConversionMemory7*/
ADC12MEM7
=ADC12MEM7_;
#defineADC12MEM8_
0x0150
/*ADC12ConversionMemory8*/
ADC12MEM8
=ADC12MEM8_;
#defineADC12MEM9_
0x0152
/*ADC12ConversionMemory9*/
ADC12MEM9
=ADC12MEM9_;
#defineADC12MEM10_
0x0154
/*ADC12ConversionMemory10*/
ADC12MEM10
=ADC12MEM10_;
#defineADC12MEM11_
0x0156
/*ADC12ConversionMemory11*/
ADC12MEM11
=ADC12MEM11_;
#defineADC12MEM12_
0x0158
/*ADC12ConversionMemory12*/
ADC12MEM12
=ADC12MEM12_;
#defineADC12MEM13_
0x015A
/*ADC12ConversionMemory13*/
ADC12MEM13
=ADC12MEM13_;
#defineADC12MEM14_
0x015C
/*ADC12ConversionMemory14*/
ADC12MEM14
=ADC12MEM14_;
#defineADC12MEM15_
0x015E
/*ADC12ConversionMemory15*/
ADC12MEM15
=ADC12MEM15_;
/*ADC12存贮控制类寄存器*/
#defineADC12MCTL_
/*ADC12MemoryControl*/
#defineADC12MCTL
ADC12MCTL_/*ADC12MemoryControl(forassembler)*/
((char*)ADC12MCTL_)/*ADC12MemoryControl(forC)*/
#defineADC12MCTL0_
ADC12MCTL_/*ADC12Me
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- MSP430 寄存器 中文 注释