摘要
利用单片机实现了转速测试系统,系统可以接收命令,并在线配置波特率,采样速率,每转脉冲数.上位机通过创建Windows线程监视串行口,并利用Windows消息机制通知主线程实现转速的显示和存储功能;在线配置参数也通过子线程来完成,并使用Event核心对象来使线程同步.
A way that designing tachometer with MCU is discussed below. The tachometer can configure its options (including baudrate, sampling rate and the number of pulse in each cycle)on line. It can also communicate with the PC through RS232. The PC spies on the serial port, receives data from and transmits command to the tachometer, displays data on the screen. All of these functions are realized with Windows thread.
出处
《机械与电子》
2007年第9期50-52,共3页
Machinery & Electronics