文件名称:MSP430G2553_UART_ADC_Timer
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2013-11-24
- 文件大小:
- 2kb
- 下载次数:
- 0次
- 提 供 者:
- zhongj*******
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
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