【文章內(nèi)容簡介】
計了一種以Pt1000作為溫度傳感器,以可編程片上系統(tǒng)PSoC作為核心芯片,采用片內(nèi)的模擬和數(shù)字IP核資源,利用Modbus協(xié)議進行上位機通信的溫度測量系統(tǒng)。系統(tǒng)擬采用公司自主研發(fā)的溫度采集器,集成為高密度溫度采集系統(tǒng),是針對高密度、高精度的監(jiān)控,以及對于存在眾多熱電阻的場合設(shè)計的溫度測量系統(tǒng)。本文首先介紹了課題研究的背景和意義,并分析了當(dāng)前溫度測量技術(shù)和可編程片上系統(tǒng)PSoC的研究現(xiàn)狀。以可編程片上系統(tǒng)芯片CY8C5868AXILP032作為系統(tǒng)核心,設(shè)計了硬件電路整體結(jié)構(gòu),系統(tǒng)分為四個子模塊,溫度采集模塊、放大模塊、A/D轉(zhuǎn)換模塊、通信模塊。選取鉑電阻Pt1000作為溫度傳感器,鉑電阻采用三線制接法。溫度信號輸入電路采用獨特的電橋電路測量技術(shù),具有沒有引線電阻影響,抗干擾能力強,電橋電路與測量電路完全隔離等優(yōu)點。電橋電路中輸出的模擬電壓經(jīng)過放大后,輸入至AD轉(zhuǎn)換器中變?yōu)閿?shù)字信號,再由處理器換算出相應(yīng)溫度,在硬件電路設(shè)計中對各部分子電路進行了原理和功能的介紹,其中在對ΔΣADC配置時,根據(jù)系統(tǒng)要求對其分辨率、采樣率進行相關(guān)參數(shù)配置。在系統(tǒng)硬件設(shè)計平臺的基礎(chǔ)上,使用PSoC ,其中包括溫度信號采集、AD值與溫度值的轉(zhuǎn)換、溫度補償、Modbus通信協(xié)議和信息幀格式等。設(shè)計中主要針對的是實際溫度值獲取、溫度誤差補償?shù)脑O(shè)計,其中采用的主要方法是分段線性化和線性標(biāo)度變換相結(jié)合的方法。為滿足PSoC與計算機的通信加入了基于Modbus的通信協(xié)議,采用RS485接口標(biāo)準(zhǔn)來完成兩者之間的數(shù)據(jù)發(fā)送和接收,在PSoC內(nèi)部配置了全雙工通信UART的各個參數(shù),采用CRC循環(huán)冗余的校驗方式。最后對系統(tǒng)進行調(diào)試,以測試工程的運行情況,首先使用PSoC的專用下載工具PSoC MiniProg對系統(tǒng)進行下載燒寫接口調(diào)試,通過Visual Basic進行通信測試,然后通過電阻箱模擬鉑電阻溫度測試。最后對本文的的工作進行了總結(jié),同時對其作出進一步展望。關(guān)鍵詞:溫度檢測;PSoC;;通信PT1000 ModbusAbstractTemperature is a mon and important physical parameter in the production daily life and industrial production, people have bee increasingly demanding of temperature measurement, mainly performances in the measurement accuracy, reliability, stability and so measurement is directly related to the major technical indicators such as product quality, production efficiency production the meanwhile, more and more attention is paid to the cost and portability of the temperature measurement Conventional temperature measuring system, the unit of temperature measurement is posed of analog temperature sensor, a high performance amplifier, A/D converter and controlled by the SingleChip Microputer, Therefore, it not only needs more peripheral device, but also the hardware cost is programmable system on a chip have integrated so many analog and digital blocks that plenty of control tasks can be pleted in the chip, and the capability of programming configured dynamically make it more flexible, because of controlled easily and relatively low production costs, so it is widely used in industrial production paper designs a temperature measurement system with PSoC programmable system on chip as the core, which use Pt1000 as temperature sensor, make use of the analog and digital IP core resources and munication with the host puter adopting the modbus design uses the collector temperature produced by their pany, integrated as a measurement collector system of high aims at a high density and high precision monitor, and can be applied to the condition with a number of thermal , this paper introduces the background and significance of the research, and analyzes the research status of the temperature measurement technology and the PSoC programmable system on hardware which uses the programmable system on chipCY8C5868AXILP032 as the core of the system designs of the entire circuit are four subsystems, including temperature acquisition module,amplifier module, A/D converter module, munication the Pt1000 platinum resistance using threewire co