freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

基于pt100_熱電阻的簡(jiǎn)易溫度測(cè)量系統(tǒng)畢業(yè)設(shè)計(jì)論文(參考版)

2024-09-01 18:27本頁(yè)面
  

【正文】 } 。 } temp = 1。 temp))。 temp)) { key_value = i+j*4。 i4。 temp = 0x10。 j4。 } uchar key_event(void) //取鍵值函數(shù),并將鍵值通過(guò) key_value 返回 { 基于 Pt100_熱電阻的簡(jiǎn)易溫度測(cè)量系統(tǒng) 40 uchar i,j, temp,key_value。 } else flag = 0。 //按鍵消抖 if(Keybord != 0xf0) { flag = 1。 // temp = Keybord。 // uchar temp。 include include include define Keybord P1 uchar code Buffer[4] = {0xfe, 0xfd, 0xfb, 0xf7}。 } typedef unsigned char uchar。 j0。 i0。 基于 Pt100_熱電阻的簡(jiǎn)易溫度測(cè)量系統(tǒng) 39 } void delay_1ms(uint z) { uint i,j。 j0。 delay1us0。 include include void delayUs2x(uint delay1us) { uint j。 } } typedef unsigned char uchar。 cheak=0。)。(cheak==1)) { write_data(39。i) //逐個(gè)顯示 { if((i==t1)amp。 } for(i=A1。i) //滅零 { if(dis[i]==0) dis[i]=11。 } for(i=A1。i++) //拆分 bcd { dis[i] = num%10。 for(i=0。i++) { number=number*。 for(i=0。 } } void float_dis(float number,uchar t)//t 為小數(shù)點(diǎn)后保留位數(shù) { // num 數(shù) t 小數(shù)位 浮點(diǎn)數(shù)顯示 基于 Pt100_熱電阻的簡(jiǎn)易溫度測(cè)量系統(tǒng) 38 char i=0,cheak=1,dis[A]。 } } void str_dis(uchar *p) { while(*p 0) { write_data(*p)。break。break。break。break。i++) { write_data(0x00)。//設(shè)置水平地址 for(i=0。j++) { write_cmd(j)。 for(j=0x80。 write_cmd(0x34)。 StartY += incy。 StartX += incx。 y += delta_y。 t++) { Lcd12864_draw_dots(StartX, StartY, Color)。 /* Draw Line*/ for(t=0。 } else { distance = delta_y。 delta_y = abs(delta_y)。 } else { incy = 1。 } else if(delta_y == 0) { Lcd12864_drawline_x(StartX, EndX, StartY, Color)。 } else { 基于 Pt100_熱電阻的簡(jiǎn)易溫度測(cè)量系統(tǒng) 36 incx = 1 。 } else if(delta_x == 0) { Lcd12864_drawline_y(StartX, StartY, EndY, Color)。 delta_y = EndY StartY。 char incx, incy。 } void Lcd12864DrawLine_f(uchar StartX, uchar StartY, uchar EndX, uchar EndY, uchar Color) { int t, distance。 y0=y1。 y1 = temp。 if(y0 y1) { temp = y0。 x0++) Lcd12864_draw_dots(x0, y, color)。 } for(。 x0 = x1。 } void Lcd12864_drawline_x(uchar x0, uchar x1, uchar y, uchar color) 基于 Pt100_熱電阻的簡(jiǎn)易溫度測(cè)量系統(tǒng) 35 { uchar temp。 write_data(Read_L)。 //若反轉(zhuǎn) default: break。 //若涂黑 case 2:Read_L ^= (0x01 (15xlabel_bit))。 //若變白 case 1:Read_L |= (0x01 (15xlabel_bit))。= (~(0x01 (15xlabel_bit)))。 write_data(Read_L)。 //若反轉(zhuǎn) default: break。 //若涂黑 case 2:Read_H ^= (0x01 (7xlabel_bit))。 //若變白 case 1:Read_H |= (0x01 (7xlabel_bit))。= (~(0x01 (7xlabel_bit)))。 write_cmd(xlabel + 0x80)。 Read_L = ReadByte()。 //送水平地址 ReadByte()。 } write_cmd(Row + 0x80)。 //上半屏 else { Row = y32。0x0f。 xlabel = x4。 write_cmd(0x34)。 } } } void Lcd12864_draw_dots(uchar x, uchar y, uchar color) { uchar Row,xlabel,xlabel_bit。 j++) { write_data(*address)。 //送水平地址 for(j=0。 i++) { write_cmd(0x80+i)。 } } for(i=0。 j++) { write_data(*address)。 //送水平地址 for(j=0。 i++) { write_cmd(0x80+i)。 for(i=0。 return a。 a = lcd_data 。 //LCDEN = 0。 基于 Pt100_熱電阻的簡(jiǎn)易溫度測(cè)量系統(tǒng) 33 RS = 1。 read_busy()。 //清除 LCD 的顯示內(nèi)容 //delay_1ms(1)。 //顯示開(kāi),關(guān)光標(biāo) //delay_1ms(1)。 //擴(kuò)充指令操作 //delay_1ms(1)。 //清除 LCD 的顯示內(nèi)容 delay_1ms(1)。 //顯示開(kāi),關(guān)光標(biāo) delay_1ms(1)。 delay_1ms(1)。 LCDEN = 0。 LCDEN = 1。 //LCDEN = 0。 RS = 1。 LCDEN = 0。 //寫命令 基于 Pt100_熱電阻的簡(jiǎn)易溫度測(cè)量系統(tǒng) 32 LCDEN = 1。 //寫開(kāi) //LCDEN = 0。 RS = 0。 LCDEN = 0。 while(lcd_data amp。 RW = 1。 void read_busy() { //lcd_data = 0xff。 //讀寫選擇端 sbit LCDEN=P2^7。 include include include include define lcd_data P0 define A 5 sbit RS=P2^5。 } typedef unsigned char uchar。 ad = ad*。 i++) { ad = ad + ad_value[i]。 } 基于 Pt100_熱電阻的簡(jiǎn)易溫度測(cè)量系統(tǒng) 31 for(i=0。 ad_value[j] = 1。 ad_value[j] = 1。 _nop_()。 _nop_()。 _nop_()。 _nop_()。 TLC2543_CLK = 1。 i++) { TLC2543_ADIN = (bit)(portamp。 for(i=0。 EOC = 1。 TLC2543_CS = 0。 jM。 TLC2543_CS = 1。 float ad = 0。 float read2543(uchar port) { uchar i,j,temp。 sbit TLC2543_CS = P2^3。 sbit TLC2543_ADIN = P2^1。 typedef unsigned int uint。 default:break。 case 14:curve_dis()。 switch(key_value) { case 13:temp_dis()。 display()。 return。 } for(。 基于 Pt100_熱電阻的簡(jiǎn)易溫度測(cè)量系統(tǒng) 29 Lcd12864_draw_dots(i+1,j,1)。 temp = voltage * 。 i127。 //Lcd12864_draw_dots(126,62,1)。 Lcd12864_draw_dots(125,62,1)。 //Lcd12864_draw_dots(4,2,1)。 Lcd12864_draw_dots(1,2,1)。 Lcd12864_drawline_y(0, 0, 63, 1)。 lcd_gdram_clear()。 write_cmd(0x01)。 return。 delay_1ms(200)。 temp = voltage * 。 //float_dis(voltage,3)。 基于 Pt100_熱電阻的簡(jiǎn)易溫度測(cè)量系統(tǒng) 28 while(1) { voltage = read2543(1)。 lcd_pos(2,1)。 lcd_pos(1,5)。 lcd_pos(0,2)。 str_dis(dis_buf3)。 str_dis(dis_buf4)。 str_dis(dis_buf6)。 str_dis(dis_buf5)。 void display() { lcd_init()。 uchar code dis_buf7[] = {按 15 號(hào)鍵返回 }。 uchar code dis_buf5[] = {歡迎使用 }。 uchar code dis_buf3[] = {按 14 號(hào)鍵溫度曲線 }。 include include include include include uchar code dis_buf1[] = {℃ }。 基于 Pt100
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1