...帮我做一个通过外部中断,两个按键实现步进电机正转和反转吗_百度知...答:三个键,一个正转一个反转,一个停止。include <reg52.h> define uint unsigned int define uchar unsigned char uchar code FFW[]= { 0x01,0x03,0x02,0x06,0x04,0x0c,0x08,0x09 };uchar code REV[]= { 0x09,0x08,0x0c,0x04,0x06,0x02,0x03,0x01 };sbit K1 = P3^0;sbit ...