Quantcast
Channel: EngineerZone: Message List
Viewing all articles
Browse latest Browse all 22625

Re: WDTH_CAP problem with BF518

$
0
0

Hello,

I am testing different configurations of timer6:

*pTIMER6_CONFIG = (WDTH_CAP) | (TIN_SEL) | (PULSE_HI) | (IRQ_ENA) | (PERIOD_CNT);

and I configured it to use interrupt priority 11

adi_int_SICSetIVG(ADI_INT_TIMER6, 11);

register_handler(ik_ivg11,EVT_IVG11_Entry);

 

anyway the result is the same as before

In the following images the yellow signal is the input PWM, while the blue signal is the toggle of the PF in the interrupt function (that is the same as before).

I notice that sometimes the interrupt is triggered two times on the same rising front of the input signal, while sometimes the interrupt isn't triggered at all.

 

020106_060251.jpg

020106_060138.jpg020106_060213.jpg020106_060154.jpg

 

I don't understand if there something wrong in my software, or if it is a hardware problem.

Is it possible that the input PWM signal is rising too slowly and with some fluctuations that cause this multiple interrupts?

 

Thank you in advance for any suggestion.

 

Marco


Viewing all articles
Browse latest Browse all 22625

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>