msp430g2553 adc10 序列通道多次采样.docx
《msp430g2553 adc10 序列通道多次采样.docx》由会员分享,可在线阅读,更多相关《msp430g2553 adc10 序列通道多次采样.docx(6页珍藏版)》请在三一办公上搜索。
1、msp430g2553 adc10 序列通道多次采样#include msp430g2553.h#include lcd1602.h#define uint unsigned int #define uchar unsigned charfloat P10_v,P11_v,P10,P11;uint shi,ge,shi_fen,bai_fen,i=6,j,P10_int,P11_int;uchar table=0123456789;uint a,num;/,b,num1;/P1.0电压值void display_v_P10(float P10_v)/取出每位数值P10_v=P10_v*100;
2、/将得到的数*100为了方便取出小数部分P10_int=(uint)P10_v;/保留两位小数 转化为整型ge =P10_int/100;/取个位shi_fen=P10_int/10%10;/取十分位bai_fen=P10_int%10;/取百分位/写每位数值/ LCD_write_char(0+i,0,tableshi);LCD_write_char(1+i,0,tablege);LCD_write_char(2+i,0,.);LCD_write_char(3+i,0,tableshi_fen);LCD_write_char(4+i,0,tablebai_fen);/伏特符号LCD_writ
3、e_char(5+i,0,V);/P1.1电压值void display_v_P11(float P11_v)/取出每位数值P11_v=P11_v*100;/将得到的数*100为了方便取出小数部分P11_int=(uint)P11_v;/保留两位小数 转化为整型ge =P11_int/100;/取个位shi_fen=P11_int/10%10;/取十分位bai_fen=P11_int%10;/取百分位/写每位数值LCD_write_char(1+i,1,tablege);LCD_write_char(2+i,1,.);LCD_write_char(3+i,1,tableshi_fen);LCD
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- msp430g2553 adc10 序列通道多次采样 序列 通道 多次 采样

链接地址:https://www.31ppt.com/p-3161713.html