TI提供的例程
所属分类:单片机开发
开发工具:C/C++
文件大小:146KB
下载次数:1
上传日期:2020-08-10 10:19:09
上 传 者:
dorlolo
说明: MSP430F149各功能案例,时钟、定时器、串口通信、AD转换、等
(MSP430F149 each functional case)
文件列表:
TI提供的例程 (0, 2020-07-24)
TI提供的例程\fet140_1.c (1129, 2013-06-22)
TI提供的例程\fet140_adc12_01.c (2073, 2013-06-22)
TI提供的例程\fet140_adc12_02.c (1753, 2013-06-22)
TI提供的例程\fet140_adc12_03.c (2429, 2013-06-22)
TI提供的例程\fet140_adc12_04.c (2258, 2013-06-22)
TI提供的例程\fet140_adc12_05.c (1797, 2013-06-22)
TI提供的例程\fet140_adc12_06.c (3434, 2013-06-22)
TI提供的例程\fet140_adc12_07.c (2238, 2013-06-22)
TI提供的例程\fet140_adc12_08.c (2965, 2013-06-22)
TI提供的例程\fet140_adc12_09.c (3350, 2013-06-22)
TI提供的例程\fet140_adc12_10.c (2414, 2013-06-22)
TI提供的例程\fet140_adc12_11.c (2913, 2013-06-22)
TI提供的例程\fet140_clks.c (1574, 2013-06-22)
TI提供的例程\fet140_dac12_01.c (1190, 2013-06-22)
TI提供的例程\fet140_dac12_02.c (1181, 2013-06-22)
TI提供的例程\fet140_dac12_03.c (1716, 2013-06-22)
TI提供的例程\FET140_demolist_C.txt (9133, 2013-06-22)
TI提供的例程\fet140_dma_01.c (1862, 2013-06-22)
TI提供的例程\fet140_dma_02.c (1703, 2013-06-22)
TI提供的例程\fet140_dma_03.c (2381, 2013-06-22)
TI提供的例程\fet140_dma_04.c (2584, 2013-06-22)
TI提供的例程\fet140_dma_05.c (2720, 2013-06-22)
TI提供的例程\fet140_dma_06.c (2278, 2013-06-22)
TI提供的例程\fet140_dma_07.c (4189, 2013-06-22)
TI提供的例程\fet140_dma_08.c (3108, 2013-06-22)
TI提供的例程\fet140_dma_09.c (3605, 2013-06-22)
TI提供的例程\fet140_dma_10.c (4459, 2013-06-22)
TI提供的例程\fet140_dma_11.c (4215, 2013-06-22)
TI提供的例程\fet140_dma_12.c (2940, 2013-06-22)
TI提供的例程\fet140_dma_13.c (3894, 2013-06-22)
TI提供的例程\fet140_dma_14.c (3914, 2013-06-22)
TI提供的例程\fet140_dma_15.c (3715, 2013-06-22)
TI提供的例程\fet140_dma_16.c (3911, 2013-06-22)
TI提供的例程\fet140_flashwrite_01.c (3150, 2013-06-22)
TI提供的例程\fet140_fll_01.c (3616, 2013-06-22)
TI提供的例程\fet140_fll_02.c (3431, 2013-06-22)
TI提供的例程\fet140_hfxt2.c (1680, 2013-06-22)
TI提供的例程\fet140_hfxtal.c (1691, 2013-06-22)
TI提供的例程\fet140_i2c_01.c (2613, 2013-06-22)
... ...
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
近期下载者:
相关文件:
收藏者: