论文部分内容阅读
8085单板机具有8255可编程外设并行接口,它的通道号分别为:port A(34H);port B(35H);portC(36H)。通过8255和一些分立元件,用微机来控制步进电机转速和位置。令8255的通道A工作在基本的输入/输出模式0方式,通过光电耦合器件GD102,达林顿管YZ21F驱动45BF005型步进电机。通过通道C的PC_0口控制步进电机的旋转方向。旋转方向由开关K_1的位置决定,通过光电耦合器件GD102送至PC_0。接口电路如图1所示,图1中三个反相器的电路
8085 single board machine with 8255 programmable peripheral parallel interface, its channel number is: port A (34H); portB (35H); portC (36H). By 8255 and some discrete components, with a microcomputer to control the stepper motor speed and position. Channel 8255 to work in the basic input / output mode 0 way, through the optical coupling device GD102, Darlington YZ21F drive 45BF005 stepper motor. Through the channel C PC_0 mouth control stepper motor rotation direction. The direction of rotation is determined by the position of switch K_1 and is sent to PC_0 via photocoupler GD102. Interface circuit shown in Figure 1, Figure 1, three inverter circuit