Readme File for MSP430 Code Examples
------------------------------------
The MSP430 code examples are provided for demonstration purposes only. The
intent is to show how to use the various peripherals found on the MSP430. To
avoid redundancy, registers were not configured unless necessary. Default
values were used. Delay loops were ommitted in many cases. For instance,
when enabling the ADC12's internal reference, one should allow 17 msec for it
to settle to ensure the first sample is accurate. Always consult applicable
datasheet when developing an application.
Coding Style Guidelines for Assembly Code Examples
--------------------------------------------------
1. No line should exceed 80 characters.
2. Use MACROs provided in the MSP430 header file.
3. Labels start in column 1 and are 10 characters or less.
4. Instructions/DIRECTIVES start in column 13.
5. Instructions are lower case and DIRECTIVES are upper case.
6. Operands start in column 21.
7. Comments start in column 45, first word is capitalized.
8. For multi-line comments, additional lines are NOT capitalized.
Examples:
Column: 13 21 45
| | |
Label in/DIR short_operand ; Comment
Column: 13 21 45
| | |
Label in/DIR this_operand_is_extra_long
; Comment
Column: 13 21 45
| | |
Label in/DIR this_operand_is_extra_long
; First line of comment
; additional comment line
Use MACROs from MSP430 header file:
StopWDT mov.w #WDTPW+WDTHOLD,&WDTCTL ; Stop Watchdog Timer
Instead of hex values:
StopWDT mov.w #05A80h,&0120h ; Stop Watchdog Timer
Use ".w" extension for word instructions:
RESET mov.w #300h,SP ; Initialize stack pointer
Coding Style Guidelines for C Code Examples
--------------------------------------------------
1. No line should exceed 80 characters.
2. Use MACROs provided in the MSP430 header file.
3. Comments start in column 45, first word is capitalized.
4. For multi-line comments, additional lines are NOT capitalized.
5. Use two-space indentation
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
MPS 430 基础实验代码 (1499个子文件)
B1.a43 2KB
PD4.cspy.bat 3KB
16K3.cspy.bat 3KB
4K1.cspy.bat 3KB
E1.cspy.bat 3KB
B1.cspy.bat 3KB
ClockOut.cspy.bat 3KB
Flash.cspy.bat 3KB
R4.cspy.bat 3KB
CA.cspy.bat 3KB
S1.cspy.bat 3KB
HS0038.cspy.bat 3KB
R1.cspy.bat 3KB
R2.cspy.bat 3KB
R3.cspy.bat 3KB
motor.cspy.bat 3KB
motor1.cspy.bat 3KB
AD.cspy.bat 3KB
AD3.cspy.bat 3KB
B2.cspy.bat 3KB
L3.cspy.bat 3KB
C3.cspy.bat 3KB
C1.cspy.bat 3KB
A3.cspy.bat 3KB
A2.cspy.bat 3KB
A1.cspy.bat 3KB
C2.cspy.bat 3KB
DA3.cspy.bat 3KB
DA2.cspy.bat 3KB
D2.cspy.bat 3KB
S2.cspy.bat 3KB
S1.cspy.bat 3KB
N4.cspy.bat 3KB
N3.cspy.bat 3KB
P1.cspy.bat 3KB
RF905-fasong.cspy.bat 3KB
jdq.cspy.bat 3KB
16K2.cspy.bat 3KB
SD4.cspy.bat 3KB
4K3.cspy.bat 3KB
SD2.cspy.bat 3KB
SD1.cspy.bat 3KB
4K2.cspy.bat 3KB
4K4.cspy.bat 3KB
V2.cspy.bat 3KB
V1.cspy.bat 3KB
E2.cspy.bat 3KB
SSCOM.cspy.bat 3KB
KB4.cspy.bat 3KB
N1.cspy.bat 3KB
N2.cspy.bat 3KB
RF905-jieshou.cspy.bat 3KB
SD3.cspy.bat 3KB
L2.cspy.bat 3KB
KB1.cspy.bat 3KB
L2.cspy.bat 3KB
L1.cspy.bat 2KB
UART1.cspy.bat 2KB
ToggleIO.cspy.bat 2KB
HFXT.cspy.bat 2KB
LPM3.cspy.bat 2KB
WDT2.cspy.bat 2KB
WDT1.cspy.bat 2KB
SF1.cspy.bat 2KB
SF2.cspy.bat 2KB
U3.cspy.bat 2KB
U2.cspy.bat 2KB
U4.cspy.bat 2KB
T3.cspy.bat 2KB
T2.cspy.bat 2KB
T4.cspy.bat 2KB
T1.cspy.bat 2KB
B2.cspy.bat 2KB
B1.cspy.bat 2KB
TT4.cspy.bat 1KB
DA1.cspy.bat 1KB
D1.cspy.bat 1KB
PD3.cspy.bat 1KB
PD2.cspy.bat 1KB
16K1.cspy.bat 1KB
AA3.cspy.bat 1KB
PD1.cspy.bat 1KB
main.c 10KB
main.c 9KB
fet140_i2c_15.c 7KB
ds1302.c 7KB
DS1302.C 7KB
main.c 7KB
ds1302.c 7KB
KeyProcess.c 6KB
main.c 6KB
cryfuncs.c 6KB
fet140_uart02_19200.c 6KB
fet140_uart02_09600.c 6KB
main.c 5KB
subfuncs.c 5KB
cryfuncs.c 5KB
main.c 5KB
SMG1602.c 5KB
cry1602.c 5KB
共 1499 条
- 1
- 2
- 3
- 4
- 5
- 6
- 15
资源评论
木木奇奇
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功