Do(does?) DT_INT's reset TMR1IF for you?
Past that, get rid of everything else and just toggle a pin, only toggle a pin, and nothing but toggle a pin...and measure that and see what happens.
 
 
		Do(does?) DT_INT's reset TMR1IF for you?
Past that, get rid of everything else and just toggle a pin, only toggle a pin, and nothing but toggle a pin...and measure that and see what happens.
 
 
		Yes, it DO (does) reset...
I set portd.0 to toggle on timer1 interrupt and it's been working fine.. (4.2Khz)..(i didnt get rid of those stuffs)
Then I set portd.0 to toggle inside the (if Flag = 1 then...) and it's been toggling in a frequency of 900Hz... It should be also 4Khz....
Well, any idea?
Thanks!
Sylvio,
 
 
		I've measured the frequency of the block (if flag = 1 then) with and without the GOSUB/LOOKUP table.. it remains still ~900Hz...
I was thinking about the HPWM frequency generated by Timer2.. Its frequency is ~100Khz ..
Should not it be the problem? Well, I changed it to 20Khz and still got 900Hz...
Thanks...
Sylvio,
Bookmarks