Please help me for writing a N2HET instruction to generate a pulse with width 4 micro seconds for every 20 microseconds period for TMS570lc4357 controller. (For every 20 microseconds, a trigger on the pin high to low should occur and after 4 microseconds, the same pin should become low). I tried with the below code, but it is not generating the pulse for every 20 microseconds. The pulse is shifting from 20, 42. 65..., (the LRP is 1 microsecond and HRP is around 266.7ns)
P01 CNT { next=P02,request=GENREQ,angle_count=OFF,reg=B,comp=EQ,max=22,data=0};
P02 ECMP { next=P01,hr_lr=HIGH,angle_comp=OFF,en_pin_action=ON,pin=11,action=PULSEHI,reg=B,data=19};