| Data recorder records real-timing operation parameters which is widely used in highly transportation area, such as aircrafts, motorcycles, and ships. The accuracy of these data will directly affect the determination of researchers to judge the performance of these machines. So it is particularly important to design a real-time and reliable data recorder.Traditional data recorder will cost a lot of time in transmitting data to PC which has input interface of RS-422 and output interface of RS-232. And now many PC boards had upgraded and begun to gradually eliminate the RS-232 interface. Therefore we need to find out a new way of data transmission to replace the traditional. The paper is in this context for research.Based on the design of traditional data recorder, through the argument of various scheme systems, this article proposed a new design concept that using RS-422 and RS-232 as the intput interface and the USB host as the output interface. This data recorder can store the data directly in the Nand Flash by RS-232 or RS-422 interface, and then store the data in U disk by USB interface. Contrasted with the traditional data recorder this new data recorder which based on USB interface has enormous advantages, such as high transmission speed,stability and convenience, even can get the ride of the PC's support.By choosing the right MCU chip,high volume memory chip to completely design the whole hardware circuit, such as the minimum system circuit, JTAG circuit, key circuit, RS-232 interface circuit, RS-422 interface circuit, USB interface circuit, USB driving circuit, Nand Flash circuit. Software is the point of the article which made up of three functional modules, such as input and storage data task module; usb output data task module and erase Nand Flash task module. USB output data task is made up of USB Host Controller Driver, Universal Serial Bus Driver, USB Device program and FAT file system transplant. The functions of data recorder are so complex to realize, for implement real-time request of the data recorder, the paper used theμC/OS-Ⅱoperating system to manage the three task module.The results of experiment showed that, the file which was uploaded by data recorder was fully consistent with the source file, and error rate is zero. The universal data recorder was completely met the design requirement. |