#include "c6x.h"

unsigned int a,b;

TSCL = 0;      //初始化

a = TSCL;

...

...

b=TSCL;

cycle = 0xFFFFFFFF-a+b-1;   //防止翻转