Motor Control Analog eLab, 10-part technical video series from Texas Instruments, Avnet and Portescap. Part 9 details TI’s software tools for motor control system development.
#include#include "LCD_Display.h"unsigned int TA_OverflowCnt;// TA溢出次数存放变量unsigned long int Period;// 脉宽测量结果存放变量unsigned int RiseCapVal;// 上升沿时刻捕获值存放变量unsigned char Edge=0;// 当前触发沿#define RISE0#define