This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS570 - PCNT instruction of N2HET



Hi,

With TMS570, I'm using PCNT (Period/Pulse Count) instruction to measure the low pulse durantion of a N2HET input.

This N2HET input can be low pulse or none pulse.

So I think to test the Zero Flag, but in PCNT instruction of FALL2RISE type, when is the Zero flag activated? On rising edge?

L00  PCNT { hr_lr=HIGH,irq=OFF,type=FALL2RISE,pin=16,period=0,data=0};

L01  BR { event=NZ, cond_addr=L10 } ;

Thanks