| With the fast development of economy, energy supply is becoming tenser and oil demand grows day by day. In order to increase oil production, it is necessary to improve the precision of MWD (Measurement While Drilling) which is one of key technologies in the petroleum industry. The research and development of a high precision MWD system is possible because the development of microelectronic, computer and communication technology. This paper proposes to develop a high precision MWD system based on microcontroller. The advanced ISP (In System Programming) technology is applied to develop the system, which shortens system developing time,simplifies system upgrade,and declines the cost in system development. The system is composed of hardware and software. In hardware, every part is carefully analyzed, selected and designed. The control core component of the system is microcontroller AT89C51ED2 of ATMEL company. A/D conversion module AD974 with high precision is used for data acquisition of 7 channel sensor signals. The related data is displayed by LCD module. The microcontroller communicates with the computer through the RS232 interface for data transmission and control. In software, there are microcontroller software and PC software. The microcontroller software uses C51 advanced computer language, which realizes module and independent program, has good measurability, reliability and maintainability. The PC software uses VC++6.0 as development environment, which realizes communication with microcontroller, data process and display, has friendly user interface and simple operation. After testing, the system has high precision and good stability, the maximum error of inclination is±0.1°, and azimuth is±1°, which responds to the need for directional drilling operations, has considerable practical value. |