文件名称:A1
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 24kb
- 下载次数:
- 0次
- 提 供 者:
- 山*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
IAR环境下 MSP430-149F,以参考电压为采样信号的ADC采样示例程序,当采样到的电压A0>0.5*AVcc,P3.4(LED)置位,否则复位。- MSP-FET430P140 Demo- ADC12, Sample A0, Set P3.4 if A0 > 0.5*AVcc
Descr iption: A single sample is made on A0 with reference to AVcc.
Software sets ADC10SC to start sample and conversion- ADC12SC
automatically cleared at EOC. ADC12 internal oscillator times sample (16x)
and conversion. In Mainloop MSP430 waits in LPM0 to save power until ADC12
conversion complete, ADC12_ISR will force exit from LPM0 in Mainloop on
reti. If A0 > 0.5*AVcc, P3.4 set, else reset.
// MSP430F149
// -----------------
// /|\| XIN|-
// | | |
// --|RST XOUT|-
// | |
// Vin-->|P6.0/A0 P3.4|--> LED
Descr iption: A single sample is made on A0 with reference to AVcc.
Software sets ADC10SC to start sample and conversion- ADC12SC
automatically cleared at EOC. ADC12 internal oscillator times sample (16x)
and conversion. In Mainloop MSP430 waits in LPM0 to save power until ADC12
conversion complete, ADC12_ISR will force exit from LPM0 in Mainloop on
reti. If A0 > 0.5*AVcc, P3.4 set, else reset.
// MSP430F149
// -----------------
// /|\| XIN|-
// | | |
// --|RST XOUT|-
// | |
// Vin-->|P6.0/A0 P3.4|--> LED
(系统自动生成,下载前可以参看下载内容)
下载文件列表
A1\A1.dep
..\A1.ewd
..\A1.ewp
..\A1.eww
..\Backup (2) of A1.ewd
..\Backup (2) of A1.ewp
..\Backup of A1.ewd
..\Backup of A1.ewp
..\Debug\Exe\A1.d43
..\.....\Obj\A1.pbd
..\.....\...\main.pbi
..\.....\...\main.r43
..\main.c
..\settings\A1.cspy.bat
..\........\A1.dbgdt
..\........\A1.dni
..\........\A1.wsdt
..\Debug\Exe
..\.....\List
..\.....\Obj
..\Debug
..\settings
A1
..\A1.ewd
..\A1.ewp
..\A1.eww
..\Backup (2) of A1.ewd
..\Backup (2) of A1.ewp
..\Backup of A1.ewd
..\Backup of A1.ewp
..\Debug\Exe\A1.d43
..\.....\Obj\A1.pbd
..\.....\...\main.pbi
..\.....\...\main.r43
..\main.c
..\settings\A1.cspy.bat
..\........\A1.dbgdt
..\........\A1.dni
..\........\A1.wsdt
..\Debug\Exe
..\.....\List
..\.....\Obj
..\Debug
..\settings
A1