文件名称:MSP430G2553_UART_ADC_Timer
-
所属分类:
- 标签属性:
- 上传时间:2013-11-24
-
文件大小:2kb
-
已下载:1次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
MSP430G2553的代码,可给430G2X系列参考,有ADC10多通道多次采样,TIMER定时中断,TIMER的PWM输出,UART的初始化、ASCII码输出、接收中断。 特别是ADC10的多通道多次采样,很多同学刚开始学430不会用,一定记得要用数组接收数据,代码中用的ADC[0~4]接收的数据。 用ADC多通道多次采样,特别需要注意的是,如果你要采集通道 4 5 6 7(也就是P1.4~7),你还是得设置ADC10DTC1=8;,如果设置成4就会错误。 但是可以 ADC10AE0|=BIT4+BIT5+BIT6+BIT7;(不使能P1.0~3的ADC功能) 同时ADC10CTL1起始位置还是设置INCH_7;-MSP430G2553 code, can refer to 430G2X series, there are several multi-channel ADC10 sampling, TIMER timer interrupt, TIMER PWM output, initialize the UART, ASCII code output, receive interrupt. Especially multi-channel ADC10 multiple sampling, many students just beginning to learn 430 will not use, must remember to use an array to receive data, ADC code using the received data [0-4]. Multi-channel ADC with multiple sampling, particular note is that if you want to capture channel 4567 (that is, P1.4 ~ 7), you still have to set ADC10DTC1 = 8 , if an error is set to 4. But can ADC10AE0 | = BIT4+BIT5+BIT6+BIT7 (ADC function is not enabled P1.0 ~ 3 in) while ADC10CTL1 starting position is set INCH_7
(系统自动生成,下载前可以参看下载内容)
下载文件列表
main.c
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.