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

正文內(nèi)容

基于凌陽(yáng)單片機(jī)的溫度檢測(cè)系統(tǒng)設(shè)計(jì)-資料下載頁(yè)

2025-06-06 22:42本頁(yè)面
  

【正文】 保證了各芯片的正常工作,而且還提供了模擬地與數(shù)字地的公共端,有效的抑制了干擾信號(hào)的輸入,減少了各信號(hào)間的干擾,保證了儀表的穩(wěn)定運(yùn)行與準(zhǔn)確測(cè)控。(5)軟件編程采用了模塊式編程方法,具有可移植性強(qiáng)和通用性強(qiáng)的特點(diǎn)。(6)軟件編程采用先畫流程圖,然后編程的方法使編程條例清晰。參考文獻(xiàn)[J],黃山學(xué)院報(bào),2008,2(10)[J],北京礦冶,2000,8(01)[J],電子測(cè)量技術(shù),2008,3(26)[J],電子設(shè)計(jì)2006,2(5)[M],北京:北京航空航天大學(xué)出版社,2003[M],北京:北京航空航天大學(xué)出版社,2003,SPCE061A凌陽(yáng)單片機(jī),2003()[OL][J],科學(xué)報(bào),2006,4(01)[J],2005,2(21)[J],電子技術(shù),2007,21(02)[M],北京航空大學(xué)出版社,2006[M],哈爾濱:哈爾濱工業(yè)大學(xué)出版社,2003[J],信息科學(xué),2005,6(3) AT89C52的數(shù)字溫度檢測(cè)系統(tǒng)的硬件設(shè)計(jì)[J],中國(guó)地質(zhì)大學(xué)期刊,2002[J],集美大學(xué)學(xué)報(bào),2009,22(02)[J],淮陰工學(xué)院學(xué)報(bào),2007,15(10)[M],北京:冶金工業(yè)出版社,2000[M],上海:華東理工大學(xué)出版社,2003[M],北京:機(jī)械工業(yè)出版社,2006附錄A 硬件原理圖附錄B 源程序//==================================================================// 工程名稱: // 功能描述: 水溫控制系統(tǒng),利用溫度傳感器(Pt1000))測(cè)量溫度// 硬件連接:IOA815LEDadp.// IOB0IOB2LEDcs1cs3// IOA0IOA3KEY1KEY4// IOA4ADC // IDE環(huán)境: SUNPLUS u39。nSPTM IDE // 組成文件:// // // // // // //==================================================================include include include include include Float fT,K。 enum system_status { system_temperature_set,system_temperature_test}。enum system_status status。void ADC_temperature(void)。 int adc_data_cmp()。 void key_value_process(int key)。unsigned int giADC_DataSave[18] 。 unsigned int guiLED_Value[3] ={0,0,0}。 unsigned int iAddrSpeech。unsigned int G_ADC_flag = 0。void temperature_speech_index(unsigned int * p_speech)。void temperature_speech_play(void)。//==================================================================// 語(yǔ)法格式: int main(void)。// 實(shí)現(xiàn)功能: 主函數(shù)// 參數(shù): 無(wú)// 返回值: 無(wú)//==================================================================int main(void){ int iKeyValue。 System_Initial()。 status = system_temperature_set。 while(1){ System_ServiceLoop()。 iKeyValue = SP_GetCh()。 if(iKeyValue!=0) key_value_process(iKeyValue)。 if(guifgSpeechPlay) temperature_speech_play( )。 if(status == system_temperature_test amp。amp。 G_ADC_flag == 1){ ADC_temperature()。} *P_Watchdog_Clear = 0x0001。}}//==================================================================// 語(yǔ)法格式:void ADC_temperature(void)。// 實(shí)現(xiàn)功能:將ADC_Value轉(zhuǎn)換為溫度值// 參數(shù): 無(wú)// 返回值: 無(wú)//==================================================================void ADC_temperature(void){ int adc_data。 static int siTlast = 0。 adc_data = adc_data_cmp()。 adc_data /= 16。 K =。 fT = (adc_data * K)。 guiLED_Value[0] = (int)fT/10。 guiLED_Value[1] = (int)fT%10。 guiLED_Value[2] = (int)(fT*10)%10。 G_ADC_flag = 0。} //==================================================================// 語(yǔ)法格式:adc_data_cmp()// 實(shí)現(xiàn)功能:ADC參數(shù)處理,去掉最大值和最小值// 參數(shù): 無(wú)// 返回值: 去除最大值和最小值后的16次采樣總和//==================================================================int adc_data_cmp(){ int max。 int min。 int Sum=0。 int i。 max = giADC_DataSave[0]。 for(i=0。i18。i++){ if(giADC_DataSave[i]max) max = giADC_DataSave[i]。} min = giADC_DataSave[0]。for(i=0。i18。i++){ if(giADC_DataSave[i]min) min = giADC_DataSave[i]。} for(i=0。i18。i++) Sum += giADC_DataSave[i]。 Sum = Sum maxmin。 return(Sum)。}//==================================================================// 語(yǔ)法格式:void key_value_process(int key)。// 實(shí)現(xiàn)功能:鍵值處理程序// 參數(shù): int key:鍵值// 返回值: 無(wú)//==================================================================void key_value_process(int key){ int iAddr。 switch(key){ case 0: break。 case 1: if(status == system_temperature_set){ guiLED_Value[0]++。 if(guiLED_Value[0]==10) guiLED_Value[0] = 0。} break。 case 2: if(status == system_temperature_set) { guiLED_Value[1]++。 if(guiLED_Value[1]==10) guiLED_Value[1] = 0。} break。 case 4: if(status == system_temperature_set){ temperature_speech_index(guiLED_Value)。 status = system_temperature_test。 SACM_A2000_Initial(0)。 SACM_A2000_InitDecoder(DAC1)。 guifgSpeechPlay = 1。 iAddrSpeech = speech_start_address(iaSpeech_index[0])。} break。 case 8: if(status == system_temperature_set){ status = system_temperature_test。 SP_INT_IRQ5()。} else { status = system_temperature_set。} break。 default: break。}} //==================================================================//函數(shù): void temperature_speech_index(unsigned int * p_speech)//語(yǔ)法: void temperature_speech_index(unsigned int * p_speech)//描述: 排列語(yǔ)音播放序號(hào)//參數(shù): 設(shè)置或采樣的溫度值//返回: 無(wú)//==================================================================void temperature_speech_index(unsigned int * p_speech){if(*p_speech != 0){ iaSpeech_index[0] = *p_speech。 iaSpeech_index[1] = 10。 p_speech++。if(*p_speech != 0){ iaSpeech_index[2] = *p_speech。 iaSpeech_index[3] = 11。 iPlay_times = 4。} else {iPlay_times = 3。 iaSpeech_index[2] = 11。}} else { p_speech++。 iaSpeech_index[0] = *p_speech。 iaSpeech_index[1] = 11。 iPlay_times = 2。}} //==================================================================//函數(shù): int speech_start_address(int n)//語(yǔ)法: int speech_start_address(int n)//描述:取語(yǔ)音播放的開始地址//參數(shù):語(yǔ)音序號(hào)//返回: 語(yǔ)音地址//================================================================== int speech_start_address(int n){ int iAddress。 switch(n){ case 0: iAddress = RES_T046_16K_SA。 break。
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1