摘要
故障录波装置目前存在着由于后台PC机故障而丢失大量数据以及后台机不能长期运行等问题。所以,为了提高设备的可靠性,提出了一种基于MC68332单片机的硬盘存储控制方案和程序设计方法。在方案中,硬盘由单片机控制,采用可编程的I/O(PIO)数据传输模式、以扇区为单位用中断请求的方式与处理器进行数据交换,它可以完全脱离计算机操作系统的控制完成数据的存储工作。实验验证此系统安全可靠、运行稳定、维护调试方便,实现了大量录波数据准确、快速、无丢失存储,解决了录波装置的上述问题。而且,该方案控制简单、易于编程、实时性高,可以广泛应用于变电站自动化设备的改造过程和各种工业大容量数据采集系统中。
At present, failure wave-recording devices have some disadvantages such as the loss of a great amount of data when the backend PC experiences a failure, the unavailability of backend computer for continuously running for a long time. Aiming at the reliability improvement of these devices, this paper proposes a hard-disk storage control method based on a single chip processor, MC68332, and a program design method. Data is transferred to hard disk one sector by one sector by means of interruption mechanism. The transmission mode is in PIO. Storage of data can be independently carried out without the control of computer operating system. It has been proved that the proposed system is reliable and easy to debug. A great amount of data can be transferred accurately and quickly without any loss. Moreover, it is easy to write program to control the hard disk. It has been confirmed that the proposed methods can be widely used to the improvement of equipments in power substations and in various large-scale industrial data acquisition systems.
出处
《现代电力》
2005年第3期29-32,共4页
Modern Electric Power