论文部分内容阅读
在测量旋转体的角位移时,用光电编码器作传感元件是比较方便和可靠的。用Intel8031单片机,对光电编码器输出的代码进行处理,就能够实现角位移自动测量。该系统具有功能强、可靠性高、体积小及成本低等优点。一、系统的硬件组成系统主要由8031单片机、2716程序存贮器和外围接口芯片8255等组成,电路如图1所示。8031有4个并行口,P_0口分时输出外部存贮器低位地址字节及读/写的数据字节。8D锁存器74LS373是在CPU访问外部存贮器时,锁存低位地址字节。一般情况下,CPU每个机器周期产生两次地址锁存允许输出信号ALE,此信号作用在8D锁存器的使能(G)端。ALE为高电平时,锁存器的输出随输入而
In measuring the angular displacement of the rotating body, the use of optical encoder as the sensing element is more convenient and reliable. With Intel8031 microcontroller, the photoelectric encoder output code processing, it can achieve angular displacement automatic measurement. The system has the advantages of strong function, high reliability, small size and low cost. First, the system hardware components The system consists of 8031 microcontroller, 2716 program memory and peripheral interface chip 8255 and other components, the circuit shown in Figure 1. 8031 has 4 parallel ports, P_0 port output low byte of external memory address and read / write data bytes. 8D Latch 74LS373 latches the lower address byte when the CPU accesses external memory. In general, the CPU generates an address latch enable signal ALE twice per machine cycle, which acts on the enable (G) side of the 8D latch. When ALE is high, the output of the latch follows the input