Part Number: TMS320F280049C We want to measure frequency of AC Power source. So we have taken external interrupt for ZCD ( Zero crossing detector). The ZCD circuit give us the pulses of 10 ms. So we should get interrupt at every 10 ms of time. But some time we get interrupt in 16us and after that we got next interrupt after 20 ms. We have observed the output of our zcd circuit in it looks fine. Also we have tried using function generator. We have given pulses of 100Hz frequency with 50 % duty cycle to GPIO ( for us it is ZCD) of DSP. In this test we have got proper interrupt. We have configured the interrupt as per recommended in datasheet and technical user manual. So why we are getting improper interrupt?
↧