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
没有合适的资源?快使用搜索试试~ 我知道了~
msp430开发板的资料
共1333个文件
c:285个
h:142个
r43:124个
1星 需积分: 14 37 下载量 22 浏览量
2010-05-19
12:49:16
上传
评论
收藏 4.68MB RAR 举报
温馨提示
LT-1Bmsp430单片机学习板的原理图、例程代码、JTAG接口原理图、供学430单片机的朋友下载!
资源推荐
资源详情
资源评论
收起资源包目录
msp430开发板的资料 (1333个子文件)
E1.cspy.bat 2KB
SD4.cspy.bat 2KB
PD4.cspy.bat 2KB
U2.cspy.bat 2KB
B2.cspy.bat 2KB
R4.cspy.bat 2KB
R5.cspy.bat 2KB
U1.cspy.bat 2KB
S1.cspy.bat 2KB
U3.cspy.bat 2KB
V1.cspy.bat 2KB
C3.cspy.bat 2KB
AD2.cspy.bat 2KB
C2.cspy.bat 2KB
16K3.cspy.bat 2KB
L1.cspy.bat 2KB
D2.cspy.bat 2KB
AD3.cspy.bat 2KB
S1.cspy.bat 2KB
P1.cspy.bat 2KB
DA2.cspy.bat 2KB
D1.cspy.bat 2KB
DA1.cspy.bat 2KB
16K1.cspy.bat 2KB
N1.cspy.bat 2KB
L2.cspy.bat 2KB
4K1.cspy.bat 2KB
LPM3.cspy.bat 2KB
UART1.cspy.bat 2KB
SF1.cspy.bat 2KB
WDT2.cspy.bat 2KB
ToggleIO.cspy.bat 2KB
SF2.cspy.bat 2KB
WDT1.cspy.bat 2KB
B1.cspy.bat 2KB
ClockOut.cspy.bat 2KB
Flash.cspy.bat 2KB
HFXT.cspy.bat 2KB
N3.cspy.bat 2KB
N4.cspy.bat 2KB
L3.cspy.bat 2KB
P2.cspy.bat 2KB
A1.cspy.bat 2KB
A3.cspy.bat 2KB
B2.cspy.bat 2KB
A2.cspy.bat 2KB
U2.cspy.bat 2KB
U3.cspy.bat 2KB
B1.cspy.bat 2KB
PD2.cspy.bat 2KB
U4.cspy.bat 2KB
T4.cspy.bat 2KB
T3.cspy.bat 2KB
SD2.cspy.bat 2KB
R1.cspy.bat 2KB
R3.cspy.bat 2KB
V3.cspy.bat 2KB
SD3.cspy.bat 2KB
CA.cspy.bat 2KB
V2.cspy.bat 2KB
S2.cspy.bat 2KB
T2.cspy.bat 2KB
T1.cspy.bat 2KB
SD1.cspy.bat 2KB
R2.cspy.bat 2KB
C1.cspy.bat 2KB
P3.cspy.bat 2KB
16K2.cspy.bat 2KB
N2.cspy.bat 2KB
AD1.cspy.bat 2KB
S2.cspy.bat 2KB
E2.cspy.bat 2KB
4K2.cspy.bat 2KB
PD3.cspy.bat 2KB
PD1.cspy.bat 2KB
4K4.cspy.bat 2KB
4K3.cspy.bat 2KB
USBfunctions.c 28KB
USBfunctions.c 27KB
USBfunctions.c 27KB
main.c 9KB
fet140_i2c_15.c 7KB
ds1302.c 7KB
ds1302.c 7KB
main.c 6KB
cryfuncs.c 6KB
fet140_uart02_19200.c 6KB
fet140_uart02_09600.c 6KB
UART0.c 5KB
subfuncs.c 5KB
main.c 5KB
cryfuncs.c 5KB
cry1602.c 5KB
cry1602.c 5KB
cry1602.c 5KB
cry1602.c 5KB
main.c 5KB
fet140_i2c_16.c 5KB
fet140_i2c_13.c 5KB
IIC.c 5KB
共 1333 条
- 1
- 2
- 3
- 4
- 5
- 6
- 14
资源评论
- hh9913172012-12-23资源无毒,可以放心下。
explorer1990
- 粉丝: 3
- 资源: 5
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功