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
没有合适的资源?快使用搜索试试~ 我知道了~
TI-MSP430F149.rar_430_TI MSP430F149_msp430f149_msp430f149 TI
共126个文件
c:124个
txt:2个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 6 浏览量
2022-09-22
18:25:53
上传
评论
收藏 141KB RAR 举报
温馨提示
TI提供的一些由易到难的MSP430F149的实例程序,包括基本的LED,串口,中断等。
资源推荐
资源详情
资源评论
收起资源包目录
TI-MSP430F149.rar_430_TI MSP430F149_msp430f149_msp430f149 TI (126个子文件)
fet140_i2c_15.c 7KB
fet140_uart02_19200.c 6KB
fet140_uart02_09600.c 6KB
fet140_i2c_16.c 5KB
fet140_i2c_13.c 5KB
fet140_dma_10.c 4KB
fet140_dma_11.c 4KB
fet140_dma_07.c 4KB
fet140_i2c_14.c 4KB
fet140_i2c_09.c 4KB
fet140_dma_14.c 4KB
fet140_dma_16.c 4KB
fet140_dma_13.c 4KB
fet140_spi1_03.c 4KB
fet140_i2c_04.c 4KB
fet140_dma_15.c 4KB
fet140_uart03_19200.c 4KB
fet140_uart03_09600.c 4KB
fet140_fll_01.c 4KB
fet140_dma_09.c 4KB
fet140_i2c_12.c 4KB
fet140_ta_09.c 3KB
fet140_i2c_03.c 3KB
fet140_adc12_06.c 3KB
fet140_fll_02.c 3KB
fet140_i2c_17.c 3KB
fet140_spi0_04.c 3KB
fet140_adc12_09.c 3KB
fet140_i2c_02.c 3KB
fet140_spi0_05.c 3KB
fet140_i2c_06.c 3KB
fet140_uart08_09600.c 3KB
fet140_flashwrite_01.c 3KB
fet140_dma_08.c 3KB
fet140_i2c_10.c 3KB
fet140_ta_08.c 3KB
fet140_adc12_08.c 3KB
fet140_i2c_05.c 3KB
fet140_spi1_04.c 3KB
fet140_spi0_07.c 3KB
fet140_dma_12.c 3KB
fet140_ta_07.c 3KB
fet140_adc12_11.c 3KB
fet140_i2c_07.c 3KB
fet140_spi0_08.c 3KB
fet140_ta_22.c 3KB
fet140_dma_05.c 3KB
fet140_i2c_01.c 3KB
fet140_dma_04.c 3KB
fet140_uart01_0115k_2.c 2KB
fet140_uart01_19200_2.c 2KB
fet140_uart11_19200_2.c 2KB
fet140_uart11_0115k_2.c 2KB
fet140_uart01_0115k.c 2KB
fet140_uart06_09600.c 2KB
fet140_lpm3.c 2KB
fet140_uart01_19200.c 2KB
fet140_uart01_09600.c 2KB
fet140_spi0_06.c 2KB
fet140_adc12_03.c 2KB
fet140_i2c_08.c 2KB
fet140_adc12_10.c 2KB
fet140_uart07_09600.c 2KB
fet140_spi0_03.c 2KB
fet140_uart01_09600_2.c 2KB
fet140_dma_03.c 2KB
fet140_uart01_02400.c 2KB
fet140_uart11_02400.c 2KB
fet140_uart04_19200.c 2KB
fet140_uart04_09600.c 2KB
fet140_tb_11.c 2KB
fet140_dma_06.c 2KB
fet140_ta_21.c 2KB
fet140_adc12_04.c 2KB
fet140_tb_08.c 2KB
fet140_ta_18.c 2KB
fet140_adc12_07.c 2KB
fet140_ta_23.c 2KB
fet140_tb_07.c 2KB
fet140_adc12_01.c 2KB
fet140_ta_15.c 2KB
fet140_ta_12.c 2KB
fet140_uart05_09600.c 2KB
fet140_uart15_09600.c 2KB
fet140_tb_06.c 2KB
fet140_wdt_03.c 2KB
fet140_ta_06.c 2KB
fet140_tb_10.c 2KB
fet140_ta_20.c 2KB
fet140_dma_01.c 2KB
fet140_ta_17.c 2KB
fet140_ta_24.c 2KB
fet140_adc12_05.c 2KB
fet140_nmi.c 2KB
fet140_tb_09.c 2KB
fet140_ta_19.c 2KB
fet140_adc12_02.c 2KB
fet140_ta_16.c 2KB
fet140_dac12_03.c 2KB
fet140_dma_02.c 2KB
共 126 条
- 1
- 2
资源评论
局外狗
- 粉丝: 65
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功