文件名称:ADSlope
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 50kb
- 下载次数:
- 0次
- 提 供 者:
- ch***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
() { float fad WDTCTL = WDTPW + WDTHOLD //关闭看门狗 InitSys() CeRref() st: fad=Slope() //斜边ad转换 goto st } /***************************************************************************** 系统初始化 ******************************************************************************/ void InitSys() { unsigned int iq0 //使用XT2振荡器 BCSCTL1&=~XT2OFF //打开XT2振荡器 do { IFG1 &= ~OFIFG // 清除振荡器失效标志 for (iq0 = 0xFF iq0 > 0 iq0--) // 延时,等待XT2起振 } while ((IFG1 & OFIFG) != 0) // 判断XT2是否起振 BCSCTL2 =SELM_2+SELS //选择MCLK、SMCLK为XT2 InitBhTimerA() //初始化定时器A GoBhTimerA(100) //打开定时器捕获 _EINT() //打开全局中断控制,若不需要打开,可以屏蔽本句 } -MSP430 A/D SLOPE
(系统自动生成,下载前可以参看下载内容)
下载文件列表
AD Slope\12-1\Backup of slope.ewd
........\....\Backup of slope.ewp
........\....\comparator.c
........\....\comparator.c.bak
........\....\comparator.h
........\....\comparator.h.bak
........\....\Debug\Exe\Resistance.d43
........\....\.....\...\slope.d43
........\....\.....\Obj\comparator.pbi
........\....\.....\...\comparator.r43
........\....\.....\...\df_bh_timera.pbi
........\....\.....\...\df_bh_timera.r43
........\....\.....\...\General.pbi
........\....\.....\...\General.r43
........\....\.....\...\main.pbi
........\....\.....\...\main.r43
........\....\.....\...\slope.pbd
........\....\.....\...\slope.pbi
........\....\.....\...\slope.r43
........\....\df_bh_timera.c
........\....\df_bh_timera.c.bak
........\....\df_bh_timera.h
........\....\df_bh_timera.h.bak
........\....\General.c
........\....\General.c.bak
........\....\general.h
........\....\general.h.bak
........\....\main.c
........\....\main.c.bak
........\....\settings\Resistance.dbgdt
........\....\........\Resistance.dni
........\....\........\Resistance.wsdt
........\....\........\slope.cspy.bat
........\....\........\slope.dbgdt
........\....\........\slope.dni
........\....\........\slope.wsdt
........\....\slope.c
........\....\slope.c.bak
........\....\slope.dep
........\....\slope.ewd
........\....\slope.ewp
........\....\slope.eww
........\....\slope.h
........\....\slope.h.bak
........\....\Debug\Exe
........\....\.....\List
........\....\.....\Obj
........\....\Debug
........\....\settings
........\12-1
AD Slope
........\....\Backup of slope.ewp
........\....\comparator.c
........\....\comparator.c.bak
........\....\comparator.h
........\....\comparator.h.bak
........\....\Debug\Exe\Resistance.d43
........\....\.....\...\slope.d43
........\....\.....\Obj\comparator.pbi
........\....\.....\...\comparator.r43
........\....\.....\...\df_bh_timera.pbi
........\....\.....\...\df_bh_timera.r43
........\....\.....\...\General.pbi
........\....\.....\...\General.r43
........\....\.....\...\main.pbi
........\....\.....\...\main.r43
........\....\.....\...\slope.pbd
........\....\.....\...\slope.pbi
........\....\.....\...\slope.r43
........\....\df_bh_timera.c
........\....\df_bh_timera.c.bak
........\....\df_bh_timera.h
........\....\df_bh_timera.h.bak
........\....\General.c
........\....\General.c.bak
........\....\general.h
........\....\general.h.bak
........\....\main.c
........\....\main.c.bak
........\....\settings\Resistance.dbgdt
........\....\........\Resistance.dni
........\....\........\Resistance.wsdt
........\....\........\slope.cspy.bat
........\....\........\slope.dbgdt
........\....\........\slope.dni
........\....\........\slope.wsdt
........\....\slope.c
........\....\slope.c.bak
........\....\slope.dep
........\....\slope.ewd
........\....\slope.ewp
........\....\slope.eww
........\....\slope.h
........\....\slope.h.bak
........\....\Debug\Exe
........\....\.....\List
........\....\.....\Obj
........\....\Debug
........\....\settings
........\12-1
AD Slope