slac065c_1

所属分类:单片机开发
开发工具:C/C++
文件大小:82KB
下载次数:2
上传日期:2007-06-13 22:48:06
上 传 者790444
说明:  MSP430样例程序
(MSP430 sample program .......................... )

文件列表:
msp430x11x1_1.c (1115, 2006-02-01)
msp430x11x1_549.c (2395, 2006-02-01)
msp430x11x1_ca_01.c (2231, 2006-02-01)
msp430x11x1_ca_02.c (1634, 2006-02-01)
msp430x11x1_ca_03.c (2380, 2006-02-01)
msp430x11x1_ca_04.c (4119, 2006-02-01)
msp430x11x1_clks.c (1630, 2006-02-01)
msp430x11x1_flashwrite_01.c (3158, 2006-02-08)
msp430x11x1_fll_01.c (3688, 2006-02-01)
msp430x11x1_fll_02.c (3537, 2006-02-01)
msp430x11x1_hfxtal.c (2014, 2006-02-01)
msp430x11x1_lpm3.c (2012, 2006-02-01)
msp430x11x1_nmi.c (1792, 2006-02-01)
msp430x11x1_P2_int.c (1679, 2006-02-01)
msp430x11x1_P2_poll.c (1147, 2006-02-01)
msp430x11x1_rosc.c (1427, 2006-02-01)
msp430x11x1_ta_01.c (1625, 2006-02-01)
msp430x11x1_ta_02.c (1433, 2006-02-01)
msp430x11x1_ta_03.c (1602, 2006-02-01)
msp430x11x1_ta_04.c (1680, 2006-02-01)
msp430x11x1_ta_05.c (1557, 2006-02-01)
msp430x11x1_ta_06.c (1942, 2006-02-01)
msp430x11x1_ta_07.c (2978, 2006-02-01)
msp430x11x1_ta_08.c (3033, 2006-02-01)
msp430x11x1_ta_09.c (3512, 2006-02-01)
msp430x11x1_ta_10.c (1508, 2006-02-01)
msp430x11x1_ta_11.c (1629, 2006-02-01)
msp430x11x1_ta_12.c (2036, 2006-02-01)
msp430x11x1_ta_13.c (1520, 2006-02-01)
msp430x11x1_ta_14.c (1629, 2006-02-01)
msp430x11x1_ta_15.c (2045, 2006-02-01)
msp430x11x1_ta_16.c (1758, 2006-02-01)
msp430x11x1_ta_17.c (1885, 2006-02-01)
msp430x11x1_ta_18.c (2257, 2006-02-01)
msp430x11x1_ta_19.c (1765, 2006-02-01)
msp430x11x1_ta_20.c (1893, 2006-02-01)
msp430x11x1_ta_21.c (2301, 2006-02-01)
msp430x11x1_ta_uart115k.c (5471, 2006-02-01)
msp430x11x1_ta_uart19200_01.c (5401, 2006-02-01)
msp430x11x1_ta_uart2400.c (5115, 2006-02-01)
... ...

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

近期下载者

相关文件


收藏者