20051015slac069

所属分类:单片机开发
开发工具:C/C++
文件大小:137KB
下载次数:11
上传日期:2005-10-15 14:56:31
上 传 者ameng_free
说明:  我自己改写的MSP430F140的C例程,希望能对大家有所帮助
(I write in the MSP430F140 C routines, we hope to help)

文件列表:
fet140_1.c (1140, 2005-05-17)
fet140_adc12_01.c (2110, 2005-05-12)
fet140_adc12_02.c (1766, 2005-05-12)
fet140_adc12_03.c (2477, 2005-05-17)
fet140_adc12_04.c (2347, 2005-05-12)
fet140_adc12_05.c (1815, 2005-05-12)
fet140_adc12_06.c (3566, 2005-05-12)
fet140_adc12_07.c (2219, 2005-05-12)
fet140_adc12_08.c (2997, 2005-05-12)
fet140_adc12_09.c (3370, 2005-05-12)
fet140_adc12_10.c (2447, 2005-05-12)
fet140_adc12_11.c (3008, 2005-05-12)
fet140_clks.c (1586, 2005-05-12)
fet140_dac12_01.c (1204, 2005-05-10)
fet140_dac12_02.c (1195, 2005-05-10)
fet140_dac12_03.c (1769, 2005-05-10)
FET140_demolist_C.txt (9133, 2005-05-18)
fet140_dma_01.c (1877, 2005-05-06)
fet140_dma_02.c (1717, 2005-05-11)
fet140_dma_03.c (2395, 2005-05-12)
fet140_dma_04.c (2636, 2005-05-06)
fet140_dma_05.c (2734, 2005-05-06)
fet140_dma_06.c (2292, 2005-05-06)
fet140_dma_07.c (4203, 2005-05-13)
fet140_dma_08.c (3122, 2005-05-10)
fet140_dma_09.c (3651, 2005-05-13)
fet140_dma_10.c (4517, 2005-05-13)
fet140_dma_11.c (4241, 2005-05-13)
fet140_dma_12.c (2968, 2005-05-06)
fet140_dma_13.c (3883, 2005-05-12)
fet140_dma_14.c (3877, 2005-05-13)
fet140_dma_15.c (3680, 2005-05-13)
fet140_dma_16.c (3874, 2005-05-13)
fet140_flashwrite_01.c (3143, 2005-05-13)
fet140_fll_01.c (3631, 2005-05-12)
fet140_fll_02.c (3470, 2005-05-12)
fet140_hfxt2.c (1692, 2005-05-17)
fet140_hfxtal.c (1703, 2005-05-17)
fet140_i2c_01.c (2652, 2005-05-12)
fet140_i2c_02.c (3434, 2005-05-13)
... ...

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 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

近期下载者

相关文件


收藏者