转速表计数的设计制作.docVIP

  • 11
  • 0
  • 约3.85万字
  • 约 62页
  • 2018-06-19 发布于浙江
  • 举报
转速表计数的设计制作

转速表计数器的设计制作 摘 要 本文论述了基于单片机的计数器功能来实现对主轴所感应信号的记忆,利用单片机的定时功能通过转换输出转速,根据转速计算出喷油次数,利用MAX232串行接口来实现单片机与微机间的数据通信的设计思想,并给出了相应的实现方法。 基于单片机的转速表计数器的设计制作主要是利用AT89C52单片机作为程序的载体,通过汇编语言来编制程序对所采集到的数据进行处理和存储,利用按键来实现对喷油次数的预置数功能,并选用24C02串行EEPROM芯片对喷油次数进行掉电存储,且串行EEPROM采用I2C总线形式,后又在此系统上附加了油温的测量功能,油温检测采用比较新型的DS18B20一线测温技术,通过数码管将转速、喷油次数和油温显示出来,操作简单,功能全面。 有时候单片机组成的电子设备可能要和计算机联机传输数据,因为在许多需要大量计算的应用中,还必须借助计算机的强大数据处理能力。这样必须通过通信电路实现单片机与计算机之间可靠的数据传输,而最简单的自动化联机方式就是使用串行通信。本设计采用单片机的异步收发器完成单片机和计算机之间的串行通信,外围电路为通过MAX232和计算机接口的电路,从而可以借助计算机的强大数据处理能力。 关键词:AT89C52,MAX232,单片机,通信,DS18 B20 The Design and Production of Tachometer Counter ABSTRACT This article discusses the counter based on MCU function to achieve the right axis sensor signal by the memory, Timing MCU function by converting the output speed, speed calculated according to the number of fuel injection, realized data communication between the MCU and the microcomputer design thought using the MAX232 serial interface, and has produced the corresponding realization method. Mainly is does based on the MCU of the design and production of tachometer counter using the AT89C52 for the procedure carrier, storage and handle to the gathers data through the compilation language, using the pressed key to realizes the pre-placed number function of the blow number of times, and selecting the 24C02 serial EEPROM chip to memory the blow number of times without electricity, also serial EEPROM uses the form of I2C main line, then the system imposed on the oil temperature measurement function, the examination of oil temperature uses DS18B20’s 1-wire temperature measure technology, the rotational speed, injection frequency and the oil temperature demonstrated through the digital tube, operation is simple, the function is comprehensive. Sometimes electronic installation composed by the MCU transmission data possibly must on-line with the computer, because in many applications which needs massively to calculate, but also must with the help of the support from

文档评论(0)

1亿VIP精品文档

相关文档