2、完成主程序中ADC测试,数值计算机显示部分程序编写。while(1){adcx=Get_Adc_Average(①, ② ); //获取通道5的转换值,20次取平均LCD_ShowxNum(30+③ ,200,adcx,④); //显示ADCC采样后的4位原始值,36号字temp=(float)⑤ *(3.3/4096); //获取计算后的带小数的实际电压值,比如3.1111adcx=⑥ ; //赋值整数部分给adcx变量,因为adcx为u16整形LCD_ShowxNum(30+③ ,260,adcx,⑦); //显示电压值的整数部分,36号字,3.1111的话,就显示3temp-=adcx; //把整数部分去掉,留下小数部分,如3.1111-3=0.1111temp*=1000; //小数部分乘以1000,相当于保留三位小数。LCD_ShowxNum(30+24*9+36,260,temp,⑧ ); //显示3位小数部分,36号字⑨; //绿灯闪烁delay_ms(⑩ ); //1秒内亮灭各一次}}
查看答案
将ADC1通道5的输入引脚,采样绿色LED的电压值,可测出高电平为()V,低电平为()V。(由于测量值由一定的变动,故四舍五入后保留小数点后2位有效数字)
班级是学校中开展各类活动的最基本的基层行政组织。()
A. 对
B. 错
班级管理目标的制定只要依据学生的实际需求即可。()
A. 对
B. 错
1. Brazilian senators have voted to __1_____President Jair Bolsonaro over ____2____. The president has maintained ____3____, but the crisis has ____4____.2. Moldovan officials are due to ____5____with Russia’s ___6____Gasprom as ___7___.Moldova____8___after ____9___.3. The Polish senate will ___10_____along its border with Belarus to ___11____. Around 500 people __12____every day.Brussels has ___13___Belarus ___14___migration.4. The US has ____15___of a telecommunications operator ____16___by China. They said China telecom __________17______________there.