键盘控制步进电机正反转和调速c语言程序#include//51芯片管脚定义头文件#include//内部包含延时函数_nop_();#defineucharunsignedchar#defineuintunsignedintucharcodeFFW[8]={0x01,0x03,0x02,0x06,0x04,0x0c,0x08,0x09};ucharcodeREV[8]={0x09,0x08,0x0c,0x04,0x06,0x02,0x03,0x01};sbitK1=P3^5;//正转sbitK2=P