development of process instrument. As the international standard of fieldbus
accomplished, the fieldbus product is surely accepted by the market for its consummate
function and extrusive characteristics. HART protocol as a transient protocol imitating
to fieldbus owns a big share in smart instrument for its special characteristics and
application priority. This issue uses the real time operation system(RTOS) to design the
corresponding transmitter’s function module for the embedded system. Design the
transmitter function based on RTOS so that it not only enhances the transmitter’s real-
time function, but also makes it easy to update the product.
This issue firstly presents the function of smart transmitter and its component, then
present the HART protocol, the smart transmitter, the electronic parts of the smart
transmitter and the suitable RTOS.
We select the suitable RTOS for the smart transmitter based on the analysis about
its structure in order to make it sure that it can be applied. Then, transplant the RTOS
and make it improved. It includes using the static storage to manage tasks, which stores
the task control block in ROM and RAM and improving the task scheduling and the
synchronous communication.
The instrument transmission is considered as a task in the RTOS, using least
squares curve fitting on the instrument for temperature compensation. Add the
measurement task to the RTOS, which realizes the basic function of the instrument. The
task includes AD sampling module, temperature compensation calculations, DA
module, the output current computing and keyboard scan and display.
Then, improve the algorism of square root and test it. Based on the RTOS ,the
main function of transmitter is realized.
As a product, it can be updated easily by adding other instrument function modules
while using less code and spending less time.
Key Words: fieldbus, smart transmitter, HART protocol, RTOS,
Tasks’ static manage
目 录
中文摘要
ABSTRACT
第一章 绪 论.......................................................1
§1.1 课题意义的介绍和来源........................................1
§1.2 现场总线技术................................................1
§1.3 国内现场总线仪表的发展状况..................................2
§1.4 HART 现场仪表...............................................2
§1.5 本文的主要工作.............................................3
第二章 压力变送器原理及智能电子部件................................4